| 8071 | |
| 8072 | |
| 8073 | static void clear_stmt_que(rem_port* port, Rsr* statement) |
| 8074 | { |
| 8075 | /************************************** |
| 8076 | * |
| 8077 | * c l e a r _ s t m t _ q u e |
| 8078 | * |
| 8079 | ************************************** |
| 8080 | * |
| 8081 | * Functional description |
| 8082 | * |
| 8083 | * Receive and handle all queued packets for a completely fetched statement. |
| 8084 | * There must be no more than one such packet. |
| 8085 | * |
| 8086 | **************************************/ |
| 8087 | fb_assert(statement->rsr_batch_count <= 1); |
| 8088 | |
| 8089 | while (statement->rsr_batch_count) |
| 8090 | receive_queued_packet(port, statement->rsr_id); |
| 8091 | |
| 8092 | // hvlad: clear isc_req_sync error as it is received because of our batch |
| 8093 | // fetching code, not because of wrong client application. |
| 8094 | // dimitr: modern engine versions do not pass isc_req_sync to the client, |
| 8095 | // but it's possible if we're connected to the older one. |
| 8096 | if (statement->haveException() == isc_req_sync) |
| 8097 | statement->clearException(); |
| 8098 | } |
| 8099 | |
| 8100 | static void batch_dsql_fetch(rem_port* port, |
| 8101 | rmtque* que_inst, |
no test coverage detected