Provide information on sql statement.
| 2840 | |
| 2841 | // Provide information on sql statement. |
| 2842 | ISC_STATUS API_ROUTINE isc_dsql_sql_info(ISC_STATUS* userStatus, isc_stmt_handle* stmtHandle, |
| 2843 | SSHORT itemLength, const SCHAR* items, SSHORT bufferLength, SCHAR* buffer) |
| 2844 | { |
| 2845 | StatusVector status(userStatus); |
| 2846 | CheckStatusWrapper statusWrapper(&status); |
| 2847 | |
| 2848 | try |
| 2849 | { |
| 2850 | RefPtr<IscStatement> statement(translateHandle(statements, stmtHandle)); |
| 2851 | statement->checkPrepared(isc_info_unprepared_stmt); |
| 2852 | |
| 2853 | statement->statement->getInfo(&statusWrapper, |
| 2854 | USHORT(itemLength), reinterpret_cast<const UCHAR*>(items), |
| 2855 | USHORT(bufferLength), reinterpret_cast<UCHAR*>(buffer)); |
| 2856 | } |
| 2857 | catch (const Exception& e) |
| 2858 | { |
| 2859 | e.stuffException(&statusWrapper); |
| 2860 | } |
| 2861 | |
| 2862 | return status[1]; |
| 2863 | } |
| 2864 | |
| 2865 | |
| 2866 | // Enable access to a specific subsystem. If no subsystem has been explicitly enabled, all are |
nothing calls this directly
no test coverage detected