mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 01:54:55 +00:00
Fix
This commit is contained in:
parent
d3df1c02bc
commit
a223526f45
@ -216,7 +216,7 @@ PostgreSQLTableStructure fetchPostgreSQLTableStructure(
|
||||
"SELECT attname AS name, format_type(atttypid, atttypmod) AS type, "
|
||||
"attnotnull AS not_null, attndims AS dims "
|
||||
"FROM pg_attribute "
|
||||
"WHERE attrelid = {}::regclass "
|
||||
"WHERE attrelid = (SELECT oid FROM pg_class WHERE relname = {})"
|
||||
"AND NOT attisdropped AND attnum > 0", quoteString(postgres_table_name));
|
||||
|
||||
table.columns = readNamesAndTypesList(tx, postgres_table_name, query, use_nulls, false);
|
||||
|
Loading…
Reference in New Issue
Block a user