verify_request_synchronization @brief Finds the sub-requests at the given level and replaces it with the original passed request (note the pointer by reference). If that specific sub-request is not found, throw the dreaded "request synchronization error". Notice that at this time, the calling function's "request" pointer has been set to null, so remember that if you write a debugging routine. Thi
| 8551 | // @param request The incoming, parent request to be replaced. |
| 8552 | // @param level The level of the sub-request we need to find. |
| 8553 | static Request* verify_request_synchronization(Statement* statement, USHORT level) |
| 8554 | { |
| 8555 | if (level) |
| 8556 | { |
| 8557 | if (level >= statement->requests.getCount() || !statement->requests[level]) |
| 8558 | ERR_post(Arg::Gds(isc_req_sync)); |
| 8559 | } |
| 8560 | |
| 8561 | return statement->requests[level]; |
| 8562 | } |
| 8563 | |
| 8564 | |
| 8565 | /** |