mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
- 优化 IsNullable = false 插入的数据值为 null 则以默认值插入(防止DB报错);#384
This commit is contained in:
@ -67,6 +67,7 @@ namespace FreeSql.Odbc.Oracle
|
||||
else
|
||||
{
|
||||
object val = col.GetMapValue(d);
|
||||
if (val == null && col.Attribute.IsNullable == false) val = Utils.GetDataReaderValue(col.CsType.NullableTypeOrThis(), null);//#384
|
||||
if (_noneParameter)
|
||||
sb.Append(_commonUtils.GetNoneParamaterSqlValue(specialParams, col.Attribute.MapType, val));
|
||||
else
|
||||
|
Reference in New Issue
Block a user