Skip to content

Commit

Permalink
Quote column name
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-- committed Dec 18, 2024
1 parent b0d482e commit eed0def
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scan/postgres_scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ PostgresScanGlobalState::ConstructTableScanQuery(duckdb::TableFunctionInitInput
first = false;
scan_query << "(";
auto attr = table_tuple_desc->attrs[attr_num - 1];
scan_query << filter->ToString(attr.attname.data).c_str();
auto col = quote_identifier(attr.attname.data);
scan_query << filter->ToString(col).c_str();
scan_query << ") ";
}
}
Expand Down

0 comments on commit eed0def

Please sign in to comment.