mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 20:50:20 +08:00
Detect columns from PG table keys only in current schema, do not mix these with columns from an equally named table in a different schema. Closes #842
This commit is contained in:
@ -4853,6 +4853,7 @@ begin
|
||||
' FROM pg_class'+
|
||||
' JOIN pg_index i ON (pg_class.oid = i.indexrelid)'+
|
||||
' JOIN ndx_list ON (pg_class.oid = ndx_list.indexrelid)'+
|
||||
' WHERE pg_table_is_visible(pg_class.oid)'+
|
||||
' )'+
|
||||
'SELECT ndx_cols.relname AS CONSTRAINT_NAME, ndx_cols.CONSTRAINT_TYPE, a.attname AS COLUMN_NAME '+
|
||||
'FROM pg_attribute a '+
|
||||
|
Reference in New Issue
Block a user