Skip to content

Commit

Permalink
Use duckdb_columns tables for validation (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
csafreen authored Apr 1, 2024
1 parent 157b511 commit 449f042
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions services/cdw-svc/src/qe/settings/DbMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ export class DbMeta {
from information_schema.columns
where table_schema = ?::text AND TABLE_NAME = ?::text
UNION
SELECT attname as \"COLUMN_NAME\"
from pg_attribute
WHERE attrelid = concat(?::text, '."', ?::text, '"')
ORDER BY \"COLUMN_NAME\"`
SELECT column_name as \"COLUMN_NAME\"
from duckdb_columns()
WHERE schema_name = ?::text and table_name = ?::text
ORDER BY \"column_name\"`
}else{
query = `SELECT COLUMN_NAME
FROM TABLE_COLUMNS
Expand Down

0 comments on commit 449f042

Please sign in to comment.