| 2071 | // |
| 2072 | |
| 2073 | static void gen_dyn_fetch( const act* action) |
| 2074 | { |
| 2075 | TEXT s[MAX_CURSOR_SIZE]; |
| 2076 | |
| 2077 | const dyn* statement = (dyn*) action->act_object; |
| 2078 | |
| 2079 | make_name_formatted(s, "ISC-CONST-%s", statement->dyn_cursor_name); |
| 2080 | |
| 2081 | printa(names[COLUMN], true, FETCH_CALL_TEMPLATE, |
| 2082 | ISC_FETCH, |
| 2083 | status_vector(action), |
| 2084 | s, |
| 2085 | gpreGlob.sw_sql_dialect, |
| 2086 | statement->dyn_sqlda ? statement->dyn_sqlda : OMITTED); |
| 2087 | |
| 2088 | printa(names[COLUMN], false, "IF SQLCODE NOT = 100 THEN"); |
| 2089 | |
| 2090 | set_sqlcode(action); |
| 2091 | |
| 2092 | printa(names[COLUMN], false, "END-IF"); |
| 2093 | } |
| 2094 | |
| 2095 | |
| 2096 | //____________________________________________________________ |
no test coverage detected