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 {
370
370
}
371
371
}
372
372
this .migrationContext .Log .Infof ("Migration min values: [%s]" , this .migrationContext .MigrationRangeMinValues )
373
+
374
+ err = rows .Err ()
373
375
return err
374
376
}
375
377
@@ -391,6 +393,8 @@ func (this *Applier) ReadMigrationMaxValues(uniqueKey *sql.UniqueKey) error {
391
393
}
392
394
}
393
395
this .migrationContext .Log .Infof ("Migration max values: [%s]" , this .migrationContext .MigrationRangeMaxValues )
396
+
397
+ err = rows .Err ()
394
398
return err
395
399
}
396
400
@@ -443,6 +447,9 @@ func (this *Applier) CalculateNextIterationRangeEndValues() (hasFurtherRange boo
443
447
}
444
448
hasFurtherRange = true
445
449
}
450
+ if err = rows .Err (); err != nil {
451
+ return hasFurtherRange , err
452
+ }
446
453
if hasFurtherRange {
447
454
this .migrationContext .MigrationIterationRangeMaxValues = iterationRangeMaxValues
448
455
return hasFurtherRange , nil
You can’t perform that action at this time.
0 commit comments