Merge pull request #150 from alliedmodders/fix-dbi

Fix DBI after AMTL changes.
This commit is contained in:
David Anderson 2014-09-04 09:51:30 -07:00
commit 8da4179c64
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()