Fix incorrect comparison operator.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@37725 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Wolfgang Lux 2014-03-05 17:25:07 +00:00
parent bd40e7b084
commit d1beaed950
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-03-05 Wolfgang Lux <wolfgang.lux@gmail.com>
* Postgres.m (backendExecute:):
Fix incorrect comparison operator.
2014-02-21 Richard Frith-Macdonald <rfm@gnu.org>
* SQLClient.h:

View file

@ -399,7 +399,7 @@ connectQuote(NSString *str)
stmt, str];
}
if (PQresultStatus(result) != PGRES_COMMAND_OK
&& PQresultStatus(result) == PGRES_TUPLES_OK)
&& PQresultStatus(result) != PGRES_TUPLES_OK)
{
[NSException raise: SQLException format: @"Error executing %@: %s",
stmt, PQresultErrorMessage(result)];