duckdb 0.5.2-dev1445.0 → 0.5.2-dev1452.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.5.2-dev1445.0",
5
+ "version": "0.5.2-dev1452.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -183132,6 +183132,7 @@ void ExpressionBinder::QualifyColumnNames(unique_ptr<ParsedExpression> &expr) {
183132
183132
  if (!expr->alias.empty()) {
183133
183133
  new_expr->alias = expr->alias;
183134
183134
  }
183135
+ new_expr->query_location = colref.query_location;
183135
183136
  expr = move(new_expr);
183136
183137
  }
183137
183138
  break;
@@ -183302,6 +183303,7 @@ BindResult ExpressionBinder::BindExpression(ColumnRefExpression &colref_p, idx_t
183302
183303
  if (!expr) {
183303
183304
  return BindResult(binder.FormatError(colref_p, error_message));
183304
183305
  }
183306
+ expr->query_location = colref_p.query_location;
183305
183307
 
183306
183308
  // a generated column returns a generated expression, a struct on a column returns a struct extract
183307
183309
  if (expr->type != ExpressionType::COLUMN_REF) {
@@ -185468,10 +185470,12 @@ unique_ptr<BoundQueryNode> Binder::BindNode(SelectNode &statement) {
185468
185470
  } else if (statement.aggregate_handling == AggregateHandling::STANDARD_HANDLING) {
185469
185471
  if (select_binder.HasBoundColumns()) {
185470
185472
  auto &bound_columns = select_binder.GetBoundColumns();
185471
- throw BinderException(
185472
- FormatError(bound_columns[0].query_location,
185473
- "column \"%s\" must appear in the GROUP BY clause or be used in an aggregate function",
185474
- bound_columns[0].name));
185473
+ string error;
185474
+ error = "column \"%s\" must appear in the GROUP BY clause or must be part of an aggregate function.";
185475
+ error += "\nEither add it to the GROUP BY list, or use \"ANY_VALUE(%s)\" if the exact value of \"%s\" "
185476
+ "is not important.";
185477
+ throw BinderException(FormatError(bound_columns[0].query_location, error, bound_columns[0].name,
185478
+ bound_columns[0].name, bound_columns[0].name));
185475
185479
  }
185476
185480
  }
185477
185481
  }
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 "f3ebda949f"
15
- #define DUCKDB_VERSION "v0.5.2-dev1445"
14
+ #define DUCKDB_SOURCE_ID "267d43e3d7"
15
+ #define DUCKDB_VERSION "v0.5.2-dev1452"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //