Skip to content

Commit

Permalink
Merge #105013
Browse files Browse the repository at this point in the history
105013: cli: fix comment to describe versions correctly r=rafiss a=rafiss

Epic: None
Release note: None

Co-authored-by: Rafi Shamim <[email protected]>
  • Loading branch information
craig[bot] and rafiss committed Jun 15, 2023
2 parents 26fdd4e + 5d3ae5a commit a02df8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cli/doctor.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ SELECT id, status, payload, progress FROM "".crdb_internal.system_jobs
`
checkSystemJobs := `SELECT count(*) FROM "".crdb_internal.system_jobs LIMIT 1`
_, err = sqlConn.QueryRow(ctx, checkSystemJobs)
// On versions before 23.1, we have a new table called crdb_internal.system_jobs,
// On versions after 23.1, we have a new table called crdb_internal.system_jobs;
// if its not available fall back to system.jobs
if pgErr := (*pgconn.PgError)(nil); errors.As(err, &pgErr) {
if pgcode.MakeCode(pgErr.Code) == pgcode.UndefinedTable {
Expand Down

0 comments on commit a02df8e

Please sign in to comment.