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

Function dup_dbb

src/gpre/sql.cpp:5306–5327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5304
5305
5306static gpre_dbb* dup_dbb(const gpre_dbb* db)
5307{
5308
5309// ****************************************
5310//
5311// d u p _ d b b
5312//
5313// ****************************************
5314//
5315// dirty duplication of a gpre_dbb.
5316// just memcpy as no memory
5317// is freed in gpre.
5318//
5319// *************************************
5320 if (!db)
5321 return NULL;
5322 gpre_dbb* newdb = (gpre_dbb*) MSC_alloc(DBB_LEN);
5323 // CVC: the casts here should be tested and removed.
5324 memcpy((SCHAR*) newdb, (const SCHAR*) db, DBB_LEN);
5325
5326 return newdb;
5327}
5328
5329
5330//____________________________________________________________

Callers 2

act_connectFunction · 0.85
act_create_databaseFunction · 0.85

Calls 1

MSC_allocFunction · 0.85

Tested by

no test coverage detected