| 2310 | } |
| 2311 | |
| 2312 | static Rsr* getStatement(RemoteXdr* xdrs, USHORT statement_id) |
| 2313 | { |
| 2314 | rem_port* port = xdrs->x_public; |
| 2315 | |
| 2316 | if (statement_id >= 0) |
| 2317 | { |
| 2318 | if (statement_id >= port->port_objects.getCount()) |
| 2319 | return nullptr; |
| 2320 | |
| 2321 | try |
| 2322 | { |
| 2323 | return port->port_objects[statement_id]; |
| 2324 | } |
| 2325 | catch (const status_exception&) |
| 2326 | { |
| 2327 | return nullptr; |
| 2328 | } |
| 2329 | } |
| 2330 | |
| 2331 | return port->port_statement; |
| 2332 | } |
| 2333 | |
| 2334 | static Rtr* getTransaction(RemoteXdr* xdrs, USHORT tran_id) |
| 2335 | { |
no test coverage detected