mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Update pgsql bug
This commit is contained in:
parent
6ac93989c4
commit
4f52f5b64a
@ -75,11 +75,11 @@ namespace SqlSugar
|
||||
{
|
||||
value = it.Value;
|
||||
}
|
||||
if (value == null)
|
||||
if (value == null||value==DBNull.Value)
|
||||
{
|
||||
return string.Format(SqlTemplateBatchSelect, "NULL");
|
||||
}
|
||||
return string.Format(SqlTemplateBatchSelect, "'" + value + "'");
|
||||
return string.Format(SqlTemplateBatchSelect, "'" + value.ObjToString().ToSqlFilter() + "'");
|
||||
})) + "),");
|
||||
++i;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user