duckdb 0.5.1-dev37.0 → 0.5.1-dev40.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.5.1-dev37.0",
4
+ "version": "0.5.1-dev40.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -96859,7 +96859,8 @@ struct DateDiff {
96859
96859
  struct WeekOperator {
96860
96860
  template <class TA, class TB, class TR>
96861
96861
  static inline TR Operation(TA startdate, TB enddate) {
96862
- return Date::Epoch(enddate) / Interval::SECS_PER_WEEK - Date::Epoch(startdate) / Interval::SECS_PER_WEEK;
96862
+ return Date::Epoch(Date::GetMondayOfCurrentWeek(enddate)) / Interval::SECS_PER_WEEK -
96863
+ Date::Epoch(Date::GetMondayOfCurrentWeek(startdate)) / Interval::SECS_PER_WEEK;
96863
96864
  }
96864
96865
  };
96865
96866
 
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 "8de8547c8"
15
- #define DUCKDB_VERSION "v0.5.1-dev37"
14
+ #define DUCKDB_SOURCE_ID "1199e3dbf"
15
+ #define DUCKDB_VERSION "v0.5.1-dev40"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //