Fixed AssetsExist in SQLite

0.8.0.3
Oren Hurvitz 2014-04-02 10:00:09 +03:00
parent 6b65895736
commit 9211361b19
1 changed files with 2 additions and 2 deletions

View File

@ -226,11 +226,11 @@ namespace OpenSim.Data.SQLite
HashSet<UUID> exist = new HashSet<UUID>();
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())
{