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

Function API_ROUTINE isc_embed_dsql_close

src/yvalve/user_dsql.cpp:145–163  ·  view source on GitHub ↗

____________________________________________________________ Close a dynamic SQL cursor.

Source from the content-addressed store, hash-verified

143// Close a dynamic SQL cursor.
144//
145ISC_STATUS API_ROUTINE isc_embed_dsql_close(ISC_STATUS* user_status, const SCHAR* name)
146{
147 ISC_STATUS_ARRAY local_status;
148
149 INIT_DSQL(user_status, local_status);
150 try
151 {
152 // get the symbol table entry
153
154 dsql_stmt* statement = lookup_stmt(name, cursor_names, NAME_cursor);
155
156 return isc_dsql_free_statement(user_status, &statement->stmt_handle, DSQL_close);
157 }
158 catch (const Firebird::Exception& ex)
159 {
160 return error(ex);
161 }
162
163}
164
165
166//____________________________________________________________

Callers

nothing calls this directly

Calls 3

INIT_DSQLFunction · 0.85
lookup_stmtFunction · 0.85
errorFunction · 0.70

Tested by

no test coverage detected