fix(pgsql): improve error logging when PQexec fails

pull/43/merge
Francis Lachapelle 2021-04-27 13:16:12 -04:00
parent 45e3255c9b
commit bad1525554
1 changed files with 1 additions and 3 deletions

View File

@ -650,9 +650,7 @@ static int openConnectionCount = 0;
self->resultSet = [[self->connection execute:_expression] retain];
if (self->resultSet == nil) {
return [PostgreSQL72Exception exceptionWithName:@"ExecutionFailed"
reason:@"the PQexec() failed"
userInfo:nil];
return [self _handleFatalEvaluationError];
}
/* process results */