Committed implementation of request am42697

This commit is contained in:
David Anderson
2006-08-18 02:19:38 +00:00
parent f7691a51c6
commit b7076fc572
14 changed files with 92 additions and 29 deletions

View File

@ -84,6 +84,10 @@ namespace SourceMod
* Same as above, except result handles are not freed for you.
*/
virtual bool ExecuteR(QueryInfo *info, char *error, size_t maxlength) =0;
/**
* Returns the query string.
*/
virtual const char *GetQueryString() =0;
};
class ISQLDriver;

View File

@ -46,6 +46,11 @@ bool MysqlQuery::Execute(QueryInfo *info, char *error, size_t maxlength)
return res;
}
const char *MysqlQuery::GetQueryString()
{
return m_QueryString;
}
bool MysqlQuery::ExecuteR(QueryInfo *info, char *error, size_t maxlength)
{
int err;

View File

@ -17,6 +17,7 @@ namespace SourceMod
void FreeHandle();
bool Execute(QueryInfo *info, char *error, size_t maxlength);
bool ExecuteR(QueryInfo *info, char *error, size_t maxlength);
const char *GetQueryString();
private:
MysqlDatabase *m_pDatabase;
char *m_QueryString;