瀏覽代碼

Fehlerhaftes SQL Statement beim suchen des Chat Servers behoben

Kolja Strohm 6 年之前
父節點
當前提交
61c810e457
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      LoginServer/Datenbank.cpp

+ 1 - 1
LoginServer/Datenbank.cpp

@@ -426,7 +426,7 @@ int LSDatenbank::kickSpielerAusGruppe( int gruppeId, int accountId )
 bool LSDatenbank::getChatServerPortIp( int accountId, unsigned short *port, Text *ip )
 {
 	Text *befehl = new Text( "SELECT a.port, a.ip FROM server a, server_client b, account_client c "
-							 "WHERE a.server_typ_id = 'chat' AND c.client_id = b.client_id AND a.id = b.server_id AND c.account_id = " );
+							 "WHERE a.server_typ_name = 'chat' AND c.client_id = b.client_id AND a.id = b.server_id AND c.account_id = " );
 	befehl->append( accountId );
 	lock();
 	if( !datenbank->befehl( befehl->getText() ) )