duckdb 0.4.1-dev331.0 → 0.4.1-dev344.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.4.1-dev331.0",
4
+ "version": "0.4.1-dev344.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -1537,7 +1537,7 @@ public:
1537
1537
  }
1538
1538
 
1539
1539
  template <class T, class RETURN_TYPE = unique_ptr<T>, typename... ARGS>
1540
- RETURN_TYPE ReadSerializable(RETURN_TYPE default_value, ARGS &&... args) {
1540
+ RETURN_TYPE ReadSerializable(RETURN_TYPE default_value, ARGS &&...args) {
1541
1541
  if (field_count >= max_field_count) {
1542
1542
  // field is not there, read the default value
1543
1543
  return default_value;
@@ -1559,7 +1559,7 @@ public:
1559
1559
  }
1560
1560
 
1561
1561
  template <class T, class RETURN_TYPE = unique_ptr<T>, typename... ARGS>
1562
- RETURN_TYPE ReadRequiredSerializable(ARGS &&... args) {
1562
+ RETURN_TYPE ReadRequiredSerializable(ARGS &&...args) {
1563
1563
  if (field_count >= max_field_count) {
1564
1564
  // field is not there, read the default value
1565
1565
  throw SerializationException("Attempting to read mandatory field, but field is missing");
@@ -121066,7 +121066,7 @@ inline std::string encode_url(const std::string &s) {
121066
121066
  for (size_t i = 0; s[i]; i++) {
121067
121067
  switch (s[i]) {
121068
121068
  case ' ': result += "%20"; break;
121069
- case '+': result += "%2B"; break;
121069
+ // case '+': result += "%2B"; break;
121070
121070
  case '\r': result += "%0D"; break;
121071
121071
  case '\n': result += "%0A"; break;
121072
121072
  case '\'': result += "%27"; break;
@@ -121112,7 +121112,12 @@ inline std::string decode_url(const std::string &s,
121112
121112
  int val = 0;
121113
121113
  if (from_hex_to_i(s, i + 1, 2, val)) {
121114
121114
  // 2 digits hex codes
121115
- result += static_cast<char>(val);
121115
+ if (static_cast<char>(val) == '+'){
121116
+ // We don't decode +
121117
+ result += "%2B";
121118
+ } else {
121119
+ result += static_cast<char>(val);
121120
+ }
121116
121121
  i += 2; // '00'
121117
121122
  } else {
121118
121123
  result += s[i];
@@ -122711,7 +122716,7 @@ inline void parse_query_text(const std::string &s, Params &params) {
122711
122716
  });
122712
122717
 
122713
122718
  if (!key.empty()) {
122714
- params.emplace(decode_url(key, true), decode_url(val, true));
122719
+ params.emplace(decode_url(key, true), decode_url(val, false));
122715
122720
  }
122716
122721
  });
122717
122722
  }
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 "84e6de02a"
15
- #define DUCKDB_VERSION "v0.4.1-dev331"
14
+ #define DUCKDB_SOURCE_ID "001284c09"
15
+ #define DUCKDB_VERSION "v0.4.1-dev344"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //