diff options
| author | Dave Page | 2005-12-09 22:35:06 +0000 |
|---|---|---|
| committer | Dave Page | 2005-12-09 22:35:06 +0000 |
| commit | 604200c2280fc94498cdc4f925eaf0c415ee2551 (patch) | |
| tree | fe6f0325aeaf5aac407d9cb1b02473bd93a96d4a /statement.c | |
| parent | 977e41d367275f26d85ff2255e374770a37fbb4e (diff) | |
Fix catalog finctions which were still slightly broken in declare/fetch mode [Ludek Finstrle]
Diffstat (limited to 'statement.c')
| -rw-r--r-- | statement.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/statement.c b/statement.c index e4431e1..2a011e7 100644 --- a/statement.c +++ b/statement.c @@ -242,9 +242,11 @@ SC_Constructor(void) { StatementClass *rv; + mylog("SC_Constructor: entering ...\n"); rv = (StatementClass *) malloc(sizeof(StatementClass)); if (rv) { + mylog("SC_Constructor: created stmt = %u\n",rv); rv->hdbc = NULL; /* no connection associated yet */ rv->phstmt = NULL; rv->result = NULL; @@ -974,6 +976,7 @@ SC_fetch(StatementClass *self) if ((((self->currTuple + 1) % ci->drivers.fetch_max) >= QR_get_num_total_tuples(res)) && QR_get_num_total_tuples(res) < ci->drivers.fetch_max) { + SC_no_fetchcursor(self); self->currTuple = QR_get_num_total_tuples(res); return SQL_NO_DATA_FOUND; } |
