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

Function API_ROUTINE isc_embed_dsql_execute2

src/yvalve/user_dsql.cpp:285–308  ·  view source on GitHub ↗

____________________________________________________________ Execute a non-SELECT dynamic SQL statement.

Source from the content-addressed store, hash-verified

283// Execute a non-SELECT dynamic SQL statement.
284//
285ISC_STATUS API_ROUTINE isc_embed_dsql_execute2(ISC_STATUS* user_status,
286 FB_API_HANDLE* trans_handle,
287 const SCHAR* stmt_name,
288 USHORT dialect,
289 XSQLDA* in_sqlda,
290 XSQLDA* out_sqlda)
291{
292 ISC_STATUS_ARRAY local_status;
293
294 INIT_DSQL(user_status, local_status);
295 try
296 {
297 // get the symbol table entry
298
299 dsql_stmt* statement = lookup_stmt(stmt_name, statement_names, NAME_statement);
300
301 return isc_dsql_execute2(user_status, trans_handle, &statement->stmt_handle,
302 dialect, in_sqlda, out_sqlda);
303 }
304 catch (const Firebird::Exception& ex)
305 {
306 return error(ex);
307 }
308}
309
310
311//____________________________________________________________

Callers

nothing calls this directly

Calls 3

INIT_DSQLFunction · 0.85
lookup_stmtFunction · 0.85
errorFunction · 0.70

Tested by

no test coverage detected