duckdb 0.4.1-dev799.0 → 0.4.1-dev801.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-dev799.0",
4
+ "version": "0.4.1-dev801.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
@@ -321,19 +321,25 @@ struct ExecTask : public Task {
321
321
  auto &connection = Get<Connection>();
322
322
 
323
323
  success = true;
324
- auto statements = connection.connection->ExtractStatements(sql);
325
- if (statements.empty()) {
326
- return;
327
- }
324
+ try {
325
+ auto statements = connection.connection->ExtractStatements(sql);
326
+ if (statements.empty()) {
327
+ return;
328
+ }
328
329
 
329
- // thanks Mark
330
- for (duckdb::idx_t i = 0; i < statements.size(); i++) {
331
- auto res = connection.connection->Query(move(statements[i]));
332
- if (!res->success) {
333
- success = false;
334
- error = res->error;
335
- break;
330
+ // thanks Mark
331
+ for (duckdb::idx_t i = 0; i < statements.size(); i++) {
332
+ auto res = connection.connection->Query(move(statements[i]));
333
+ if (!res->success) {
334
+ success = false;
335
+ error = res->error;
336
+ break;
337
+ }
336
338
  }
339
+ } catch (duckdb::ParserException &e) {
340
+ success = false;
341
+ error = e.what();
342
+ return;
337
343
  }
338
344
  }
339
345
 
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 "eba10adcd"
15
- #define DUCKDB_VERSION "v0.4.1-dev799"
14
+ #define DUCKDB_SOURCE_ID "bc7a4514c"
15
+ #define DUCKDB_VERSION "v0.4.1-dev801"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //