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

Method prepare

src/remote/server/server.cpp:4880–4906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4878
4879
4880ISC_STATUS rem_port::prepare(P_PREP * stuff, PACKET* sendL)
4881{
4882/**************************************
4883 *
4884 * p r e p a r e
4885 *
4886 **************************************
4887 *
4888 * Functional description
4889 * End a transaction.
4890 *
4891 **************************************/
4892 Rtr* transaction;
4893 LocalStatus ls;
4894 CheckStatusWrapper status_vector(&ls);
4895
4896 getHandle(transaction, stuff->p_prep_transaction);
4897
4898 transaction->rtr_iface->prepare(&status_vector,
4899 stuff->p_prep_data.cstr_length, stuff->p_prep_data.cstr_address);
4900 if (!(status_vector.getState() & IStatus::STATE_ERRORS))
4901 {
4902 transaction->rtr_limbo = true;
4903 }
4904
4905 return this->send_response(sendL, 0, 0, &status_vector, false);
4906}
4907
4908
4909ISC_STATUS rem_port::prepare_statement(P_SQLST * prepareL, PACKET* sendL)

Callers 3

end_transactionMethod · 0.45
prepare_statementMethod · 0.45
process_packetFunction · 0.45

Calls 2

send_responseMethod · 0.95
getStateMethod · 0.45

Tested by

no test coverage detected