ResolveDefaultExpression should return a ColumnDefaultValue instance, because it has information about the type of the column and performs conversions.

This commit is contained in:
Nick Tobey
2024-08-14 22:24:14 -07:00
parent 80f6ce76a5
commit 80885f6b76

View File

@@ -52,7 +52,7 @@ func ResolveDefaultExpression(ctx *sql.Context, tableName string, sch schema.Sch
return nil, fmt.Errorf("unable to find default or generated expression")
}
return expr.Expr, nil
return expr, nil
}
// ResolveCheckExpression returns a sql.Expression for the check provided