fix: pg invalid query

This commit is contained in:
Vishal Bihani 2023-08-14 19:39:11 +05:30
parent db7c264062
commit c3e6e94f88
1 changed files with 1 additions and 1 deletions

View File

@ -1078,7 +1078,7 @@ FROM pg_attribute f
LEFT JOIN pg_constraint p ON p.conrelid = c.oid AND f.attnum = ANY (p.conkey)
LEFT JOIN pg_class AS g ON p.confrelid = g.oid
LEFT JOIN INFORMATION_SCHEMA.COLUMNS s ON s.column_name=f.attname AND c.relname=s.table_name
WHERE n.nspname= s.table_schema AND c.relkind = 'r' AND c.relname = $1%s AND f.attnum > 0 ORDER BY f.attnum;`
WHERE n.nspname= s.table_schema AND c.relkind = 'r' AND c.relname = $1 %s AND f.attnum > 0 ORDER BY f.attnum;`
schema := db.getSchema()
if schema != "" {