diff options
author | megamage <none@none> | 2009-06-01 21:52:17 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-01 21:52:17 -0500 |
commit | 7344a5ef6f776f355cda34da77d2aed01f228b47 (patch) | |
tree | 8f02e0317c9a53de26f59f64f43456f397a4724c /src/shared/Database/DatabaseMysql.h | |
parent | b05ebfa8e90def21baa98707a1d5e9185950de74 (diff) |
[7935] Move seldom used access to query data by field names to independent object. Author: VladimirMangos
This let not do preparation code for unused later functionlity.
--HG--
branch : trunk
Diffstat (limited to 'src/shared/Database/DatabaseMysql.h')
-rw-r--r-- | src/shared/Database/DatabaseMysql.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/Database/DatabaseMysql.h b/src/shared/Database/DatabaseMysql.h index 7f5730f9579..4612ebfc462 100644 --- a/src/shared/Database/DatabaseMysql.h +++ b/src/shared/Database/DatabaseMysql.h @@ -50,6 +50,7 @@ class TRINITY_DLL_SPEC DatabaseMysql : public Database void InitDelayThread(); void HaltDelayThread(); QueryResult* Query(const char *sql); + QueryNamedResult* QueryNamed(const char *sql); bool Execute(const char *sql); bool DirectExecute(const char* sql); bool BeginTransaction(); @@ -75,6 +76,7 @@ class TRINITY_DLL_SPEC DatabaseMysql : public Database static size_t db_count; bool _TransactionCmd(const char *sql); + bool _Query(const char *sql, MYSQL_RES **pResult, MYSQL_FIELD **pFields, uint64* pRowCount, uint32* pFieldCount); }; #endif #endif |