*Cleaned up database queries - by XTZGZoReX

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2009-01-04 17:20:23 +01:00
parent c4401376ab
commit c9f0d4292a
18 changed files with 123 additions and 123 deletions
+2 -2
View File
@@ -29,7 +29,7 @@
INSTANTIATE_SINGLETON_1( RealmList );
extern DatabaseType dbRealmServer;
extern DatabaseType LoginDatabase;
RealmList::RealmList( ) : m_UpdateInterval(0), m_NextUpdateTime(time(NULL))
{
@@ -82,7 +82,7 @@ void RealmList::UpdateRealms(bool init)
{
sLog.outDetail("Updating Realm List...");
QueryResult *result = dbRealmServer.Query( "SELECT id, name, address, port, icon, color, timezone, allowedSecurityLevel, population FROM realmlist WHERE color <> 3 ORDER BY name" );
QueryResult *result = LoginDatabase.Query( "SELECT id, name, address, port, icon, color, timezone, allowedSecurityLevel, population FROM realmlist WHERE color <> 3 ORDER BY name" );
///- Circle through results and add them to the realm map
if(result)