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

Method isSameDatabase

src/jrd/extds/ExtDS.cpp:622–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

620}
621
622bool Connection::isSameDatabase(const PathName& dbName, ClumpletReader& dpb, const CryptHash& hash) const
623{
624 if (m_dbName != dbName)
625 return false;
626
627 // it is not exact comparison as clumplets may have same tags
628 // but in different order
629
630 const FB_SIZE_T len = m_dpb.getCount();
631 return (len == dpb.getBufferLength()) && (memcmp(m_dpb.begin(), dpb.getBuffer(), len) == 0) &&
632 (m_cryptCallbackRedir == hash);
633}
634
635
636Transaction* Connection::createTransaction()

Callers 2

getBoundConnectionMethod · 0.45
getConnectionMethod · 0.45

Calls 4

getCountMethod · 0.45
getBufferLengthMethod · 0.45
beginMethod · 0.45
getBufferMethod · 0.45

Tested by

no test coverage detected