Don't clear the parsed plan in SC_recycle_statement().
authorHiroshi Inoue <inoue@tpf.co.jp>
Sat, 11 Jun 2011 04:59:18 +0000 (04:59 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Sat, 11 Jun 2011 04:59:18 +0000 (04:59 +0000)
statement.c
version.h

index 142a10cb0c5ffdb3a08231f2963c72f74e69df67..5da38b37d974e3a802bdc55a94b6359fbf995ec3 100644 (file)
@@ -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;
index ce5f4bc859ec16e94540ae78ea0439dbcd335b3a..9578e1d4811c44d5616df65022808bc6ba7211c9 100644 (file)
--- 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