Get statement interface by legacy handle
| 3911 | |
| 3912 | // Get statement interface by legacy handle |
| 3913 | ISC_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 | //------------------------------------- |
nothing calls this directly
no test coverage detected