Update pgsql

This commit is contained in:
sunkaixuan
2022-11-11 11:43:06 +08:00
parent d6bf433d69
commit 68a6acb98a
2 changed files with 6 additions and 1 deletions

View File

@@ -88,7 +88,7 @@ namespace SqlSugar
{
return string.Format(SqlTemplateBatchSelect, "NULL");
}
return string.Format(SqlTemplateBatchSelect, "'" + value.ObjToString().ToSqlFilter() + "'");
return string.Format(SqlTemplateBatchSelect, "'" + value.ObjToStringNoTrim().ToSqlFilter() + "'");
})) + "),");
++i;
}

View File

@@ -98,6 +98,11 @@ namespace SqlSugar
if (thisValue != null) return thisValue.ToString().Trim();
return "";
}
public static string ObjToStringNoTrim(this object thisValue)
{
if (thisValue != null) return thisValue.ToString();
return "";
}
public static string ObjToStringNew(this object thisValue)
{
if (thisValue != null && thisValue is byte[])