MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / executeDdl

Method executeDdl

src/dsql/Nodes.h:203–212  ·  view source on GitHub ↗

Set the scratch's transaction when executing a node. Fact of accessing the scratch during execution is a hack.

Source from the content-addressed store, hash-verified

201 // Set the scratch's transaction when executing a node. Fact of accessing the scratch during
202 // execution is a hack.
203 void executeDdl(thread_db* tdbb, DsqlCompilerScratch* dsqlScratch, jrd_tra* transaction, bool trusted = false)
204 {
205 // dsqlScratch should be NULL with CREATE DATABASE.
206 if (dsqlScratch)
207 dsqlScratch->setTransaction(transaction);
208
209 if (!trusted)
210 checkPermission(tdbb, transaction);
211 execute(tdbb, dsqlScratch, transaction);
212 }
213
214 virtual DdlNode* dsqlPass(DsqlCompilerScratch* dsqlScratch)
215 {

Callers 1

executeMethod · 0.80

Calls 2

executeFunction · 0.85
setTransactionMethod · 0.45

Tested by

no test coverage detected