Skip to content

Commit

Permalink
fix: ranged load does not load last record. (#1203)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesilvia committed Aug 31, 2020
1 parent 9788cc6 commit 48d8ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sources/mysql/mysql.lisp
Expand Up @@ -32,7 +32,7 @@
(let* ((col (mysql-column-name
(nth (position coldef (table-column-list (target mysql)))
(fields mysql))))
(sql (format nil "select min(`~a`), max(`~a`) from `~a`"
(sql (format nil "select min(`~a`), max(`~a`) + 1 from `~a`"
col col (table-source-name (source mysql)))))
(destructuring-bind (min max)
(let ((result (first (mysql-query sql))))
Expand Down

0 comments on commit 48d8ed0

Please sign in to comment.