Skip to content

Commit

Permalink
Move var
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-artie committed Mar 18, 2024
1 parent 55a6c1c commit 56141fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/rdbms/scan/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,9 @@ func (s *Scanner) Next() ([]map[string]any, error) {
if len(rows) == 0 || s.primaryKeys.IsExhausted() {
s.done = true
} else {
var startingValuesChanged bool

// Update the starting keys so that the next scan will pick off where we last left off.
lastRow := rows[len(rows)-1]
var startingValuesChanged bool
for _, pk := range s.primaryKeys.Keys() {
changed, err := s.primaryKeys.UpdateStartingValue(pk.Name, lastRow[pk.Name])
if err != nil {
Expand Down

0 comments on commit 56141fc

Please sign in to comment.