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

Function isConnectionBrokenError

src/jrd/extds/IscDS.cpp:1769–1782  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1767
1768
1769static bool isConnectionBrokenError(FbStatusVector* status)
1770{
1771 const ISC_STATUS code = status->getErrors()[1];
1772 switch (code)
1773 {
1774 case isc_shutdown:
1775 case isc_att_shutdown:
1776 case isc_bad_db_handle:
1777 return true;
1778
1779 default:
1780 return fb_utils::isNetworkError(code);
1781 }
1782}
1783
1784
1785static void parseSQLDA(XSQLDA* xsqlda, UCharBuffer& buff, Firebird::Array<dsc> &descs)

Callers 2

doDetachMethod · 0.85
doRollbackMethod · 0.85

Calls 2

isNetworkErrorFunction · 0.50
getErrorsMethod · 0.45

Tested by

no test coverage detected