added backwards compat layer to old mysql module

This commit is contained in:
David Anderson
2006-04-24 10:27:25 +00:00
parent 768880fa92
commit 1c5b8670d9
9 changed files with 556 additions and 8 deletions

View File

@ -6,7 +6,6 @@ using namespace SourceMod;
using namespace SourceHook;
MysqlDriver g_Mysql;
List<unsigned int> g_ConnectionInfo;
void FreeConnection(void *p, unsigned int num)
{
@ -17,8 +16,6 @@ void FreeConnection(void *p, unsigned int num)
free(cn->pass);
free(cn->db);
g_ConnectionInfo.remove(num);
delete cn;
}
@ -60,8 +57,6 @@ static cell AMX_NATIVE_CALL SQL_MakeDbTuple(AMX *amx, cell *params)
unsigned int num = MakeHandle(sql, Handle_Connection, FreeConnection);
g_ConnectionInfo.push_back(num);
return num;
}