added amb1377 - binary sql functions
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401918
This commit is contained in:
+15
-1
@@ -644,6 +644,11 @@ static cell_t SQL_FastQuery(IPluginContext *pContext, const cell_t *params)
|
||||
char *query;
|
||||
pContext->LocalToString(params[2], &query);
|
||||
|
||||
if (params[0] >= 3 && params[3] != -1)
|
||||
{
|
||||
return db->DoSimpleQueryEx(query, params[3]) ? 1 : 0;
|
||||
}
|
||||
|
||||
return db->DoSimpleQuery(query) ? 1 : 0;
|
||||
}
|
||||
|
||||
@@ -661,7 +666,16 @@ static cell_t SQL_Query(IPluginContext *pContext, const cell_t *params)
|
||||
char *query;
|
||||
pContext->LocalToString(params[2], &query);
|
||||
|
||||
IQuery *qr = db->DoQuery(query);
|
||||
IQuery *qr;
|
||||
|
||||
if (params[0] >= 3 && params[3] != -1)
|
||||
{
|
||||
qr = db->DoQueryEx(query, params[3]);
|
||||
}
|
||||
else
|
||||
{
|
||||
qr = db->DoQuery(query);
|
||||
}
|
||||
|
||||
if (!qr)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user