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

@ -5,4 +5,16 @@ void OnAmxxAttach()
{
MF_AddNatives(g_BaseSqlNatives);
MF_AddNatives(g_ThreadSqlNatives);
MF_RegisterFunction(&g_Mysql, "GetSqlDriver");
if (!MF_RequestFunction("GetDbDriver"))
{
MF_AddNatives(g_OldCompatNatives);
}
}
void ServerDeactivate_Post()
{
FreeAllHandles(Handle_OldResult);
FreeAllHandles(Handle_OldDb);
FreeAllHandles(Handle_Connection);
}