2006-04-23 01:10:06 +00:00
|
|
|
#include "amxxmodule.h"
|
|
|
|
#include "mysql2_header.h"
|
|
|
|
|
|
|
|
void OnAmxxAttach()
|
|
|
|
{
|
|
|
|
MF_AddNatives(g_BaseSqlNatives);
|
|
|
|
MF_AddNatives(g_ThreadSqlNatives);
|
2006-04-24 10:27:25 +00:00
|
|
|
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);
|
2006-04-23 01:10:06 +00:00
|
|
|
}
|