File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -434,6 +434,8 @@ func (this *Applier) ReadMigrationMinValues(uniqueKey *sql.UniqueKey) error {
434434 }
435435 }
436436 log .Infof ("Migration min values: [%s]" , this .migrationContext .MigrationRangeMinValues )
437+
438+ err = rows .Err ()
437439 return err
438440}
439441
@@ -463,6 +465,8 @@ func (this *Applier) ReadMigrationMaxValues(uniqueKey *sql.UniqueKey) error {
463465 }
464466 }
465467 log .Infof ("Migration max values: [%s]" , this .migrationContext .MigrationRangeMaxValues )
468+
469+ err = rows .Err ()
466470 return err
467471}
468472
@@ -544,6 +548,11 @@ func (this *Applier) CalculateNextIterationRangeEndValues() (hasFurtherRange boo
544548 }
545549 hasFurtherRange = true
546550 }
551+
552+ if err = rows .Err (); err != nil {
553+ return hasFurtherRange , err
554+ }
555+
547556 if hasFurtherRange {
548557 this .migrationContext .MigrationIterationRangeMaxValues = iterationRangeMaxValues
549558 return hasFurtherRange , nil
You can’t perform that action at this time.
0 commit comments