8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 20:03:02 +01:00

Avoid replicating internal DDL statements (just in case they would exist)

This commit is contained in:
Dmitry Yemanov 2021-12-31 22:52:55 +03:00
parent 128ce239f2
commit 3a0078f2c3

View File

@ -1016,7 +1016,10 @@ void DsqlDdlRequest::execute(thread_db* tdbb, jrd_tra** traHandle,
node->executeDdl(tdbb, internalScratch, req_transaction);
if (node->mustBeReplicated())
const bool isInternalRequest =
(internalScratch->flags & DsqlCompilerScratch::FLAG_INTERNAL_REQUEST);
if (!isInternalRequest && node->mustBeReplicated())
REPL_exec_sql(tdbb, req_transaction, getStatement()->getOrgText());
}
catch (status_exception& ex)