Skip to content

Commit

Permalink
Update DuckDB to 1.1.0 (#30)
Browse files Browse the repository at this point in the history

fix reasoning duckdb 13341
  • Loading branch information
TinyTinni authored Sep 9, 2024
1 parent 80979f3 commit 3de65a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion QtDuckDBDriver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
find_package(Qt${QT_VERSION} REQUIRED COMPONENTS Sql)

include(../cmake/get_cpm.cmake)
CPMAddPackage("gh:duckdb/duckdb#v1.0.0")
CPMAddPackage("gh:duckdb/duckdb#v1.1.0")

add_library (QtDuckDBDriver SHARED "QtDuckDBDriver.cpp" "smain.cpp")
target_sources(QtDuckDBDriver PUBLIC FILE_SET include_those TYPE HEADERS FILES "QtDuckDBDriver.h")
Expand Down
4 changes: 2 additions & 2 deletions QtDuckDBDriver/QtDuckDBDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ bool QDuckDBResult::prepare(const QString &query) {
d->stmt->context = db->con->context;
d->stmt->prepared = std::move(prepared);
d->stmt->current_row = -1;
d->stmt->bound_values.resize(d->stmt->prepared->n_param);
d->stmt->bound_values.resize(d->stmt->prepared->named_param_map.size());

return true;
} catch (std::exception &ex) {
Expand Down Expand Up @@ -516,7 +516,7 @@ bool QDuckDBResult::exec() {
d->stmt->result.reset();
d->stmt->current_chunk.reset();

int paramCount = d->stmt->prepared->n_param;
int paramCount = d->stmt->prepared->named_param_map.size();
if (paramCount != values.size()) {
setLastError(QSqlError(QCoreApplication::translate("QDuckDBResult", "Parameter count mismatch"), QString(),
QSqlError::StatementError));
Expand Down

0 comments on commit 3de65a7

Please sign in to comment.