duckdb 0.6.2-dev484.0 → 0.6.2-dev490.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.6.2-dev484.0",
5
+ "version": "0.6.2-dev490.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -48577,9 +48577,6 @@ static_assert(sizeof(timestamp_t) == sizeof(int64_t), "timestamp_t was padded");
48577
48577
  // T may be a space
48578
48578
  // Z is optional
48579
48579
  // ISO 8601
48580
- static inline bool CharacterIsTimeZone(char c) {
48581
- return StringUtil::CharacterIsAlpha(c) || StringUtil::CharacterIsDigit(c) || c == '_' || c == '/';
48582
- }
48583
48580
 
48584
48581
  bool Timestamp::TryConvertTimestampTZ(const char *str, idx_t len, timestamp_t &result, bool &has_offset, string_t &tz) {
48585
48582
  idx_t pos;
@@ -110150,8 +110147,8 @@ bool StrpTimeFormat::Parse(string_t str, ParseResult &result) {
110150
110147
  pos++;
110151
110148
  }
110152
110149
  const auto tz_begin = data + pos;
110153
- // stop when we encounter a space or the end of the string
110154
- while (pos < size && !StringUtil::CharacterIsSpace(data[pos])) {
110150
+ // stop when we encounter a non-tz character
110151
+ while (pos < size && Timestamp::CharacterIsTimeZone(data[pos])) {
110155
110152
  pos++;
110156
110153
  }
110157
110154
  const auto tz_end = data + pos;