mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
bug fix: the search for tables with geometry columns was including
database objects that weren't tables or views git-svn-id: http://svn.osgeo.org/qgis/trunk@4025 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
e687cc56e3
commit
cf106c9ae5
@ -390,7 +390,8 @@ bool QgsDbSourceSelect::getGeometryColumnInfo(PGconn *pg,
|
||||
"pg_attribute, pg_class, pg_type where pg_type.typname = 'geometry' and "
|
||||
"pg_attribute.atttypid = pg_type.oid and pg_attribute.attrelid = pg_class.oid "
|
||||
"and cast(pg_class.relname as character varying) not in "
|
||||
"(select f_table_name from geometry_columns)";
|
||||
"(select f_table_name from geometry_columns) "
|
||||
"and pg_class.relkind in ('v', 'r')"; // only from views and relations (tables)
|
||||
|
||||
result = PQexec(pg, (const char *) sql);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user