File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -370,6 +370,8 @@ func (this *Applier) ReadMigrationMinValues(uniqueKey *sql.UniqueKey) error {
370370 }
371371 }
372372 this .migrationContext .Log .Infof ("Migration min values: [%s]" , this .migrationContext .MigrationRangeMinValues )
373+
374+ err = rows .Err ()
373375 return err
374376}
375377
@@ -391,6 +393,8 @@ func (this *Applier) ReadMigrationMaxValues(uniqueKey *sql.UniqueKey) error {
391393 }
392394 }
393395 this .migrationContext .Log .Infof ("Migration max values: [%s]" , this .migrationContext .MigrationRangeMaxValues )
396+
397+ err = rows .Err ()
394398 return err
395399}
396400
@@ -443,6 +447,9 @@ func (this *Applier) CalculateNextIterationRangeEndValues() (hasFurtherRange boo
443447 }
444448 hasFurtherRange = true
445449 }
450+ if err = rows .Err (); err != nil {
451+ return hasFurtherRange , err
452+ }
446453 if hasFurtherRange {
447454 this .migrationContext .MigrationIterationRangeMaxValues = iterationRangeMaxValues
448455 return hasFurtherRange , nil
You can’t perform that action at this time.
0 commit comments