Core/DBLayer:

* Rename QueryResult class to ResultSet
* Rename QueryResult_AutoPtr to QueryResult
* Declare ACE refcounted auto pointer for PreparedResultSet class

--HG--
branch : trunk
This commit is contained in:
Machiavelli committed 2010-09-11 21:10:54 +02:00
1 parent dacf427ea3
commit a41e99223e
79 files changed
+436 -428

No files matched your search

@@ -126,7 +126,7 @@ void RASocket::OnRead()
///- Escape the Login to allow quotes in names
LoginDatabase.escape_string(login);
QueryResult_AutoPtr result = LoginDatabase.PQuery("SELECT a.id, aa.gmlevel, aa.RealmID FROM account a LEFT JOIN account_access aa ON (a.id = aa.id) WHERE a.username = '%s'",login.c_str ());
QueryResult result = LoginDatabase.PQuery("SELECT a.id, aa.gmlevel, aa.RealmID FROM account a LEFT JOIN account_access aa ON (a.id = aa.id) WHERE a.username = '%s'",login.c_str ());
///- If the user is not found, deny access
if (!result)
@@ -175,7 +175,7 @@ void RASocket::OnRead()
LoginDatabase.escape_string(login);
LoginDatabase.escape_string(pw);
QueryResult_AutoPtr check = LoginDatabase.PQuery(
QueryResult check = LoginDatabase.PQuery(
"SELECT 1 FROM account WHERE username = '%s' AND sha_pass_hash=SHA1(CONCAT('%s',':','%s'))",
login.c_str(), login.c_str(), pw.c_str());