| 485 | |
| 486 | |
| 487 | ISC_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 | |
| 522 | ISC_STATUS API_ROUTINE isc_embed_dsql_prepare(ISC_STATUS* user_status, |
nothing calls this directly
no test coverage detected