mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-14 01:07:08 -06:00
ResolveDefaultExpression should return a ColumnDefaultValue instance, because it has information about the type of the column and performs conversions.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user