Fix SQL statement

cpu-performance
Diva Canto 2013-07-02 16:10:09 -07:00
parent 9725b829d5
commit 316e8f9239
3 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ namespace OpenSim.Data.MSSQL
public GridUserData[] GetAll(string userID) public GridUserData[] GetAll(string userID)
{ {
return base.Get(String.Format("UserID LIKE {0}%", userID)); return base.Get(String.Format("UserID LIKE '{0}%'", userID));
} }
} }

View File

@ -58,7 +58,7 @@ namespace OpenSim.Data.MySQL
public GridUserData[] GetAll(string userID) public GridUserData[] GetAll(string userID)
{ {
return base.Get(String.Format("UserID LIKE {0}%", userID)); return base.Get(String.Format("UserID LIKE '{0}%'", userID));
} }
} }
} }

View File

@ -58,7 +58,7 @@ namespace OpenSim.Data.SQLite
public GridUserData[] GetAll(string userID) public GridUserData[] GetAll(string userID)
{ {
return base.Get(String.Format("UserID LIKE {0}%", userID)); return base.Get(String.Format("UserID LIKE '{0}%'", userID));
} }
} }