Update pgsql bug

This commit is contained in:
skx 2019-12-10 18:18:49 +08:00
parent 6ac93989c4
commit 4f52f5b64a

View File

@ -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;
}