Skip to content

Commit 3308c9a

Browse files
authored
Merge pull request #67 from carlopi/absorb_patches
Absorb patches, move to duckdb's main
2 parents 655a003 + 11dff60 commit 3308c9a

12 files changed

+19
-166
lines changed

.github/workflows/MainDistributionPipeline.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,17 @@ jobs:
1717
uses: duckdb/extension-ci-tools/.github/workflows/_extension_distribution.yml@main
1818
with:
1919
extension_name: mysql_scanner
20-
duckdb_version: 'v0.10.2'
21-
exclude_archs: 'osx_amd64;osx_arm64;wasm_mvp;wasm_eh;wasm_threads;windows_amd64_rtools'
20+
duckdb_version: main
21+
exclude_archs: 'wasm_mvp;wasm_eh;wasm_threads;windows_amd64_rtools'
2222
build_duckdb_shell: false
2323

24-
# Note: this workaround is required for building MacOS where extra toolchain config is required
25-
duckdb-stable-build-macos:
26-
name: Build extension binaries
27-
uses: ./.github/workflows/_extension_distribution_macos.yml
28-
with:
29-
duckdb_version: v0.10.2
30-
extension_name: mysql_scanner
31-
32-
3324
duckdb-stable-deploy:
3425
name: Deploy extension binaries
35-
needs: [duckdb-stable-build, duckdb-stable-build-macos]
26+
needs: duckdb-stable-build
3627
uses: duckdb/extension-ci-tools/.github/workflows/_extension_deploy.yml@main
3728
secrets: inherit
3829
with:
39-
duckdb_version: v0.10.2
30+
duckdb_version: main
4031
extension_name: mysql_scanner
4132
exclude_archs: 'wasm_mvp;wasm_eh;wasm_threads;windows_amd64_rtools'
4233
deploy_latest: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' }}

.github/workflows/MysqlTests.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454

5555
- uses: actions/setup-python@v2
5656
with:
57-
python-version: '3.7'
57+
python-version: '3.11'
5858

5959
- name: Setup vcpkg
6060
uses: lukka/run-vcpkg@v11.1
@@ -70,9 +70,6 @@ jobs:
7070
- name: Build extension
7171
shell: bash
7272
run: |
73-
# needed for MySQL cross compilation - see https://mariadb.com/kb/en/cross-compiling-mariadb/
74-
echo 'SET(STACK_DIRECTION -1)' >> ${VCPKG_TOOLCHAIN_PATH}
75-
echo 'SET(HAVE_IB_GCC_ATOMIC_BUILTINS 0)' >> ${VCPKG_TOOLCHAIN_PATH}
7673
make release
7774
7875
- name: Test Extension

.github/workflows/_extension_distribution_macos.yml

Lines changed: 0 additions & 134 deletions
This file was deleted.

duckdb

Submodule duckdb updated 1058 files

src/include/mysql_connection.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#pragma once
1010

11+
#include "duckdb/common/shared_ptr.hpp"
1112
#include "mysql_utils.hpp"
1213
#include "mysql_result.hpp"
1314

src/include/mysql_scanner_extension.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
using namespace duckdb;
1010

11-
class MySQLScannerExtension : public Extension {
11+
class MysqlScannerExtension : public Extension {
1212
public:
1313
std::string Name() override {
1414
return "mysql_scanner";

src/include/storage/mysql_table_entry.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class MySQLTableEntry : public TableCatalogEntry {
4444

4545
TableStorageInfo GetStorageInfo(ClientContext &context) override;
4646

47-
void BindUpdateConstraints(LogicalGet &get, LogicalProjection &proj, LogicalUpdate &update,
47+
void BindUpdateConstraints(Binder &binder, LogicalGet &get, LogicalProjection &proj, LogicalUpdate &update,
4848
ClientContext &context) override;
4949
};
5050

src/mysql_connection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ MySQLConnection &MySQLConnection::operator=(MySQLConnection &&other) noexcept {
2828

2929
MySQLConnection MySQLConnection::Open(const string &connection_string) {
3030
MySQLConnection result;
31-
result.connection = make_shared<OwnedMySQLConnection>(MySQLUtils::Connect(connection_string));
31+
result.connection = make_shared_ptr<OwnedMySQLConnection>(MySQLUtils::Connect(connection_string));
3232
result.dsn = connection_string;
3333
result.Execute("SET character_set_results = 'utf8mb4';");
3434
return result;

src/mysql_extension.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static void LoadInternal(DatabaseInstance &db) {
9797
config.optimizer_extensions.push_back(std::move(mysql_optimizer));
9898
}
9999

100-
void MySQLScannerExtension::Load(DuckDB &db) {
100+
void MysqlScannerExtension::Load(DuckDB &db) {
101101
LoadInternal(*db.instance);
102102
}
103103

src/storage/mysql_table_entry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ unique_ptr<BaseStatistics> MySQLTableEntry::GetStatistics(ClientContext &context
8181
return nullptr;
8282
}
8383

84-
void MySQLTableEntry::BindUpdateConstraints(LogicalGet &, LogicalProjection &, LogicalUpdate &, ClientContext &) {
84+
void MySQLTableEntry::BindUpdateConstraints(Binder &binder, LogicalGet &, LogicalProjection &, LogicalUpdate &, ClientContext &) {
8585
}
8686

8787
TableFunction MySQLTableEntry::GetScanFunction(ClientContext &context, unique_ptr<FunctionData> &bind_data) {

0 commit comments

Comments
 (0)