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

Method createBatch

src/remote/client/interface.cpp:2447–2476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2445
2446
2447Batch* Attachment::createBatch(CheckStatusWrapper* status, ITransaction* transaction,
2448 unsigned stmtLength, const char* sqlStmt, unsigned dialect,
2449 IMessageMetadata* inMetadata, unsigned parLength, const unsigned char* par)
2450{
2451/**************************************
2452 *
2453 * c r e a t e B a t c h
2454 *
2455 **************************************
2456 *
2457 * Functional description
2458 * Create jdbc-style batch for SQL statement.
2459 *
2460 **************************************/
2461 Statement* stmt = prepare(status, transaction, stmtLength, sqlStmt, dialect, 0);
2462 if (status->getState() & IStatus::STATE_ERRORS)
2463 {
2464 return NULL;
2465 }
2466
2467 Batch* rc = stmt->createBatch(status, inMetadata, parLength, par);
2468 if (status->getState() & IStatus::STATE_ERRORS)
2469 {
2470 stmt->release();
2471 return NULL;
2472 }
2473
2474 rc->tmpStatement = true;
2475 return rc;
2476}
2477
2478
2479void Attachment::setParamsFromDPB(ClumpletReader& dpb)

Callers 1

batch_createMethod · 0.45

Calls 15

CHECK_HANDLEFunction · 0.85
unsupportedFunction · 0.85
CHECK_LENGTHFunction · 0.85
PARSE_msg_formatFunction · 0.85
send_partial_packetFunction · 0.85
defer_packetFunction · 0.85
send_and_receiveFunction · 0.85
BatchClass · 0.85
assignRefNoIncrMethod · 0.80
resetFunction · 0.70
checkFunction · 0.50
RMessageClass · 0.50

Tested by

no test coverage detected