| 1415 | // |
| 1416 | |
| 1417 | static void gen_dyn_fetch( const act* action, int column) |
| 1418 | { |
| 1419 | TEXT s[MAX_CURSOR_SIZE]; |
| 1420 | |
| 1421 | const dyn* statement = (dyn*) action->act_object; |
| 1422 | if (statement->dyn_sqlda) |
| 1423 | printa(column, "firebird.embed_dsql_fetch (isc_status, SQLCODE, %s, %d, %s'address);", |
| 1424 | make_name(s, statement->dyn_cursor_name), gpreGlob.sw_sql_dialect, |
| 1425 | statement->dyn_sqlda); |
| 1426 | else |
| 1427 | printa(column, "firebird.embed_dsql_fetch (isc_status, SQLCODE, %s, %d);", |
| 1428 | make_name(s, statement->dyn_cursor_name), gpreGlob.sw_sql_dialect); |
| 1429 | |
| 1430 | printa(column, "if SQLCODE /= 100 then"); |
| 1431 | printa(column + INDENT, "SQLCODE := firebird.sqlcode (isc_status);"); |
| 1432 | endif(column); |
| 1433 | } |
| 1434 | |
| 1435 | |
| 1436 | //____________________________________________________________ |
no test coverage detected