GetColOriginDefaultValueWithoutStrictSQLMode gets default value of the column from original default value with Strict SQL mode.
(ctx expression.BuildContext, col *model.ColumnInfo)
| 556 | |
| 557 | // GetColOriginDefaultValueWithoutStrictSQLMode gets default value of the column from original default value with Strict SQL mode. |
| 558 | func GetColOriginDefaultValueWithoutStrictSQLMode(ctx expression.BuildContext, col *model.ColumnInfo) (types.Datum, error) { |
| 559 | return getColDefaultValue(ctx, col, col.GetOriginDefaultValue(), &getColOriginDefaultValue{ |
| 560 | StrictSQLMode: false, |
| 561 | }) |
| 562 | } |
| 563 | |
| 564 | // CheckNoDefaultValueForInsert checks if the column has no default value before insert data. |
| 565 | // CheckNoDefaultValueForInsert extracts the check logic from getColDefaultValueFromNil, |
no test coverage detected