diff --git a/OpenSim/Data/SQLite/SQLiteAssetData.cs b/OpenSim/Data/SQLite/SQLiteAssetData.cs index 1f3237619c..2834bcfaba 100644 --- a/OpenSim/Data/SQLite/SQLiteAssetData.cs +++ b/OpenSim/Data/SQLite/SQLiteAssetData.cs @@ -226,11 +226,11 @@ namespace OpenSim.Data.SQLite HashSet exist = new HashSet(); string ids = "'" + string.Join("','", uuids) + "'"; - string sql = string.Format("SELECT id FROM assets WHERE id IN ({0})", ids); + string sql = string.Format("select UUID from assets where UUID in ({0})", ids); lock (this) { - using (SqliteCommand cmd = new SqliteCommand(SelectAssetSQL, m_conn)) + using (SqliteCommand cmd = new SqliteCommand(sql, m_conn)) { using (IDataReader reader = cmd.ExecuteReader()) {