summaryrefslogtreecommitdiff
path: root/statement.c
diff options
context:
space:
mode:
authorHiroshi Inoue2003-05-27 05:20:09 +0000
committerHiroshi Inoue2003-05-27 05:20:09 +0000
commit7268e9442cb48f124be87f5b8fa6ff5e3585b90e (patch)
tree993f3e3ad94099a50fb0823b060c4eab90a39054 /statement.c
parent4865ac02620fe2782708e50e34d151e8daa59aeb (diff)
1) Corrent the handling of bookmark in SQLBulkOperations.
2) Correct the calculation of a global index in SC_pos_add. 3) Cleanup global/rowset/resultset index handling a little.
Diffstat (limited to 'statement.c')
-rw-r--r--statement.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/statement.c b/statement.c
index 6c4198e..23d097f 100644
--- a/statement.c
+++ b/statement.c
@@ -958,9 +958,7 @@ SC_fetch(StatementClass *self)
value = QR_get_value_backend(res, lf);
else
{
- int curt = res->base;
- if (self->rowset_start >= 0)
- curt += (self->currTuple - self->rowset_start);
+ int curt = GIdx2ResultIdx(self->currTuple, self, res);
value = QR_get_value_backend_row(res, curt, lf);
}