duckdb 0.3.5-dev288.0 → 0.3.5-dev303.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.3.5-dev288.0",
4
+ "version": "0.3.5-dev303.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -90360,13 +90360,30 @@ bool StrpTimeFormat::Parse(string_t str, ParseResult &result) {
90360
90360
 
90361
90361
  for (idx_t i = 0;; i++) {
90362
90362
  // first compare the literal
90363
- if (literals[i].size() > (size - pos) || memcmp(data + pos, literals[i].c_str(), literals[i].size()) != 0) {
90363
+ const auto &literal = literals[i];
90364
+ for (size_t l = 0; l < literal.size();) {
90365
+ // Match runs of spaces to runs of spaces.
90366
+ if (StringUtil::CharacterIsSpace(literal[l])) {
90367
+ if (!StringUtil::CharacterIsSpace(data[pos])) {
90368
+ error_message = "Space does not match, expected " + literals[i];
90369
+ error_position = pos;
90370
+ return false;
90371
+ }
90372
+ for (++pos; pos < size && StringUtil::CharacterIsSpace(data[pos]); ++pos) {
90373
+ continue;
90374
+ }
90375
+ for (++l; l < literal.size() && StringUtil::CharacterIsSpace(literal[l]); ++l) {
90376
+ continue;
90377
+ }
90378
+ continue;
90379
+ }
90364
90380
  // literal does not match
90365
- error_message = "Literal does not match, expected " + literals[i];
90366
- error_position = pos;
90367
- return false;
90381
+ if (data[pos++] != literal[l++]) {
90382
+ error_message = "Literal does not match, expected " + literal;
90383
+ error_position = pos;
90384
+ return false;
90385
+ }
90368
90386
  }
90369
- pos += literals[i].size();
90370
90387
  if (i == specifiers.size()) {
90371
90388
  break;
90372
90389
  }
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 "ae0f79afb"
15
- #define DUCKDB_VERSION "v0.3.5-dev288"
14
+ #define DUCKDB_SOURCE_ID "6408b842a"
15
+ #define DUCKDB_VERSION "v0.3.5-dev303"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //