Skip to content
Permalink
Browse files

backport 646ff6f

  • Loading branch information
jef-n committed Jan 12, 2012
1 parent d6b1519 commit c6eb2364019f0ee2af1949249dcdb79c3cae3b9e
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/postgres/qgspgsourceselect.cpp
@@ -781,11 +781,11 @@ bool QgsPgSourceSelect::getTableInfo( PGconn *pg, bool searchGeometryColumnsOnly

if ( nColumns > 0 )
{
sql += " and not exists (select * from geometry_columns WHERE pg_namespace.nspname=f_table_schema AND pg_class.relname=f_table_name)";
sql += " AND (pg_namespace.nspname,pg_class.relname) NOT IN (SELECT f_table_schema,f_table_name FROM geometry_columns)";

if ( nGTables > 1 )
{
sql += " and not exists (select * from geography_columns WHERE pg_namespace.nspname=f_table_schema AND pg_class.relname=f_table_name)";
sql += " AND (pg_namespace.nspname,pg_class.relname) NOT IN (SELECT f_table_schema,f_table_name FROM geography_columns)";
}
}
else

0 comments on commit c6eb236

Please sign in to comment.
You can’t perform that action at this time.