Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Write the pointcloud support check in a cleaner way
  • Loading branch information
Sandro Santilli committed May 12, 2015
1 parent c8aa777 commit 4562b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresconn.cpp
Expand Up @@ -866,7 +866,7 @@ QString QgsPostgresConn::postgisVersion()

mGotPostgisVersion = true;

result = PQexec( "SELECT 'pointcloud_columns'::regclass", false );
result = PQexec( "SELECT oid FROM pg_catalog.pg_extension WHERE extname = 'pointcloud_postgis'", false );
mPointcloudAvailable = result.PQntuples() == 1;

return mPostgisVersionInfo;
Expand Down

0 comments on commit 4562b04

Please sign in to comment.