8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 21:23:04 +01:00

Fixed a bug in one of my recent commits - thanks to Claudio

This commit is contained in:
alexpeshkoff 2013-04-15 15:58:52 +00:00
parent 5fec042c74
commit f7f798f4e7

View File

@ -2730,9 +2730,9 @@ FB_BOOLEAN ResultSet::fetchNext(IStatus* status, void* buffer)
// Check and validate handles, etc.
if (!isc_dsql_cursor_err)
if (!stmt)
{
Arg::Gds(isc_bad_req_handle).raise();
(Arg::Gds(isc_dsql_cursor_err) << Arg::Gds(isc_bad_req_handle)).raise();
}
Rsr* statement = stmt->getStatement();
CHECK_HANDLE(statement, isc_bad_req_handle);