MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / API_ROUTINE isc_dsql_exec_immed2_m

Function API_ROUTINE isc_dsql_exec_immed2_m

src/yvalve/why.cpp:2481–2504  ·  view source on GitHub ↗

Prepare a statement for execution.

Source from the content-addressed store, hash-verified

2479
2480// Prepare a statement for execution.
2481ISC_STATUS API_ROUTINE isc_dsql_exec_immed2_m(ISC_STATUS* userStatus, isc_db_handle* dbHandle,
2482 isc_tr_handle* traHandle, USHORT stmtLength, const SCHAR* sqlStmt, USHORT dialect,
2483 USHORT inBlrLength, SCHAR* inBlr, USHORT inMsgType, USHORT inMsgLength, const SCHAR* inMsg,
2484 USHORT outBlrLength, SCHAR* outBlr, USHORT outMsgType, USHORT outMsgLength, SCHAR* outMsg)
2485{
2486 StatusVector status(userStatus);
2487 CheckStatusWrapper statusWrapper(&status);
2488
2489 FB_BOOLEAN stmtIsCrDb = FB_FALSE;
2490 YAttachment* att = utilInterface.executeCreateDatabase(&statusWrapper, stmtLength,
2491 sqlStmt, dialect, &stmtIsCrDb);
2492
2493 if (stmtIsCrDb)
2494 {
2495 if (!(status.getState() & IStatus::STATE_ERRORS))
2496 *dbHandle = att->getHandle();
2497
2498 return status[1];
2499 }
2500
2501 return isc_dsql_exec_immed3_m(userStatus, dbHandle, traHandle, stmtLength, sqlStmt, dialect,
2502 inBlrLength, inBlr, inMsgType, inMsgLength, inMsg,
2503 outBlrLength, outBlr, outMsgType, outMsgLength, outMsg);
2504}
2505
2506
2507// Execute statement immediately.

Callers

nothing calls this directly

Calls 3

executeCreateDatabaseMethod · 0.45
getStateMethod · 0.45
getHandleMethod · 0.45

Tested by

no test coverage detected