Fix a few issues:

- pass in the timestamp to the error that reports timestamp parsing issues
- fix a failing BATS test
This commit is contained in:
Pavel Safronov
2023-06-23 12:48:15 -07:00
parent 264e0eb6ef
commit 05009a186b
2 changed files with 3 additions and 3 deletions

View File

@@ -470,7 +470,7 @@ func getCommitInfo(queryist cli.Queryist, sqlCtx *sql.Context, ref string) (*com
email := row[2].(string)
timestamp, err := getTimestampColAsUint64(row[3])
if err != nil {
return nil, fmt.Errorf("error parsing timestamp '%s': %v", err)
return nil, fmt.Errorf("error parsing timestamp '%s': %v", row[3], err)
}
message := row[4].(string)
parent := row[5].(string)

View File

@@ -41,8 +41,8 @@ SQL
run dolt diff
[ "$status" -eq 0 ]
[[ "${lines[0]}" =~ "diff --dolt a/test b/quiz" ]] || false
[[ "${lines[1]}" =~ "--- a/test @" ]] || false
[[ "${lines[2]}" =~ "+++ b/quiz @" ]] || false
[[ "${lines[1]}" =~ "--- a/test" ]] || false
[[ "${lines[2]}" =~ "+++ b/quiz" ]] || false
}
@test "rename-tables: sql diff a renamed table" {