Browse Source

Fix MSSQLInventoryHandler.IncreementFolderVersion where sql accidentally used a MySQL style ?folderID insted of @folderID

Thanks to LuciusSirnah in http://opensimulator.org/mantis/view.php?id=7075 for this fix
Justin Clark-Casey (justincc) 10 years ago
parent
commit
1247174db4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      OpenSim/Data/MSSQL/MSSQLXInventoryData.cs

+ 1 - 1
OpenSim/Data/MSSQL/MSSQLXInventoryData.cs

@@ -278,7 +278,7 @@ namespace OpenSim.Data.MSSQL
 //            m_log.DebugFormat("[MYSQL ITEM HANDLER]: Incrementing version on folder {0}", folderID);
 //            Util.PrintCallStack();
 
-            string sql = "update inventoryfolders set version=version+1 where folderID = ?folderID";
+            string sql = "update inventoryfolders set version=version+1 where folderID = @folderID";
             
             using (SqlConnection conn = new SqlConnection(m_ConnectionString))
             {