mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 21:23:03 +01:00
Fixed CORE-2326: AV when committing a new view while trigger on rdb$relations is in place.
This commit is contained in:
parent
b26b3df2bc
commit
f1d139fe91
@ -1031,6 +1031,9 @@ void EXE_start(thread_db* tdbb, jrd_req* request, jrd_tra* transaction)
|
||||
SET_TDBB(tdbb);
|
||||
Database* dbb = tdbb->getDatabase();
|
||||
|
||||
if (request->req_sql_text.length())
|
||||
gds__log(request->req_sql_text.c_str());
|
||||
|
||||
BLKCHK(request, type_req);
|
||||
BLKCHK(transaction, type_tra);
|
||||
|
||||
@ -1588,7 +1591,8 @@ static void execute_procedure(thread_db* tdbb, jrd_nod* node)
|
||||
Jrd::ContextPoolHolder context(tdbb, proc_request->req_pool);
|
||||
|
||||
jrd_tra* transaction = request->req_transaction;
|
||||
const SLONG save_point_number = transaction->tra_save_point->sav_number;
|
||||
const SLONG save_point_number = transaction->tra_save_point ?
|
||||
transaction->tra_save_point->sav_number : 0;
|
||||
|
||||
proc_request->req_timestamp = request->req_timestamp;
|
||||
EXE_start(tdbb, proc_request, transaction);
|
||||
|
Loading…
Reference in New Issue
Block a user