| 3289 | // |
| 3290 | |
| 3291 | static void make_cursor_open_test( act_t type, gpre_req* request, int column) |
| 3292 | { |
| 3293 | if (type == ACT_open) |
| 3294 | { |
| 3295 | printa(column, "if (isc_%do = 1) then", request->req_ident); |
| 3296 | printa(column + INDENT, "SQLCODE := -502;"); |
| 3297 | } |
| 3298 | else if (type == ACT_close) |
| 3299 | { |
| 3300 | printa(column, "if (isc_%do = 0) then", request->req_ident); |
| 3301 | printa(column + INDENT, "SQLCODE := -501;"); |
| 3302 | } |
| 3303 | |
| 3304 | printa(column, "else"); |
| 3305 | } |
| 3306 | |
| 3307 | |
| 3308 | //____________________________________________________________ |
no test coverage detected