From 065d41d7b8327259191d4b5b7573d2fffa045631 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 28 May 2016 22:09:01 +1000 Subject: [PATCH] Fix /whowas not working on mysql backend. --- MCGalaxy_.csproj | 4 +--- Player/PlayerInfo.cs | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/MCGalaxy_.csproj b/MCGalaxy_.csproj index 40892e28f..fccdcd782 100644 --- a/MCGalaxy_.csproj +++ b/MCGalaxy_.csproj @@ -399,9 +399,7 @@ - - CmdUnload.cs - + diff --git a/Player/PlayerInfo.cs b/Player/PlayerInfo.cs index c54f46198..3a8942237 100644 --- a/Player/PlayerInfo.cs +++ b/Player/PlayerInfo.cs @@ -155,7 +155,7 @@ namespace MCGalaxy { ParameterisedQuery query = ParameterisedQuery.Create(); query.AddParam("@Name", "%" + name + "%"); string syntax = Server.useMySQL ? - "SELECT * FROM Players WHERE Name LIKE @Name LIMIT 20 COLLATE utf8_general_ci" : + "SELECT * FROM Players WHERE Name LIKE @Name LIMIT 20" : "SELECT * FROM Players WHERE Name LIKE @Name LIMIT 20 COLLATE NOCASE"; using (DataTable results = Database.fillData(query, syntax)) {