duckdb 0.3.2-dev665.0 → 0.3.2-dev668.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-dev665.0",
4
+ "version": "0.3.2-dev668.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -145474,8 +145474,10 @@ BindResult ExpressionBinder::BindExpression(BetweenExpression &expr, idx_t depth
145474
145474
  lower.expr = PushCollation(context, move(lower.expr), collation, false);
145475
145475
  upper.expr = PushCollation(context, move(upper.expr), collation, false);
145476
145476
  }
145477
- if (!input.expr->HasSideEffects() && !input.expr->HasParameter()) {
145478
- // the expression does not have side effects: create two comparisons
145477
+ if (!input.expr->HasSideEffects() && !input.expr->HasParameter() && !input.expr->HasSubquery()) {
145478
+ // the expression does not have side effects and can be copied: create two comparisons
145479
+ // the reason we do this is that individual comparisons are easier to handle in optimizers
145480
+ // if both comparisons remain they will be folded together again into a single BETWEEN in the optimizer
145479
145481
  auto left_compare = make_unique<BoundComparisonExpression>(ExpressionType::COMPARE_GREATERTHANOREQUALTO,
145480
145482
  input.expr->Copy(), move(lower.expr));
145481
145483
  auto right_compare = make_unique<BoundComparisonExpression>(ExpressionType::COMPARE_LESSTHANOREQUALTO,
package/src/duckdb.hpp CHANGED
@@ -10,8 +10,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
10
10
 
11
11
  #pragma once
12
12
  #define DUCKDB_AMALGAMATION 1
13
- #define DUCKDB_SOURCE_ID "dd2f405ae"
14
- #define DUCKDB_VERSION "0.3.2-dev665"
13
+ #define DUCKDB_SOURCE_ID "a5e6d9bd4"
14
+ #define DUCKDB_VERSION "0.3.2-dev668"
15
15
  //===----------------------------------------------------------------------===//
16
16
  // DuckDB
17
17
  //