duckdb 0.5.2-dev579.0 → 0.5.2-dev582.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.2-dev579.0",
4
+ "version": "0.5.2-dev582.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -98757,7 +98757,7 @@ static void CurrentDateFunction(DataChunk &input, ExpressionState &state, Vector
98757
98757
  static void CurrentTimestampFunction(DataChunk &input, ExpressionState &state, Vector &result) {
98758
98758
  D_ASSERT(input.ColumnCount() == 0);
98759
98759
 
98760
- auto val = Value::TIMESTAMP(GetTransactionTimestamp(state));
98760
+ auto val = Value::TIMESTAMPTZ(GetTransactionTimestamp(state));
98761
98761
  result.Reference(val);
98762
98762
  }
98763
98763
 
@@ -98771,12 +98771,13 @@ void CurrentTimeFun::RegisterFunction(BuiltinFunctions &set) {
98771
98771
  }
98772
98772
 
98773
98773
  void CurrentDateFun::RegisterFunction(BuiltinFunctions &set) {
98774
- set.AddFunction(ScalarFunction("current_date", {}, LogicalType::DATE, CurrentDateFunction, BindCurrentTime));
98774
+ set.AddFunction({"today", "current_date"},
98775
+ ScalarFunction({}, LogicalType::DATE, CurrentDateFunction, BindCurrentTime));
98775
98776
  }
98776
98777
 
98777
98778
  void CurrentTimestampFun::RegisterFunction(BuiltinFunctions &set) {
98778
- set.AddFunction({"now", "get_current_timestamp"},
98779
- ScalarFunction({}, LogicalType::TIMESTAMP, CurrentTimestampFunction, BindCurrentTime));
98779
+ set.AddFunction({"now", "get_current_timestamp", "transaction_timestamp"},
98780
+ ScalarFunction({}, LogicalType::TIMESTAMP_TZ, CurrentTimestampFunction, BindCurrentTime));
98780
98781
  }
98781
98782
 
98782
98783
  } // namespace duckdb
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 "cafad4f1a"
15
- #define DUCKDB_VERSION "v0.5.2-dev579"
14
+ #define DUCKDB_SOURCE_ID "dfd82a3d4"
15
+ #define DUCKDB_VERSION "v0.5.2-dev582"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //