MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / getStatement

Function getStatement

src/remote/protocol.cpp:2312–2332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2310}
2311
2312static 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
2334static Rtr* getTransaction(RemoteXdr* xdrs, USHORT tran_id)
2335{

Callers 15

xdr_protocolFunction · 0.85
xdr_blob_streamFunction · 0.85
getMaxInlineBlobSizeMethod · 0.85
setMaxInlineBlobSizeMethod · 0.85
setCursorNameMethod · 0.85
prepareCursorMethod · 0.85
prepareRecSourceMethod · 0.85
onRequestFinishMethod · 0.85
beforePsqlLineColumnMethod · 0.85
afterPsqlLineColumnMethod · 0.85
afterRecordSourceOpenMethod · 0.85

Calls 1

getCountMethod · 0.45

Tested by

no test coverage detected