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

Method getWrapErrors

src/jrd/extds/ExtDS.cpp:845–864  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843
844
845bool Connection::getWrapErrors(const ISC_STATUS* status)
846{
847 // Detect if connection is broken
848 switch (status[1])
849 {
850 case isc_network_error:
851 case isc_net_read_err:
852 case isc_net_write_err:
853 m_broken = true;
854 break;
855
856 // Always wrap shutdown errors, else user application will disconnect
857 case isc_att_shutdown:
858 case isc_shutdown:
859 m_broken = true;
860 return true;
861 }
862
863 return m_wrapErrors;
864}
865
866
867/// ConnectionsPool

Callers 1

raiseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected