summaryrefslogtreecommitdiff
path: root/statement.c
diff options
context:
space:
mode:
authorHiroshi Inoue2016-03-17 09:46:40 +0000
committerHiroshi Inoue2016-03-21 03:18:37 +0000
commitc758e0e92e06e46cfb34b7dc8c450f4cd1ac3e2b (patch)
tree2f986b4c595f7aaf031ceb57dfab2e7e4ebaad49 /statement.c
parenta0ba86ca4b0a8528c0999b40cd991521db1ff56b (diff)
Make sure that EOF occurs when 'fetched < fetch requested'.
Diffstat (limited to 'statement.c')
-rw-r--r--statement.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/statement.c b/statement.c
index fe11dc9..28d3f66 100644
--- a/statement.c
+++ b/statement.c
@@ -1930,10 +1930,10 @@ SC_execute(StatementClass *self)
{
qi.result_in = NULL;
qi.cursor = SC_cursor_name(self);
- qi.row_size = ci->drivers.fetch_max;
+ qi.fetch_size = qi.row_size = ci->drivers.fetch_max;
snprintf(fetch, sizeof(fetch),
"fetch " FORMAT_LEN " in \"%s\"",
- qi.row_size, SC_cursor_name(self));
+ qi.fetch_size, SC_cursor_name(self));
qryi = &qi;
appendq = fetch;
}
@@ -2179,8 +2179,8 @@ inolog("!!! numfield=%d field_type=%u\n", QR_NumResultCols(res), QR_get_field_ty
SC_set_fetchcursor(self);
qi.result_in = NULL;
qi.cursor = SC_cursor_name(self);
- qi.row_size = ci->drivers.fetch_max;
- snprintf(fetch, sizeof(fetch), "fetch " FORMAT_LEN " in \"%s\"", qi.row_size, SC_cursor_name(self));
+ qi.cache_size = qi.row_size = ci->drivers.fetch_max;
+ snprintf(fetch, sizeof(fetch), "fetch " FORMAT_LEN " in \"%s\"", qi.fetch_size, SC_cursor_name(self));
res = CC_send_query(conn, fetch, &qi, qflag, SC_get_ancestor(self));
if (NULL != res)
SC_set_Result(self, res);