report if a query produces no result

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@38456 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-04-15 15:09:18 +00:00
parent 0836cc15ad
commit 3d4c775f41

View file

@ -817,6 +817,11 @@ static unsigned int trim(char *str)
[record release];
}
}
else if (PQresultStatus(result) == PGRES_COMMAND_OK)
{
[NSException raise: SQLException format: @"Error executing %@: %s",
stmt, "query produced no result"];
}
else
{
[NSException raise: SQLException format: @"Error executing %@: %s",