aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorOren Hurvitz2014-04-02 10:00:09 +0300
committerOren Hurvitz2014-04-02 10:00:09 +0300
commit9211361b19d84a266b98f0db1105721b49bfb3c7 (patch)
treeacf45fc6117f17ec3cfb854a8c21de20594cf9c6
parentMade the SQLite unit tests work on Windows (sqlite3.dll wasn't being loaded) (diff)
downloadopensim-SC_OLD-9211361b19d84a266b98f0db1105721b49bfb3c7.zip
opensim-SC_OLD-9211361b19d84a266b98f0db1105721b49bfb3c7.tar.gz
opensim-SC_OLD-9211361b19d84a266b98f0db1105721b49bfb3c7.tar.bz2
opensim-SC_OLD-9211361b19d84a266b98f0db1105721b49bfb3c7.tar.xz
Fixed AssetsExist in SQLite
-rw-r--r--OpenSim/Data/SQLite/SQLiteAssetData.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteAssetData.cs b/OpenSim/Data/SQLite/SQLiteAssetData.cs
index 1f32376..2834bcf 100644
--- a/OpenSim/Data/SQLite/SQLiteAssetData.cs
+++ b/OpenSim/Data/SQLite/SQLiteAssetData.cs
@@ -226,11 +226,11 @@ namespace OpenSim.Data.SQLite
226 HashSet<UUID> exist = new HashSet<UUID>(); 226 HashSet<UUID> exist = new HashSet<UUID>();
227 227
228 string ids = "'" + string.Join("','", uuids) + "'"; 228 string ids = "'" + string.Join("','", uuids) + "'";
229 string sql = string.Format("SELECT id FROM assets WHERE id IN ({0})", ids); 229 string sql = string.Format("select UUID from assets where UUID in ({0})", ids);
230 230
231 lock (this) 231 lock (this)
232 { 232 {
233 using (SqliteCommand cmd = new SqliteCommand(SelectAssetSQL, m_conn)) 233 using (SqliteCommand cmd = new SqliteCommand(sql, m_conn))
234 { 234 {
235 using (IDataReader reader = cmd.ExecuteReader()) 235 using (IDataReader reader = cmd.ExecuteReader())
236 { 236 {