Fix DBI after AMTL changes.
This commit is contained in:
parent
a7cdf17d90
commit
448c55c0f2
@ -101,6 +101,9 @@ MyDatabase::MyDatabase(MYSQL *mysql, const DatabaseInfo *info, bool persistent)
|
|||||||
m_Info.driver = NULL;
|
m_Info.driver = NULL;
|
||||||
m_Info.maxTimeout = info->maxTimeout;
|
m_Info.maxTimeout = info->maxTimeout;
|
||||||
m_Info.port = info->port;
|
m_Info.port = info->port;
|
||||||
|
|
||||||
|
// DBI, for historical reasons, guarantees an initial refcount of 1.
|
||||||
|
AddRef();
|
||||||
}
|
}
|
||||||
|
|
||||||
MyDatabase::~MyDatabase()
|
MyDatabase::~MyDatabase()
|
||||||
|
@ -36,6 +36,8 @@
|
|||||||
SqDatabase::SqDatabase(sqlite3 *sq3, bool persistent) :
|
SqDatabase::SqDatabase(sqlite3 *sq3, bool persistent) :
|
||||||
m_sq3(sq3), m_Persistent(persistent)
|
m_sq3(sq3), m_Persistent(persistent)
|
||||||
{
|
{
|
||||||
|
// DBI, for historical reasons, guarantees an initial refcount of 1.
|
||||||
|
AddRef();
|
||||||
}
|
}
|
||||||
|
|
||||||
SqDatabase::~SqDatabase()
|
SqDatabase::~SqDatabase()
|
||||||
|
Loading…
Reference in New Issue
Block a user