Skip to content

Commit

Permalink
chore: Update vendored sources to duckdb/duckdb@6d9d429 (#399)
Browse files Browse the repository at this point in the history
[Fix] C API - Correct type comparison in MAP value functions (duckdb/duckdb#13844)

Co-authored-by: krlmlr <[email protected]>
  • Loading branch information
github-actions[bot] and krlmlr authored Sep 25, 2024
1 parent 32d5d49 commit 6fc7f17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/duckdb/src/function/table/version/pragma_version.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef DUCKDB_PATCH_VERSION
#define DUCKDB_PATCH_VERSION "1-dev25"
#define DUCKDB_PATCH_VERSION "1-dev29"
#endif
#ifndef DUCKDB_MINOR_VERSION
#define DUCKDB_MINOR_VERSION 1
Expand All @@ -8,10 +8,10 @@
#define DUCKDB_MAJOR_VERSION 1
#endif
#ifndef DUCKDB_VERSION
#define DUCKDB_VERSION "v1.1.1-dev25"
#define DUCKDB_VERSION "v1.1.1-dev29"
#endif
#ifndef DUCKDB_SOURCE_ID
#define DUCKDB_SOURCE_ID "d9e89b5cc1"
#define DUCKDB_SOURCE_ID "6d9d429d5e"
#endif
#include "duckdb/function/table/system_functions.hpp"
#include "duckdb/main/database.hpp"
Expand Down
6 changes: 3 additions & 3 deletions src/duckdb/src/main/capi/duckdb_value-c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ idx_t duckdb_get_map_size(duckdb_value value) {
}

auto val = UnwrapValue(value);
if (val.type() != LogicalTypeId::MAP) {
if (val.type().id() != LogicalTypeId::MAP) {
return 0;
}

Expand All @@ -296,7 +296,7 @@ duckdb_value duckdb_get_map_key(duckdb_value value, idx_t index) {
}

auto val = UnwrapValue(value);
if (val.type() != LogicalTypeId::MAP) {
if (val.type().id() != LogicalTypeId::MAP) {
return nullptr;
}

Expand All @@ -316,7 +316,7 @@ duckdb_value duckdb_get_map_value(duckdb_value value, idx_t index) {
}

auto val = UnwrapValue(value);
if (val.type() != LogicalTypeId::MAP) {
if (val.type().id() != LogicalTypeId::MAP) {
return nullptr;
}

Expand Down

0 comments on commit 6fc7f17

Please sign in to comment.