diff options
| author | Hiroshi Inoue | 2010-06-21 21:48:01 +0000 |
|---|---|---|
| committer | Hiroshi Inoue | 2010-06-21 21:48:01 +0000 |
| commit | b2ad7a202ad811625cf3c24381246d0ad6f3d6fb (patch) | |
| tree | ac24d06ed18da63ebb6eb990bb6d401792c80a52 /statement.c | |
| parent | 9fa7bc28a6336924f5e605f4559b7f76f6a9a699 (diff) | |
1.Improve the handling of bools_as_char case.
2.Fix a bug when creating a connection string.
Diffstat (limited to 'statement.c')
| -rw-r--r-- | statement.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/statement.c b/statement.c index d4a0513..784c2e0 100644 --- a/statement.c +++ b/statement.c @@ -1540,6 +1540,8 @@ SC_fetch(StatementClass *self) inolog("%s statement=%p ommitted=0\n", func, self); self->last_fetch_count = self->last_fetch_count_include_ommitted = 0; + if (!res) + return SQL_ERROR; coli = QR_get_fields(res); /* the column info */ mylog("fetch_cursor=%d, %p->total_read=%d\n", SC_is_fetchcursor(self), res, res->num_total_read); @@ -1886,7 +1888,8 @@ inolog("get_Result=%p %p %d\n", res, SC_get_Result(self), self->curr_param_resul goto cleanup; } } - else if (self->statement_type == STMT_TYPE_SELECT) + else if (self->statement_type == STMT_TYPE_SELECT || + self->statement_type == STMT_TYPE_PROCCALL) { char fetch[128]; const char *appendq = NULL; |
