____________________________________________________________ Execute a non-SELECT dynamic SQL statement.
| 283 | // Execute a non-SELECT dynamic SQL statement. |
| 284 | // |
| 285 | ISC_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 | //____________________________________________________________ |
nothing calls this directly
no test coverage detected