Skip to content

Commit

Permalink
Merge pull request #8273 from dolthub/nicktobey/index-fix
Browse files Browse the repository at this point in the history
ResolveDefaultExpression should return a ColumnDefaultValue instance, because it has information about the type of the column and performs conversions.
  • Loading branch information
nicktobey authored Aug 16, 2024
2 parents 7309db0 + c85569e commit c5417d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/libraries/doltcore/sqle/expranalysis/expranalysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5417d7

Please sign in to comment.