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:
parent
5fec042c74
commit
f7f798f4e7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user