mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
postgres provider: check pg_extension only on Pg>9
This commit is contained in:
parent
0af69ed9fb
commit
8ab005f875
@ -868,12 +868,15 @@ QString QgsPostgresConn::postgisVersion()
|
||||
|
||||
mGotPostgisVersion = true;
|
||||
|
||||
QgsDebugMsg( "Checking for pointcloud support" );
|
||||
result = PQexec( "SELECT oid FROM pg_catalog.pg_extension WHERE extname = 'pointcloud_postgis'", false );
|
||||
if ( result.PQntuples() == 1 )
|
||||
if ( mPostgresqlVersion >= 90000 )
|
||||
{
|
||||
mPointcloudAvailable = true;
|
||||
QgsDebugMsg( "Pointcloud support available!" );
|
||||
QgsDebugMsg( "Checking for pointcloud support" );
|
||||
result = PQexec( "SELECT oid FROM pg_catalog.pg_extension WHERE extname = 'pointcloud_postgis'", false );
|
||||
if ( result.PQntuples() == 1 )
|
||||
{
|
||||
mPointcloudAvailable = true;
|
||||
QgsDebugMsg( "Pointcloud support available!" );
|
||||
}
|
||||
}
|
||||
|
||||
return mPostgisVersionInfo;
|
||||
|
Loading…
x
Reference in New Issue
Block a user