duckdb 0.3.2-dev1312.0 → 0.3.2-dev1316.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.2-dev1312.0",
4
+ "version": "0.3.2-dev1316.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -3101,7 +3101,15 @@ string TableCatalogEntry::ToSQL() {
3101
3101
  ss << ", ";
3102
3102
  }
3103
3103
  auto &column = columns[i];
3104
- ss << KeywordHelper::WriteOptionallyQuoted(column.name) << " " << column.type.ToString();
3104
+ ss << KeywordHelper::WriteOptionallyQuoted(column.name) << " ";
3105
+ switch (column.type.id()) {
3106
+ case LogicalTypeId::ENUM:
3107
+ ss << KeywordHelper::WriteOptionallyQuoted(column.type.ToString());
3108
+ break;
3109
+ default:
3110
+ ss << column.type.ToString();
3111
+ break;
3112
+ }
3105
3113
  bool not_null = not_null_columns.find(column.oid) != not_null_columns.end();
3106
3114
  bool is_single_key_pk = pk_columns.find(column.oid) != pk_columns.end();
3107
3115
  bool is_multi_key_pk = multi_key_pks.find(column.name) != multi_key_pks.end();
@@ -3209,6 +3217,7 @@ TableFunctionCatalogEntry::TableFunctionCatalogEntry(Catalog *catalog, SchemaCat
3209
3217
 
3210
3218
 
3211
3219
 
3220
+
3212
3221
  #include <algorithm>
3213
3222
  #include <sstream>
3214
3223
 
@@ -3245,7 +3254,7 @@ string TypeCatalogEntry::ToSQL() {
3245
3254
  Vector values_insert_order(EnumType::GetValuesInsertOrder(user_type));
3246
3255
  idx_t size = EnumType::GetSize(user_type);
3247
3256
  ss << "CREATE TYPE ";
3248
- ss << name;
3257
+ ss << KeywordHelper::WriteOptionallyQuoted(name);
3249
3258
  ss << " AS ENUM ( ";
3250
3259
 
3251
3260
  for (idx_t i = 0; i < size; i++) {
@@ -57313,11 +57322,11 @@ void BufferedCSVReader::InitParseChunk(idx_t num_cols) {
57313
57322
  void BufferedCSVReader::JumpToBeginning(idx_t skip_rows = 0, bool skip_header = false) {
57314
57323
  ResetBuffer();
57315
57324
  ResetStream();
57316
- SkipRowsAndReadHeader(skip_rows, skip_header);
57317
57325
  sample_chunk_idx = 0;
57318
57326
  bytes_in_chunk = 0;
57319
57327
  end_of_file_reached = false;
57320
57328
  bom_checked = false;
57329
+ SkipRowsAndReadHeader(skip_rows, skip_header);
57321
57330
  }
57322
57331
 
57323
57332
  void BufferedCSVReader::SkipRowsAndReadHeader(idx_t skip_rows, bool skip_header) {
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 "ab13af6cf"
15
- #define DUCKDB_VERSION "v0.3.2-dev1312"
14
+ #define DUCKDB_SOURCE_ID "9a485b0fd"
15
+ #define DUCKDB_VERSION "v0.3.2-dev1316"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //