Explorar o código

Correct some issues with the last commit

root %!s(int64=14) %!d(string=hai) anos
pai
achega
b7951d5177
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      OpenSim/Data/MySQL/MySQLGenericTableHandler.cs

+ 2 - 1
OpenSim/Data/MySQL/MySQLGenericTableHandler.cs

@@ -205,7 +205,8 @@ namespace OpenSim.Data.MySQL
             foreach (FieldInfo fi in m_Fields.Values)
             {
                 names.Add(fi.Name);
-                values.Add(fi.GetValue(row).ToString());
+                values.Add("?" + fi.Name);
+                cmd.Parameters.AddWithValue(fi.Name, fi.GetValue(row).ToString());
             }
 
             if (m_DataField != null)