Update pgsql

This commit is contained in:
sunkaixuan
2024-04-19 17:41:44 +08:00
parent 0e4a8ff742
commit de61502402

View File

@@ -97,6 +97,10 @@ namespace SqlSugar
{
return FormatValue(it.Value,it.PropertyName,i,it);
}
else if (it.Value is byte[])
{
return FormatValue(it.Value, it.PropertyName, i, it);
}
else
{
value = it.Value;
@@ -125,7 +129,7 @@ namespace SqlSugar
else
{
var type = value.GetType();
if (type == UtilConstants.DateType || columnInfo.IsArray || columnInfo.IsJson)
if (type == UtilConstants.ByteArrayType||type == UtilConstants.DateType || columnInfo.IsArray || columnInfo.IsJson)
{
var parameterName = this.Builder.SqlParameterKeyWord + name + i;
var paramter = new SugarParameter(parameterName, value);