duckdb 0.3.2-dev502.0 → 0.3.2-dev519.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 +1 -1
- package/src/duckdb.cpp +8 -3
- package/src/duckdb.hpp +3 -3
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -38105,7 +38105,7 @@ bool TryAddOperator::Operation(int16_t left, int16_t right, int16_t &result);
|
|
|
38105
38105
|
template <>
|
|
38106
38106
|
bool TryAddOperator::Operation(int32_t left, int32_t right, int32_t &result);
|
|
38107
38107
|
template <>
|
|
38108
|
-
bool TryAddOperator::Operation(int64_t left, int64_t right, int64_t &result);
|
|
38108
|
+
DUCKDB_API bool TryAddOperator::Operation(int64_t left, int64_t right, int64_t &result);
|
|
38109
38109
|
|
|
38110
38110
|
struct AddOperatorOverflowCheck {
|
|
38111
38111
|
template <class TA, class TB, class TR>
|
|
@@ -38217,7 +38217,7 @@ bool TryMultiplyOperator::Operation(int16_t left, int16_t right, int16_t &result
|
|
|
38217
38217
|
template <>
|
|
38218
38218
|
bool TryMultiplyOperator::Operation(int32_t left, int32_t right, int32_t &result);
|
|
38219
38219
|
template <>
|
|
38220
|
-
bool TryMultiplyOperator::Operation(int64_t left, int64_t right, int64_t &result);
|
|
38220
|
+
DUCKDB_API bool TryMultiplyOperator::Operation(int64_t left, int64_t right, int64_t &result);
|
|
38221
38221
|
|
|
38222
38222
|
struct MultiplyOperatorOverflowCheck {
|
|
38223
38223
|
template <class TA, class TB, class TR>
|
|
@@ -39497,7 +39497,12 @@ timestamp_t Timestamp::FromDatetime(date_t date, dtime_t time) {
|
|
|
39497
39497
|
|
|
39498
39498
|
void Timestamp::Convert(timestamp_t timestamp, date_t &out_date, dtime_t &out_time) {
|
|
39499
39499
|
out_date = GetDate(timestamp);
|
|
39500
|
-
|
|
39500
|
+
int64_t days_micros;
|
|
39501
|
+
if (!TryMultiplyOperator::Operation<int64_t, int64_t, int64_t>(out_date.days, Interval::MICROS_PER_DAY,
|
|
39502
|
+
days_micros)) {
|
|
39503
|
+
throw ConversionException("Date out of range in timestamp conversion");
|
|
39504
|
+
}
|
|
39505
|
+
out_time = dtime_t(timestamp.value - days_micros);
|
|
39501
39506
|
D_ASSERT(timestamp == Timestamp::FromDatetime(out_date, out_time));
|
|
39502
39507
|
}
|
|
39503
39508
|
|
package/src/duckdb.hpp
CHANGED
|
@@ -10,8 +10,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
10
10
|
|
|
11
11
|
#pragma once
|
|
12
12
|
#define DUCKDB_AMALGAMATION 1
|
|
13
|
-
#define DUCKDB_SOURCE_ID "
|
|
14
|
-
#define DUCKDB_VERSION "0.3.2-
|
|
13
|
+
#define DUCKDB_SOURCE_ID "07830d900"
|
|
14
|
+
#define DUCKDB_VERSION "0.3.2-dev519"
|
|
15
15
|
//===----------------------------------------------------------------------===//
|
|
16
16
|
// DuckDB
|
|
17
17
|
//
|
|
@@ -1146,7 +1146,7 @@ bool IsValidType() {
|
|
|
1146
1146
|
extern const LogicalType LOGICAL_ROW_TYPE;
|
|
1147
1147
|
extern const PhysicalType ROW_TYPE;
|
|
1148
1148
|
|
|
1149
|
-
string TypeIdToString(PhysicalType type);
|
|
1149
|
+
DUCKDB_API string TypeIdToString(PhysicalType type);
|
|
1150
1150
|
idx_t GetTypeIdSize(PhysicalType type);
|
|
1151
1151
|
bool TypeIsConstantSize(PhysicalType type);
|
|
1152
1152
|
bool TypeIsIntegral(PhysicalType type);
|