duckdb 0.5.2-dev2264.0 → 0.5.2-dev2278.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
4
  "types": "./lib/duckdb.d.ts",
5
- "version": "0.5.2-dev2264.0",
5
+ "version": "0.5.2-dev2278.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -186573,7 +186573,7 @@ unique_ptr<ParsedExpression> ExpressionBinder::QualifyColumnName(const string &c
186573
186573
  unique_ptr<Expression> expression;
186574
186574
  if (!using_binding->primary_binding.empty()) {
186575
186575
  // we can! just assign the table name and re-bind
186576
- return make_unique<ColumnRefExpression>(column_name, using_binding->primary_binding);
186576
+ return binder.bind_context.CreateColumnReference(using_binding->primary_binding, column_name);
186577
186577
  } else {
186578
186578
  // // we cannot! we need to bind this as a coalesce between all the relevant columns
186579
186579
  auto coalesce = make_unique<OperatorExpression>(ExpressionType::OPERATOR_COALESCE);
@@ -201263,18 +201263,16 @@ BindResult TableBinding::Bind(ColumnRefExpression &colref, idx_t depth) {
201263
201263
  if (!success) {
201264
201264
  return BindResult(ColumnNotFoundError(column_name));
201265
201265
  }
201266
- #ifdef DEBUG
201267
201266
  auto entry = GetStandardEntry();
201268
- if (entry) {
201267
+ if (entry && column_index != COLUMN_IDENTIFIER_ROW_ID) {
201269
201268
  D_ASSERT(entry->type == CatalogType::TABLE_ENTRY);
201269
+ // Either there is no table, or the columns category has to be standard
201270
201270
  auto table_entry = (TableCatalogEntry *)entry;
201271
- //! Either there is no table, or the columns category has to be standard
201272
- if (column_index != COLUMN_IDENTIFIER_ROW_ID) {
201273
- D_ASSERT(table_entry->columns.GetColumn(LogicalIndex(column_index)).Category() ==
201274
- TableColumnType::STANDARD);
201275
- }
201271
+ auto &column_entry = table_entry->columns.GetColumn(LogicalIndex(column_index));
201272
+ (void)table_entry;
201273
+ (void)column_entry;
201274
+ D_ASSERT(column_entry.Category() == TableColumnType::STANDARD);
201276
201275
  }
201277
- #endif /* DEBUG */
201278
201276
  // fetch the type of the column
201279
201277
  LogicalType col_type;
201280
201278
  if (column_index == COLUMN_IDENTIFIER_ROW_ID) {
package/src/duckdb.hpp CHANGED
@@ -11,8 +11,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
11
11
  #pragma once
12
12
  #define DUCKDB_AMALGAMATION 1
13
13
  #define DUCKDB_AMALGAMATION_EXTENDED 1
14
- #define DUCKDB_SOURCE_ID "a2a67f76e8"
15
- #define DUCKDB_VERSION "v0.5.2-dev2264"
14
+ #define DUCKDB_SOURCE_ID "04bbd7a171"
15
+ #define DUCKDB_VERSION "v0.5.2-dev2278"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //