Synchronization code

This commit is contained in:
sunkaixuan
2022-11-07 12:11:17 +08:00
parent a708ab636a
commit 7cc02793c2
2 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ namespace SqlSugar
private string GetOracleUpdateColums(int i, DbColumnInfo m, bool iswhere)
{
return string.Format("\"{0}\"={1}", m.DbColumnName.ToUpper(), FormatValue(i, m.DbColumnName, m.Value, iswhere));
return string.Format(" \"{0}\"={1}", m.DbColumnName.ToUpper(), FormatValue(i, m.DbColumnName, m.Value, iswhere));
}
public object FormatValue(int i, string name, object value, bool iswhere)
@@ -84,7 +84,7 @@ namespace SqlSugar
this.Parameters.Add(new SugarParameter(parameterName, value));
return parameterName;
}
else if (value is int || value is long || value is short || value is short || value is byte)
else if (value is double||value is int || value is long || value is short || value is short || value is byte)
{
return value;
}

View File

@@ -68,7 +68,7 @@ namespace SqlSugar
{
get
{
return @"SELECT s.Name,Convert(varchar(max),tbp.value) as Description
return @"SELECT s.Name,Convert(nvarchar(max),tbp.value) as Description
FROM sysobjects s
LEFT JOIN sys.extended_properties as tbp ON s.id=tbp.major_id and tbp.minor_id=0 AND (tbp.Name='MS_Description' OR tbp.Name is null) WHERE s.xtype IN('U') ";
}