Skip to content

Commit

Permalink
[no-release-notes] Fixup for dolt add --patch (#8337)
Browse files Browse the repository at this point in the history
  • Loading branch information
macneale4 authored Sep 9, 2024
1 parent dec900c commit 5e33905
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/cmd/dolt/commands/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -611,8 +611,8 @@ func printSingleChange(sqlCtx *sql.Context, workspaceRow sql.Row, schema sql.Sch
writer := tabular.NewFixedWidthDiffTableWriter(schema, iohelp.NopWrCloser(cli.CliOut), len(workspaceRow)/2)
defer writer.Close(sqlCtx.Context)

toRow := workspaceRow[3:5]
fromRow := workspaceRow[5:7]
toRow := workspaceRow[3 : 3+len(schema)]
fromRow := workspaceRow[3+len(schema):]

diffType := workspaceRow[2].(string)
switch diffType {
Expand Down

0 comments on commit 5e33905

Please sign in to comment.