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

Function API_ROUTINE fb_get_statement_interface

src/yvalve/why.cpp:3913–3936  ·  view source on GitHub ↗

Get statement interface by legacy handle

Source from the content-addressed store, hash-verified

3911
3912// Get statement interface by legacy handle
3913ISC_STATUS API_ROUTINE fb_get_statement_interface(ISC_STATUS* userStatus, void* iPtr,
3914 isc_stmt_handle* hndlPtr)
3915{
3916 StatusVector status(userStatus);
3917 CheckStatusWrapper statusWrapper(&status);
3918
3919 try
3920 {
3921 IStatement** stmt = (IStatement**) iPtr;
3922 if (*stmt)
3923 (Arg::Gds(isc_random) << "Interface must be null").raise();
3924
3925 RefPtr<IscStatement> statement(translateHandle(statements, hndlPtr));
3926 statement->checkPrepared(isc_info_unprepared_stmt);
3927
3928 *stmt = statement->getInterface();
3929 }
3930 catch (const Exception& e)
3931 {
3932 e.stuffException(&statusWrapper);
3933 }
3934
3935 return status[1];
3936}
3937
3938
3939//-------------------------------------

Callers

nothing calls this directly

Calls 6

GdsClass · 0.85
translateHandleFunction · 0.85
checkPreparedMethod · 0.80
raiseMethod · 0.45
getInterfaceMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected