From 04eeb0e5cb52f2ae16036626ae337df18054d565 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 22 Jul 2017 23:33:03 +0100 Subject: mantis 8212 do use defined sqlite connection --- OpenSim/Data/SQLite/SQLiteXInventoryData.cs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/OpenSim/Data/SQLite/SQLiteXInventoryData.cs b/OpenSim/Data/SQLite/SQLiteXInventoryData.cs index 7f44a65..7cce5e4 100644 --- a/OpenSim/Data/SQLite/SQLiteXInventoryData.cs +++ b/OpenSim/Data/SQLite/SQLiteXInventoryData.cs @@ -308,14 +308,8 @@ namespace OpenSim.Data.SQLite cmd.CommandText = "update inventoryfolders set version=version+1 where folderID = ?folderID"; cmd.Parameters.Add(new SqliteParameter(":folderID", folderID)); - try - { - cmd.ExecuteNonQuery(); - } - catch (Exception) - { + if(ExecuteNonQuery(cmd, m_Connection) == 0) return false; - } } return true; -- cgit v1.1