8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 00:03: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:
dimitr 2009-02-17 19:14:08 +00:00
parent b26b3df2bc
commit f1d139fe91

View File

@ -1031,6 +1031,9 @@ void EXE_start(thread_db* tdbb, jrd_req* request, jrd_tra* transaction)
SET_TDBB(tdbb); SET_TDBB(tdbb);
Database* dbb = tdbb->getDatabase(); Database* dbb = tdbb->getDatabase();
if (request->req_sql_text.length())
gds__log(request->req_sql_text.c_str());
BLKCHK(request, type_req); BLKCHK(request, type_req);
BLKCHK(transaction, type_tra); 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::ContextPoolHolder context(tdbb, proc_request->req_pool);
jrd_tra* transaction = request->req_transaction; 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; proc_request->req_timestamp = request->req_timestamp;
EXE_start(tdbb, proc_request, transaction); EXE_start(tdbb, proc_request, transaction);