Fix DBI after AMTL changes.

This commit is contained in:
David Anderson 2014-09-03 21:11:17 -07:00
parent a7cdf17d90
commit 448c55c0f2
2 changed files with 5 additions and 0 deletions

View File

@ -101,6 +101,9 @@ MyDatabase::MyDatabase(MYSQL *mysql, const DatabaseInfo *info, bool persistent)
m_Info.driver = NULL;
m_Info.maxTimeout = info->maxTimeout;
m_Info.port = info->port;
// DBI, for historical reasons, guarantees an initial refcount of 1.
AddRef();
}
MyDatabase::~MyDatabase()

View File

@ -36,6 +36,8 @@
SqDatabase::SqDatabase(sqlite3 *sq3, bool persistent) :
m_sq3(sq3), m_Persistent(persistent)
{
// DBI, for historical reasons, guarantees an initial refcount of 1.
AddRef();
}
SqDatabase::~SqDatabase()