aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Database/MySQLConnection.h
diff options
context:
space:
mode:
authorMachiavelli <none@none>2010-09-19 12:16:29 +0200
committerMachiavelli <none@none>2010-09-19 12:16:29 +0200
commit0982719f5fa3266adf655dc7e1541177e40c3b93 (patch)
tree813e2983afd619dd34b3e69f9b0fc0b3ed42a2b7 /src/server/shared/Database/MySQLConnection.h
parenta25ef432233c7a9340179d3f694b2d240cdeafef (diff)
Core/DBLayer:
- Declare the datatypes used to determine transaction element data (prepared statement/adhoc query string) on a generic level in SQLOperation.h - Implement variable SQL element data for SQLQueryHolder class so it can execute both prepared statements and adhoc queries - Make MySQLConnection::Query for adhoc queries return pointer to type instead of an autopointer, the autopointer is now applied on higher level code just like the function for querying prepared statements --HG-- branch : trunk
Diffstat (limited to 'src/server/shared/Database/MySQLConnection.h')
-rw-r--r--src/server/shared/Database/MySQLConnection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/shared/Database/MySQLConnection.h b/src/server/shared/Database/MySQLConnection.h
index f8f8f79eb44..b707f8a4675 100644
--- a/src/server/shared/Database/MySQLConnection.h
+++ b/src/server/shared/Database/MySQLConnection.h
@@ -40,7 +40,7 @@ class MySQLConnection
public:
bool Execute(const char* sql);
bool Execute(PreparedStatement* stmt);
- QueryResult Query(const char* sql);
+ ResultSet* Query(const char* sql);
PreparedResultSet* Query(PreparedStatement* stmt);
bool _Query(const char *sql, MYSQL_RES **pResult, MYSQL_FIELD **pFields, uint64* pRowCount, uint32* pFieldCount);