Update oracle

This commit is contained in:
sunkaixuan 2022-03-26 21:01:15 +08:00
parent 64f09d80ae
commit 07973a6ff1

View File

@ -33,10 +33,10 @@ namespace SqlSugar
private string GetOracleUpdateColums(DbColumnInfo m)
{
return string.Format("\"{0}\"={1}", m.DbColumnName.ToUpper(), FormatValue(m.Value));
return string.Format("\"{0}\"={1}", m.DbColumnName.ToUpper(), FormatValue(m.Value,m.IsPrimarykey));
}
public override object FormatValue(object value)
public object FormatValue(object value,bool isPrimaryKey)
{
if (value == null)
{
@ -45,6 +45,10 @@ namespace SqlSugar
else
{
string N =this.Context.GetN();
if (isPrimaryKey)
{
N = "";
}
var type = UtilMethods.GetUnderType(value.GetType());
if (type == UtilConstants.DateType)
{