You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -452,8 +452,8 @@ public List<PlayerData> QueryByName(string playerName, QueryType queryType, out
452
452
break;
453
453
}
454
454
if(pagination)
455
-
command.CommandText="SELECT IFNULL(Count(a.steamid),0) AS count FROM `"+Table+"` AS a LEFT JOIN `"+TableServer+"` AS b ON a.steamid = b.steamid WHERE ( b.serverid = @instance OR b.serverid = a.lastserverid OR b.serverid IS NULL ) "+type+" GROUP BY a.steamid";
456
-
command.CommandText+="SELECT a.steamid, a.steamname, a.charname, a.ip, a.lastloginglobal, a.totalplaytime, a.lastserverid, b.serverid, b.lastloginlocal, b.cleanedbuildables, b.cleanedplayerdata, c.servername AS LastServerName FROM `"+Table+"` AS a LEFT JOIN `"+TableServer+"` AS b ON a.steamid = b.steamid LEFT JOIN `"+TableInstance+"` AS c ON a.lastserverid = c.serverid WHERE (b.serverid = @instance OR b.serverid = a.lastserverid OR b.serverid IS NULL ) AND ( a.steamname LIKE @name OR a.charname LIKE @name ) ORDER BY a.lastloginglobal DESC LIMIT 0, 10; ";
455
+
command.CommandText="SELECT IFNULL(Count(a.steamid),0) AS count FROM `"+Table+"` AS a LEFT JOIN `"+TableServer+"` AS b ON a.steamid = b.steamid WHERE ( b.serverid = @instance OR b.serverid = a.lastserverid OR b.serverid IS NULL ) "+type+" GROUP BY a.steamid;";
456
+
command.CommandText+="SELECT a.steamid, a.steamname, a.charname, a.ip, a.lastloginglobal, a.totalplaytime, a.lastserverid, b.serverid, b.lastloginlocal, b.cleanedbuildables, b.cleanedplayerdata, c.servername AS LastServerName FROM `"+Table+"` AS a LEFT JOIN `"+TableServer+"` AS b ON a.steamid = b.steamid LEFT JOIN `"+TableInstance+"` AS c ON a.lastserverid = c.serverid WHERE (b.serverid = @instance OR b.serverid = a.lastserverid OR b.serverid IS NULL ) "+type+" ORDER BY a.lastloginglobal DESC LIMIT 0, 10; ";
457
457
reader=command.ExecuteReader();
458
458
if(pagination)
459
459
{
@@ -480,7 +480,7 @@ public List<PlayerData> QueryByName(string playerName, QueryType queryType, out
480
480
}
481
481
catch(MySqlExceptionex)
482
482
{
483
-
HandleException(ex);
483
+
HandleException(ex,"Failed to execute: "+command.CommandText);
0 commit comments