| 415 | } |
| 416 | |
| 417 | void 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 | |
| 442 | void Replicator::cleanupTransaction(CheckStatusWrapper* status, |
| 443 | SINT64 number) |
no test coverage detected