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

Method get_ods

src/utilities/nbackup/nbackup.cpp:1116–1130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1114}
1115
1116void NBackup::get_ods()
1117{
1118 m_odsNumber = 0;
1119 const char db_version_info[] = { isc_info_ods_version };
1120 char res[128];
1121 if (isc_database_info(status, &newdb, sizeof(db_version_info), db_version_info, sizeof(res), res))
1122 {
1123 pr_error(status, "ods info");
1124 }
1125 else if (res[0] == isc_info_ods_version)
1126 {
1127 USHORT len = isc_vax_integer (&res[1], 2);
1128 m_odsNumber = isc_vax_integer (&res[3], len);
1129 }
1130}
1131
1132void NBackup::internal_unlock_database()
1133{

Callers

nothing calls this directly

Calls 1

pr_errorFunction · 0.85

Tested by

no test coverage detected