duckdb 0.9.1-dev86.0 → 0.9.1-dev95.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.9.1-dev86.0",
5
+ "version": "0.9.1-dev95.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
@@ -1,8 +1,8 @@
1
1
  #ifndef DUCKDB_VERSION
2
- #define DUCKDB_VERSION "v0.9.1-dev86"
2
+ #define DUCKDB_VERSION "v0.9.1-dev95"
3
3
  #endif
4
4
  #ifndef DUCKDB_SOURCE_ID
5
- #define DUCKDB_SOURCE_ID "c0dfff9198"
5
+ #define DUCKDB_SOURCE_ID "e2b1788a25"
6
6
  #endif
7
7
  #include "duckdb/function/table/system_functions.hpp"
8
8
  #include "duckdb/main/database.hpp"
@@ -317,7 +317,7 @@ typedef enum {
317
317
  //===--------------------------------------------------------------------===//
318
318
 
319
319
  /*!
320
- Creates a new database or opens an existing database file stored at the the given path.
320
+ Creates a new database or opens an existing database file stored at the given path.
321
321
  If no path is given a new in-memory database is created instead.
322
322
  The instantiated database should be closed with 'duckdb_close'
323
323
 
@@ -328,7 +328,7 @@ The instantiated database should be closed with 'duckdb_close'
328
328
  DUCKDB_API duckdb_state duckdb_open(const char *path, duckdb_database *out_database);
329
329
 
330
330
  /*!
331
- Extended version of duckdb_open. Creates a new database or opens an existing database file stored at the the given path.
331
+ Extended version of duckdb_open. Creates a new database or opens an existing database file stored at the given path.
332
332
 
333
333
  * path: Path to the database file on disk, or `nullptr` or `:memory:` to open an in-memory database.
334
334
  * out_database: The result database object.
@@ -1009,7 +1009,7 @@ Binds an int64_t value to the prepared statement at the specified index.
1009
1009
  DUCKDB_API duckdb_state duckdb_bind_int64(duckdb_prepared_statement prepared_statement, idx_t param_idx, int64_t val);
1010
1010
 
1011
1011
  /*!
1012
- Binds an duckdb_hugeint value to the prepared statement at the specified index.
1012
+ Binds a duckdb_hugeint value to the prepared statement at the specified index.
1013
1013
  */
1014
1014
  DUCKDB_API duckdb_state duckdb_bind_hugeint(duckdb_prepared_statement prepared_statement, idx_t param_idx,
1015
1015
  duckdb_hugeint val);
@@ -1040,12 +1040,12 @@ Binds an uint64_t value to the prepared statement at the specified index.
1040
1040
  DUCKDB_API duckdb_state duckdb_bind_uint64(duckdb_prepared_statement prepared_statement, idx_t param_idx, uint64_t val);
1041
1041
 
1042
1042
  /*!
1043
- Binds an float value to the prepared statement at the specified index.
1043
+ Binds a float value to the prepared statement at the specified index.
1044
1044
  */
1045
1045
  DUCKDB_API duckdb_state duckdb_bind_float(duckdb_prepared_statement prepared_statement, idx_t param_idx, float val);
1046
1046
 
1047
1047
  /*!
1048
- Binds an double value to the prepared statement at the specified index.
1048
+ Binds a double value to the prepared statement at the specified index.
1049
1049
  */
1050
1050
  DUCKDB_API duckdb_state duckdb_bind_double(duckdb_prepared_statement prepared_statement, idx_t param_idx, double val);
1051
1051
 
@@ -135,6 +135,9 @@ unique_ptr<LogicalOperator> LogicalComparisonJoin::CreateJoin(ClientContext &con
135
135
  bool need_to_consider_arbitrary_expressions = true;
136
136
  switch (reftype) {
137
137
  case JoinRefType::ASOF: {
138
+ if (!arbitrary_expressions.empty()) {
139
+ throw BinderException("Invalid ASOF JOIN condition");
140
+ }
138
141
  need_to_consider_arbitrary_expressions = false;
139
142
  auto asof_idx = conditions.size();
140
143
  for (size_t c = 0; c < conditions.size(); ++c) {