Skip to content

Commit

Permalink
Only look for pointcloud in its installed extension schema
Browse files Browse the repository at this point in the history
Closes #33509
  • Loading branch information
strk committed Jan 16, 2020
1 parent ab9cbe0 commit 1f44b29
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/providers/postgres/qgspostgresconn.cpp
Expand Up @@ -1103,9 +1103,13 @@ QString QgsPostgresConn::postgisVersion() const
SELECT
has_table_privilege(c.oid, 'select')
AND has_table_privilege(f.oid, 'select')
FROM pg_class c, pg_class f
WHERE c.relname = 'pointcloud_columns'
FROM pg_class c, pg_class f, pg_namespace n, pg_extension e
WHERE c.relnamespace = n.oid
AND c.relname = 'pointcloud_columns'
AND f.relnamespace = n.oid
AND f.relname = 'pointcloud_formats'
AND n.oid = e.extnamespace
AND e.extname = 'pointcloud'
)" ), false );
if ( result.PQntuples() >= 1 && result.PQgetvalue( 0, 0 ) == QLatin1String( "t" ) )
{
Expand Down

0 comments on commit 1f44b29

Please sign in to comment.