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

Function reset_statement

src/remote/protocol.cpp:2274–2310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2272
2273
2274static void reset_statement( RemoteXdr* xdrs, SSHORT statement_id)
2275{
2276/**************************************
2277 *
2278 * r e s e t _ s t a t e m e n t
2279 *
2280 **************************************
2281 *
2282 * Functional description
2283 * Resets the statement.
2284 *
2285 **************************************/
2286
2287 Rsr* statement = NULL;
2288 rem_port* port = xdrs->x_public;
2289
2290 // if the statement ID is -1, this seems to indicate that we are
2291 // re-executing the previous statement. This is not a
2292 // well-understood area of the implementation.
2293
2294 //if (statement_id == -1)
2295 // statement = port->port_statement;
2296 //else
2297
2298 fb_assert(statement_id >= -1);
2299
2300 if (((ULONG) statement_id < port->port_objects.getCount()) && (statement_id >= 0))
2301 {
2302 try
2303 {
2304 statement = port->port_objects[statement_id];
2305 REMOTE_reset_statement(statement);
2306 }
2307 catch (const status_exception&)
2308 {} // no-op
2309 }
2310}
2311
2312static Rsr* getStatement(RemoteXdr* xdrs, USHORT statement_id)
2313{

Callers 1

xdr_protocolFunction · 0.85

Calls 2

REMOTE_reset_statementFunction · 0.85
getCountMethod · 0.45

Tested by

no test coverage detected