gh-ost/go/logic
Andrew Mason 61de098072 Add a check to rows.Err after processing all rows
Closes #822.

In https://github.com/go-sql-driver/mysql/issues/1075, @acharis notes
that the way the go-sql driver is written, query timeout errors don't
get set in `rows.Err()` until _after_ a call to `rows.Next()` is made.

Because this kind of error means there will be no rows in the result
set, the `for rows.Next()` will never enter the for loop, so we must
check the value of `rows.Err()` after the loop, and surface the error up
appropriately.
2020-03-31 16:25:16 -04:00
..
applier.go Add a check to rows.Err after processing all rows 2020-03-31 16:25:16 -04:00
hooks.go refactor progressPct into migrationContext 2019-10-07 06:59:56 +03:00
inspect.go Auto-merged master into gh-ost/patch-1 on deployment 2019-01-23 08:13:55 +02:00
migrator.go truncate lag digits 2019-10-23 10:18:56 +03:00
server.go Merge branch 'master' into ggunson-panic-message 2019-08-13 08:39:43 +03:00
streamer.go Refactor the code and remove the global variable of 2018-03-29 12:20:41 +08:00
throttler.go remove spammy error 2020-03-30 10:05:23 -05:00