Skip to content
Permalink
Browse files

Restore support for databases without PostGIS installed

Closes #34966 in 3.12 branch
  • Loading branch information
strk committed Mar 12, 2020
1 parent fc89bca commit 2f99dbd279809f3e5d38fe492417a68dd708f306
Showing with 2 additions and 6 deletions.
  1. +2 −6 src/providers/postgres/qgspostgresconn.cpp
@@ -594,12 +594,8 @@ bool QgsPostgresConn::getTableInfo( bool searchGeometryColumnsOnly, bool searchP

QgsDebugMsg( "getting table info from layer registries: " + query );
result = PQexec( query, true );
if ( result.PQresultStatus() != PGRES_TUPLES_OK )
{
PQexecNR( QStringLiteral( "COMMIT" ) );
return false;
}

// NOTE: we intentionally continue if the query fails
// (for example because PostGIS is not installed)
for ( int idx = 0; idx < result.PQntuples(); idx++ )
{
QString tableName = result.PQgetvalue( idx, 0 );

0 comments on commit 2f99dbd

Please sign in to comment.
You can’t perform that action at this time.