Set the scratch's transaction when executing a node. Fact of accessing the scratch during execution is a hack.
| 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 | { |
no test coverage detected