mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-15 16:11:42 +00:00
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:
parent
0836cc15ad
commit
3d4c775f41
1 changed files with 5 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue