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

Function API_ROUTINE isc_embed_dsql_open2

src/yvalve/user_dsql.cpp:487–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485
486
487ISC_STATUS API_ROUTINE isc_embed_dsql_open2(ISC_STATUS* user_status,
488 FB_API_HANDLE* trans_handle,
489 const SCHAR* cursor_name,
490 USHORT dialect,
491 XSQLDA* in_sqlda, XSQLDA* out_sqlda)
492{
493/**************************************
494 *
495 * i s c _ e m b e d _ d s q l _ o p e n 2
496 *
497 **************************************
498 *
499 * Functional description
500 * Open a dynamic SQL cursor.
501 *
502 **************************************/
503 ISC_STATUS_ARRAY local_status;
504
505 INIT_DSQL(user_status, local_status);
506 try
507 {
508 // get the symbol table entry
509
510 dsql_stmt* statement = lookup_stmt(cursor_name, cursor_names, NAME_cursor);
511
512 return isc_dsql_execute2(user_status, trans_handle, &statement->stmt_handle,
513 dialect, in_sqlda, out_sqlda);
514 }
515 catch (const Firebird::Exception& ex)
516 {
517 return error(ex);
518 }
519}
520
521
522ISC_STATUS API_ROUTINE isc_embed_dsql_prepare(ISC_STATUS* user_status,

Callers

nothing calls this directly

Calls 3

INIT_DSQLFunction · 0.85
lookup_stmtFunction · 0.85
errorFunction · 0.70

Tested by

no test coverage detected