psqlodbc.git / summary / log / commit / refs

commit    0af204f6fdf694d60f158a4c23cfe8749fdd67cb
Author:   Hiroshi Inoue <inoue@tpf.co.jp>
Date:     Sat Jun 11 04:59:18 2011 +0000

    Don't clear the parsed plan in SC_recycle_statement().


statement.c | 14 +++++++++----- version.h | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/statement.c b/statement.c index 142a10cb..5da38b37 100644 --- a/statement.c +++ b/statement.c @@ -813,12 +813,16 @@ inolog("SC_clear_parse_status\n"); /* Free any cursors */ if (res = SC_get_Result(self), res) { - if (PREPARED_PERMANENTLY == self->prepared) - QR_close_result(res, FALSE); - else + switch (self->prepared) { - QR_Destructor(res); - SC_init_Result(self); + case PREPARED_PERMANENTLY: + case PREPARED_TEMPORARILY: + QR_close_result(res, FALSE); + break; + default: + QR_Destructor(res); + SC_init_Result(self); + break; } } self->inaccurate_result = FALSE; diff --git a/version.h b/version.h index ce5f4bc8..9578e1d4 100644 --- a/version.h +++ b/version.h @@ -12,6 +12,6 @@ #define POSTGRESDRIVERVERSION "09.00.0301" #define POSTGRES_RESOURCE_VERSION "09.00.0301\0" #define PG_DRVFILE_VERSION 9,0,03,01 -#define PG_BUILD_VERSION "201105220001" +#define PG_BUILD_VERSION "201106110001" #endif [parent: 18007c3390f5]