Skip to content

Commit 6eb6801

Browse files
committed
bug fixed in MSQL provider
1 parent 8f569ee commit 6eb6801

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Provider for MS SQL Server/DbObject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static int Delete(SqlConnection connection, object id, SqlTransaction tra
103103
var pId = new SqlParameter("p_id", key.Type) {Value = ConvertToDbCompatibilityType(id)};
104104

105105
return ExecuteCommand(connection,
106-
string.Format("DELETE FROM {0} WHERE [{1}] = @p_id", ObjectName, key.Name.ToUpper()), transaction, pId);
106+
string.Format("DELETE FROM {0} WHERE [{1}] = @p_id", ObjectName, key.Name), transaction, pId);
107107
}
108108

109109
public static int ExecuteCommand(SqlConnection connection, string commandText,
@@ -177,7 +177,7 @@ public static T[] Select(SqlConnection connection, string commandText, params Sq
177177
{
178178
T item = new T();
179179
foreach (var c in item.DbColumns)
180-
item.SetValue(c.Name, row[c.Name.ToUpper()]);
180+
item.SetValue(c.Name, row[c.Name]);
181181
res.Add(item);
182182
}
183183
#endif
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)