diff --git a/include/odbcrset.cpp b/include/odbcrset.cpp index 84873824a..1d3edabd1 100755 --- a/include/odbcrset.cpp +++ b/include/odbcrset.cpp @@ -297,8 +297,8 @@ bool TODBC_recordset::move_to(TRecnotype n) { if (n < 0) _current_row = 0L; - if (n >= tot) - _current_row = tot - 1L; + if (n > tot) + _current_row = tot; return true; } @@ -493,8 +493,6 @@ int TODBC_recordset::compare_rec(const TISAM_recordset& dbfset) cmp = dbffld.as_int() - sqlfld.as_int(); break; } - if (cmp != 0) - int i = 1; } return cmp; }