| 1235 | } |
| 1236 | |
| 1237 | static void |
| 1238 | dump_cursor_direction(PLpgSQL_stmt_fetch *stmt) |
| 1239 | { |
| 1240 | dump_indent += 2; |
| 1241 | dump_ind(); |
| 1242 | switch (stmt->direction) |
| 1243 | { |
| 1244 | case FETCH_FORWARD: |
| 1245 | printf(" FORWARD "); |
| 1246 | break; |
| 1247 | case FETCH_BACKWARD: |
| 1248 | printf(" BACKWARD "); |
| 1249 | break; |
| 1250 | case FETCH_ABSOLUTE: |
| 1251 | printf(" ABSOLUTE "); |
| 1252 | break; |
| 1253 | case FETCH_RELATIVE: |
| 1254 | printf(" RELATIVE "); |
| 1255 | break; |
| 1256 | default: |
| 1257 | printf("??? unknown cursor direction %d", stmt->direction); |
| 1258 | } |
| 1259 | |
| 1260 | if (stmt->expr) |
| 1261 | { |
| 1262 | dump_expr(stmt->expr); |
| 1263 | printf("\n"); |
| 1264 | } |
| 1265 | else |
| 1266 | printf("%ld\n", stmt->how_many); |
| 1267 | |
| 1268 | dump_indent -= 2; |
| 1269 | } |
| 1270 | |
| 1271 | static void |
| 1272 | dump_close(PLpgSQL_stmt_close *stmt) |
no test coverage detected