Fix some whitespace errors. Corrected account_access 'id' type.

--HG--
branch : trunk
This commit is contained in:
p0wer
2009-12-21 21:21:39 -06:00
parent 9d9fa2bcf3
commit b4e1ee6355
3 changed files with 12 additions and 11 deletions

View File

@@ -20,7 +20,7 @@
--
CREATE TABLE `account_access` (
`id` bigint(20) unsigned NOT NULL,
`id` int(11) unsigned NOT NULL,
`gmlevel` tinyint(3) unsigned NOT NULL,
`RealmID` int(11) NOT NULL,
PRIMARY KEY (`id`,`RealmID`)

View File

@@ -0,0 +1 @@
ALTER TABLE `account_access` CHANGE `id` `id` int(11) UNSIGNED NOT NULL;

View File

@@ -820,16 +820,16 @@ int WorldSocket::HandleAuthSession (WorldPacket& recvPacket)
delete result;
// Checks gmlevel per Realm
result =
loginDatabase.PQuery ("SELECT "
"RealmID, " //0
"gmlevel " //1
"FROM account_access "
"WHERE id = '%d'"
" AND (RealmID = '%d'"
" OR RealmID = '-1')",
id, realmID);
// Checks gmlevel per Realm
result =
loginDatabase.PQuery ("SELECT "
"RealmID, " //0
"gmlevel " //1
"FROM account_access "
"WHERE id = '%d'"
" AND (RealmID = '%d'"
" OR RealmID = '-1')",
id, realmID);
if(!result)
security = 0;
else