Przeglądaj źródła

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 lat temu
rodzic
commit
1247174db4
1 zmienionych plików z 1 dodań i 1 usunięć
  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))
             {