duckdb 0.4.1-dev1584.0 → 0.4.1-dev1596.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
- "version": "0.4.1-dev1584.0",
4
+ "version": "0.4.1-dev1596.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -96090,7 +96090,7 @@ static unique_ptr<FunctionData> DateTruncBind(ClientContext &context, ScalarFunc
96090
96090
  case DatePartSpecifier::DOW:
96091
96091
  case DatePartSpecifier::ISODOW:
96092
96092
  case DatePartSpecifier::DOY:
96093
- switch (arguments[1]->return_type.id()) {
96093
+ switch (bound_function.arguments[1].id()) {
96094
96094
  case LogicalType::TIMESTAMP:
96095
96095
  bound_function.function = DateTruncFunction<timestamp_t, date_t>;
96096
96096
  bound_function.statistics = DateTruncStats<timestamp_t, date_t>(part_code);
@@ -96100,12 +96100,12 @@ static unique_ptr<FunctionData> DateTruncBind(ClientContext &context, ScalarFunc
96100
96100
  bound_function.statistics = DateTruncStats<date_t, date_t>(part_code);
96101
96101
  break;
96102
96102
  default:
96103
- break;
96103
+ throw NotImplementedException("Temporal argument type for DATETRUNC");
96104
96104
  }
96105
96105
  bound_function.return_type = LogicalType::DATE;
96106
96106
  break;
96107
96107
  default:
96108
- switch (arguments[1]->return_type.id()) {
96108
+ switch (bound_function.arguments[1].id()) {
96109
96109
  case LogicalType::TIMESTAMP:
96110
96110
  bound_function.statistics = DateTruncStats<timestamp_t, timestamp_t>(part_code);
96111
96111
  break;
@@ -96113,7 +96113,7 @@ static unique_ptr<FunctionData> DateTruncBind(ClientContext &context, ScalarFunc
96113
96113
  bound_function.statistics = DateTruncStats<timestamp_t, date_t>(part_code);
96114
96114
  break;
96115
96115
  default:
96116
- break;
96116
+ throw NotImplementedException("Temporal argument type for DATETRUNC");
96117
96117
  }
96118
96118
  break;
96119
96119
  }
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 "c5857f5c5"
15
- #define DUCKDB_VERSION "v0.4.1-dev1584"
14
+ #define DUCKDB_SOURCE_ID "ac4394c26"
15
+ #define DUCKDB_VERSION "v0.4.1-dev1596"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //