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

Method add

src/remote/client/interface.cpp:2827–2856  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2825
2826
2827void Batch::add(CheckStatusWrapper* status, unsigned count, const void* inBuffer)
2828{
2829 try
2830 {
2831 // Check and validate handles, etc.
2832
2833 if (!stmt)
2834 {
2835 Arg::Gds(isc_bad_req_handle).raise();
2836 }
2837
2838 Rsr* statement = stmt->getStatement();
2839 CHECK_HANDLE(statement, isc_bad_req_handle);
2840 Rdb* rdb = statement->rsr_rdb;
2841 CHECK_HANDLE(rdb, isc_bad_db_handle);
2842 rem_port* port = rdb->rdb_port;
2843
2844 if (count == 0)
2845 return;
2846
2847 RefMutexGuard portGuard(*port->port_sync, FB_FUNCTION);
2848 putMessageData(count, inBuffer);
2849
2850 batchActive = true;
2851 }
2852 catch (const Exception& ex)
2853 {
2854 ex.stuffException(status);
2855 }
2856}
2857
2858
2859void Batch::sendMessagePacket(unsigned count, const UCHAR* ptr, bool flash)

Callers 12

selectMethod · 0.45
listener_socketFunction · 0.45
xdr_blob_streamFunction · 0.45
registerPortMethod · 0.45
setupInlineBlobMethod · 0.45
addServerKeysMethod · 0.45
parse_formatFunction · 0.45
defer_packetFunction · 0.45
createBlobMethod · 0.45
openBlobMethod · 0.45
ClntAuthBlockMethod · 0.45
newKeyMethod · 0.45

Calls 5

GdsClass · 0.85
CHECK_HANDLEFunction · 0.85
raiseMethod · 0.45
getStatementMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected