Skip to content

Commit 94b1ec6

Browse files
authored
Merge pull request duckdb#108 from samansmink/prepare-for-v1.2.0
Prepare for v1.2.0
2 parents e8affee + b551319 commit 94b1ec6

File tree

8 files changed

+32
-16
lines changed

8 files changed

+32
-16
lines changed

.github/workflows/MainDistributionPipeline.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
uses: duckdb/extension-ci-tools/.github/workflows/_extension_distribution.yml@main
1818
with:
1919
extension_name: mysql_scanner
20-
duckdb_version: v1.1.3
21-
ci_tools_version: v1.1.3
22-
exclude_archs: 'wasm_mvp;wasm_eh;wasm_threads;windows_amd64_rtools'
20+
duckdb_version: main
21+
ci_tools_version: main
22+
exclude_archs: 'wasm_mvp;wasm_eh;wasm_threads;windows_amd64_rtools;windows_amd64_mingw;linux_amd64_musl'
2323
build_duckdb_shell: false
2424

2525
duckdb-stable-deploy:
@@ -28,8 +28,8 @@ jobs:
2828
uses: duckdb/extension-ci-tools/.github/workflows/_extension_deploy.yml@main
2929
secrets: inherit
3030
with:
31-
duckdb_version: v1.1.3
32-
ci_tools_version: v1.1.3
31+
duckdb_version: main
32+
ci_tools_version: main
3333
extension_name: mysql_scanner
34-
exclude_archs: 'wasm_mvp;wasm_eh;wasm_threads;windows_amd64_rtools'
34+
exclude_archs: 'wasm_mvp;wasm_eh;wasm_threads;windows_amd64_rtools;windows_amd64_mingw;linux_amd64_musl'
3535
deploy_latest: ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' }}

.github/workflows/MysqlTests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
- name: Setup vcpkg
6060
uses: lukka/[email protected]
6161
with:
62-
vcpkgGitCommitId: a1a1cbc975abf909a6c8985a6a2b8fe20bbd9bd6
62+
vcpkgGitCommitId: 5e5d0e1cd7785623065e77eff011afdeec1a3574
6363

6464
- name: Setup MySQL
6565
if: ${{ matrix.osx_build_arch == 'x86_64'}}

duckdb

Submodule duckdb updated 2781 files

src/mysql_scanner.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,11 @@ static void MySQLScan(ClientContext &context, TableFunctionInput &data, DataChun
158158
output.SetCardinality(r);
159159
}
160160

161-
static string MySQLScanToString(const FunctionData *bind_data_p) {
162-
auto &bind_data = bind_data_p->Cast<MySQLBindData>();
163-
return bind_data.table.name;
161+
static InsertionOrderPreservingMap<string> MySQLScanToString(TableFunctionToStringInput &input) {
162+
InsertionOrderPreservingMap<string> result;
163+
auto &bind_data = input.bind_data->Cast<MySQLBindData>();
164+
result["Table"] = bind_data.table.name;
165+
return result;
164166
}
165167

166168
static void MySQLScanSerialize(Serializer &serializer, const optional_ptr<FunctionData> bind_data_p,

src/mysql_utils.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ MySQLConnectionParameters MySQLUtils::ParseConnectionParameters(const string &ds
139139
} else if (val == "preferred") {
140140
result.ssl_mode = SSL_MODE_PREFERRED;
141141
} else {
142-
throw InvalidInputException("Invalid dsn - ssl mode must be either disabled, required, verify_ca, verify_identity or preferred - got %s", value);
142+
throw InvalidInputException("Invalid dsn - ssl mode must be either disabled, required, verify_ca, "
143+
"verify_identity or preferred - got %s",
144+
value);
143145
}
144146
} else if (key == "ssl_ca") {
145147
set_options.insert("ssl_ca");

src/storage/mysql_execute_query.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,20 @@ string ExtractFilters(PhysicalOperator &child, const string &statement) {
9292
} else {
9393
return result + " AND " + filter_str;
9494
}
95+
} else if (child.type == PhysicalOperatorType::PROJECTION) {
96+
auto &proj = child.Cast<PhysicalProjection>();
97+
for (auto &expr : proj.select_list) {
98+
switch (expr->type) {
99+
case ExpressionType::BOUND_REF:
100+
case ExpressionType::BOUND_COLUMN_REF:
101+
case ExpressionType::VALUE_CONSTANT:
102+
break;
103+
default:
104+
throw NotImplementedException("Unsupported expression type in projection - only simple deletes/updates "
105+
"are supported in the MySQL connector");
106+
}
107+
}
108+
return ExtractFilters(*child.children[0], statement);
95109
} else if (child.type == PhysicalOperatorType::TABLE_SCAN) {
96110
auto &table_scan = child.Cast<PhysicalTableScan>();
97111
if (!table_scan.table_filters) {

vcpkg.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@
66
"overlay-ports": [
77
"./vcpkg_ports"
88
]
9-
},
10-
"builtin-baseline": "a42af01b72c28a8e1d7b48107b33e4f286a55ef6",
11-
"overrides": [{"name": "openssl", "version": "3.0.8"}]
9+
}
1210
}

0 commit comments

Comments
 (0)