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

Function API_ROUTINE isc_dsql_sql_info

src/yvalve/why.cpp:2842–2863  ·  view source on GitHub ↗

Provide information on sql statement.

Source from the content-addressed store, hash-verified

2840
2841// Provide information on sql statement.
2842ISC_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

Callers

nothing calls this directly

Calls 5

translateHandleFunction · 0.85
checkPreparedMethod · 0.80
USHORTEnum · 0.50
getInfoMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected