mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Do not consider a tuple response as an error in transaction
This commit is contained in:
parent
8dd70c1dab
commit
640f78e5df
@ -74,7 +74,8 @@ bool QgsPostgresTransaction::executeSql( const QString &sql, QString &errorMsg,
|
||||
mConn->lock();
|
||||
QgsPostgresResult r( mConn->PQexec( sql, true ) );
|
||||
mConn->unlock();
|
||||
if ( r.PQresultStatus() != PGRES_COMMAND_OK )
|
||||
if ( r.PQresultStatus() == PGRES_BAD_RESPONSE ||
|
||||
r.PQresultStatus() == PGRES_FATAL_ERROR )
|
||||
{
|
||||
errorMsg = QStringLiteral( "Status %1 (%2)" ).arg( r.PQresultStatus() ).arg( r.PQresultErrorMessage() );
|
||||
QgsDebugMsg( errorMsg );
|
||||
|
Loading…
x
Reference in New Issue
Block a user