duckdb 0.3.5-dev1297.0 → 0.3.5-dev1328.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.5-dev1297.0",
4
+ "version": "0.3.5-dev1328.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -166050,11 +166050,11 @@ SchemaCatalogEntry *Binder::BindSchema(CreateInfo &info) {
166050
166050
  void Binder::BindCreateViewInfo(CreateViewInfo &base) {
166051
166051
  // bind the view as if it were a query so we can catch errors
166052
166052
  // note that we bind the original, and replace the original with a copy
166053
- // this is because the original has
166054
- this->can_contain_nulls = true;
166053
+ auto view_binder = Binder::CreateBinder(context);
166054
+ view_binder->can_contain_nulls = true;
166055
166055
 
166056
166056
  auto copy = base.query->Copy();
166057
- auto query_node = Bind(*base.query);
166057
+ auto query_node = view_binder->Bind(*base.query);
166058
166058
  base.query = unique_ptr_cast<SQLStatement, SelectStatement>(move(copy));
166059
166059
  if (base.aliases.size() > query_node.names.size()) {
166060
166060
  throw BinderException("More VIEW aliases than columns in query result");