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

Method executeSqlIntl

src/jrd/replication/Replicator.cpp:417–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417void Replicator::executeSqlIntl(CheckStatusWrapper* status,
418 Transaction* transaction,
419 unsigned charset,
420 const char* sql)
421{
422 try
423 {
424 auto& txnData = transaction->getData();
425
426 const auto atom = txnData.defineAtom(m_user);
427
428 txnData.putTag(opExecuteSqlIntl);
429 txnData.putInt32(atom);
430 txnData.putByte(charset);
431 txnData.putString(sql);
432
433 if (txnData.getSize() > m_config->bufferSize)
434 flush(txnData, FLUSH_OVERFLOW);
435 }
436 catch (const Exception& ex)
437 {
438 ex.stuffException(status);
439 }
440}
441
442void Replicator::cleanupTransaction(CheckStatusWrapper* status,
443 SINT64 number)

Callers 1

REPL_exec_sqlFunction · 0.45

Calls 8

putTagMethod · 0.80
putInt32Method · 0.80
putByteMethod · 0.80
putStringMethod · 0.80
getDataMethod · 0.45
defineAtomMethod · 0.45
getSizeMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected