You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// skip columns of which we already derived information from the metadata tables
416
419
if ( nColumns > 0 )
417
420
{
418
-
// TODO: handle this for the topogeometry case
419
-
sql += " AND (pg_namespace.nspname,pg_class.relname) NOT IN (SELECT f_table_schema,f_table_name FROM geometry_columns)";
421
+
sql += " AND (pg_namespace.nspname,pg_class.relname,pg_attribute.attname) NOT IN (SELECT f_table_schema,f_table_name,f_geometry_column FROM geometry_columns)";
420
422
421
423
if ( nGTables > 1 )
422
424
{
423
-
// TODO: handle this for the topogeometry case
424
-
// TODO: handle this for the geometry case ?
425
-
sql += " AND (pg_namespace.nspname,pg_class.relname) NOT IN (SELECT f_table_schema,f_table_name FROM geography_columns)";
425
+
sql += " AND (pg_namespace.nspname,pg_class.relname,pg_attribute.attname) NOT IN (SELECT f_table_schema,f_table_name,f_geography_column FROM geography_columns)";
426
426
}
427
+
428
+
// TODO: handle this for the topogeometry case (once we lookup topology.layer)
427
429
}
428
430
429
431
sql += " AND pg_class.relkind IN ('v','r')"; // only from views and relations (tables)
0 commit comments