Fix bug with UseDeclareFetch=1 when a transaction is committed before fetch.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 24 Jun 2014 13:38:00 +0000 (16:38 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 24 Jun 2014 13:40:54 +0000 (16:40 +0300)
commit78bf5f8933646595eaff20667e42dc18f8700465
treed24ecc67df475ed6fbc2a554f153e6ec775e44f2
parent81e2a2d034b93e4f8338db9e7e266ffd0bb78fcc
Fix bug with UseDeclareFetch=1 when a transaction is committed before fetch.

If a server cursor is closed before the application has fetched any rows
from the result set, the "base" of the result set's cached rowset was
off-by-one.

Also add a regression test for the same.

This fixes the bug reported by Jan-Peter Seifert.
qresult.c
test/expected/cursor-commit.out [new file with mode: 0644]
test/src/cursor-commit-test.c [new file with mode: 0644]
test/tests