Skip to content
Permalink
Browse files

fix warning

  • Loading branch information
jef-n committed Mar 6, 2012
1 parent 407832a commit 24a1fb90a75653a9232094bf63a6a8911670db50
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/providers/postgres/qgspostgresconn.cpp
@@ -364,11 +364,11 @@ bool QgsPostgresConn::getTableInfo( bool searchGeometryColumnsOnly, bool searchP
QString relkind = result.PQgetvalue( idx, 5 );

QgsDebugMsg( QString( "%1 : %2.%3.%4: %5 %6 %7" )
.arg( gtableName )
.arg( schemaName ).arg( tableName ).arg( column )
.arg( type )
.arg( srid )
.arg( relkind ) );
.arg( gtableName )
.arg( schemaName ).arg( tableName ).arg( column )
.arg( type )
.arg( srid )
.arg( relkind ) );

layerProperty.type = type;
layerProperty.schemaName = schemaName;
@@ -498,7 +498,7 @@ bool QgsPostgresConn::getTableInfo( bool searchGeometryColumnsOnly, bool searchP
QgsMessageLog::logMessage( tr( "Database connection was successful, but the accessible tables could not be determined.\nThe error message from the database was:\n%1" )
.arg( result.PQresultErrorMessage() ),
tr( "PostGIS" ) );
return -1;
return false;
}

for ( int i = 0; i < result.PQntuples(); i++ )

0 comments on commit 24a1fb9

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