Procházet zdrojové kódy

Fehler behoben, der die zuweisung von Shop Servern verhindert hat

Kolja Strohm před 6 roky
rodič
revize
e4c24b5df4
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      MainServer/Datenbank.cpp

+ 1 - 1
MainServer/Datenbank.cpp

@@ -330,7 +330,7 @@ int MSDatenbank::suchShopServer( unsigned int client )
     }
     res.destroy();
     lock();
-    if( !datenbank->befehl( "SELECT a.id, count( b.client_id ) AS anz FROM server a, server_client b WHERE a.id = b.server_id AND a.server_typ_name = 'shop' AND a.server_status_id = 3 GROUP BY a.id ORDER BY anz LIMIT 1"  ) )
+    if( !datenbank->befehl( "SELECT a.id, count( b.client_id ) AS anz FROM server a LEFT JOIN server_client b ON a.id = b.server_id WHERE a.server_typ_name = 'shop' AND a.server_status_id = 3 GROUP BY a.id ORDER BY anz LIMIT 1"  ) )
     {
         unlock();
         return 0;