Skip to content

Commit 4562b04

Browse files
author
Sandro Santilli
committedMay 12, 2015
Write the pointcloud support check in a cleaner way
1 parent c8aa777 commit 4562b04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/postgres/qgspostgresconn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ QString QgsPostgresConn::postgisVersion()
866866

867867
mGotPostgisVersion = true;
868868

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

872872
return mPostgisVersionInfo;

0 commit comments

Comments
 (0)
Please sign in to comment.