utils_proto.h (Firebird-3.0.2.32703-0.tar.bz2) | : | utils_proto.h (Firebird-3.0.4.33054-0.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 192 | skipping to change at line 192 | |||
void logAndDie(const char* text); | void logAndDie(const char* text); | |||
// Returns next offset value | // Returns next offset value | |||
unsigned sqlTypeToDsc(unsigned prevOffset, unsigned sqlType, unsigned sql Length, | unsigned sqlTypeToDsc(unsigned prevOffset, unsigned sqlType, unsigned sql Length, | |||
unsigned* dtype, unsigned* len, unsigned* offset, unsigned* nullO ffset); | unsigned* dtype, unsigned* len, unsigned* offset, unsigned* nullO ffset); | |||
// Check does vector contain particular code or not | // Check does vector contain particular code or not | |||
bool containsErrorCode(const ISC_STATUS* v, ISC_STATUS code); | bool containsErrorCode(const ISC_STATUS* v, ISC_STATUS code); | |||
bool inline isNetworkError(ISC_STATUS code) | ||||
{ | ||||
return code == isc_network_error || | ||||
code == isc_net_write_err || | ||||
code == isc_net_read_err || | ||||
code == isc_lost_db_connection; | ||||
} | ||||
// Uppercase/strip string according to login rules | // Uppercase/strip string according to login rules | |||
const char* dpbItemUpper(const char* s, FB_SIZE_T l, Firebird::string& bu f); | const char* dpbItemUpper(const char* s, FB_SIZE_T l, Firebird::string& bu f); | |||
// Uppercase/strip string according to login rules | // Uppercase/strip string according to login rules | |||
template <typename STR> | template <typename STR> | |||
void dpbItemUpper(STR& name) | void dpbItemUpper(STR& name) | |||
{ | { | |||
Firebird::string buf; | Firebird::string buf; | |||
const char* up = dpbItemUpper(name.c_str(), name.length(), buf); | const char* up = dpbItemUpper(name.c_str(), name.length(), buf); | |||
if (up) | if (up) | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 8 lines changed or added |