duckdb 0.5.1-dev25.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-dev25.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
 
@@ -171777,7 +171778,7 @@ LogicalType Transformer::TransformTypeName(duckdb_libpgquery::PGTypeName *type_n
171777
171778
 
171778
171779
  result_type = LogicalType::MAP(move(children));
171779
171780
  } else {
171780
- int8_t width, scale;
171781
+ int64_t width, scale;
171781
171782
  if (base_type == LogicalTypeId::DECIMAL) {
171782
171783
  // default decimal width/scale
171783
171784
  width = 18;
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 "7ebad2075"
15
- #define DUCKDB_VERSION "v0.5.1-dev25"
14
+ #define DUCKDB_SOURCE_ID "1199e3dbf"
15
+ #define DUCKDB_VERSION "v0.5.1-dev40"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //
@@ -27469,7 +27469,8 @@ public:
27469
27469
  public:
27470
27470
  template <class T, class BASE>
27471
27471
  static string ToString(const T &entry) {
27472
- return entry.left->ToString() + " " + ExpressionTypeToOperator(entry.type) + " " + entry.right->ToString();
27472
+ return StringUtil::Format("(%s) %s (%s)", entry.left->ToString(), ExpressionTypeToOperator(entry.type),
27473
+ entry.right->ToString());
27473
27474
  }
27474
27475
  };
27475
27476
  } // namespace duckdb