Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
2 additions
and
2 deletions.
-
+2
−2
src/providers/postgres/qgspostgresprovider.cpp
|
@@ -4029,7 +4029,7 @@ bool QgsPostgresProvider::getGeometryDetails() |
|
|
QgsDebugMsg( "Getting geometry column: " + sql ); |
|
|
result = connectionRO->PQexec( sql ); |
|
|
|
|
|
QgsDebugMsg( "geometry column query returned " + QString::number( PQntuples( result ) ) ); |
|
|
QgsDebugMsg( QString( "geometry column query returned %1 rows" ).arg( PQntuples( result ) ) ); |
|
|
|
|
|
if ( PQntuples( result ) > 0 ) |
|
|
{ |
|
@@ -4117,7 +4117,7 @@ bool QgsPostgresProvider::getGeometryDetails() |
|
|
|
|
|
result = connectionRO->PQexec( sql ); |
|
|
|
|
|
if ( PQntuples( result ) == 1 ) |
|
|
if ( PQntuples( result ) == 1 && !PQgetisnull( result, 0, 0 ) ) |
|
|
{ |
|
|
fType = QString::fromUtf8( PQgetvalue( result, 0, 0 ) ); |
|
|
} |
|
|
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.