duckdb 0.5.2-dev1844.0 → 0.5.2-dev1846.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-dev1844.0",
5
+ "version": "0.5.2-dev1846.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -103194,6 +103194,7 @@ void CurrentTimestampFun::RegisterFunction(BuiltinFunctions &set) {
103194
103194
 
103195
103195
 
103196
103196
 
103197
+
103197
103198
  namespace duckdb {
103198
103199
 
103199
103200
  // This function is an implementation of the "period-crossing" date difference function from T-SQL
@@ -103379,7 +103380,9 @@ int64_t DateDiff::ISOYearOperator::Operation(timestamp_t startdate, timestamp_t
103379
103380
 
103380
103381
  template <>
103381
103382
  int64_t DateDiff::MicrosecondsOperator::Operation(timestamp_t startdate, timestamp_t enddate) {
103382
- return Timestamp::GetEpochMicroSeconds(enddate) - Timestamp::GetEpochMicroSeconds(startdate);
103383
+ const auto start = Timestamp::GetEpochMicroSeconds(startdate);
103384
+ const auto end = Timestamp::GetEpochMicroSeconds(enddate);
103385
+ return SubtractOperatorOverflowCheck::Operation<int64_t, int64_t, int64_t>(end, start);
103383
103386
  }
103384
103387
 
103385
103388
  template <>
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 "01c074b55e"
15
- #define DUCKDB_VERSION "v0.5.2-dev1844"
14
+ #define DUCKDB_SOURCE_ID "fbb77b1a1d"
15
+ #define DUCKDB_VERSION "v0.5.2-dev1846"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //