Do not free prepares statements at the end of a transaction.
authorMichael Meskes <meskes@postgresql.org>
Fri, 21 Mar 2003 15:31:04 +0000 (15:31 +0000)
committerMichael Meskes <meskes@postgresql.org>
Fri, 21 Mar 2003 15:31:04 +0000 (15:31 +0000)
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ecpglib/misc.c

index a0a49ad9469346868a4f60dba7ef5063b70656d7..136a7a75626d3e4977be013b05f8860b3e559c71 100644 (file)
@@ -1368,6 +1368,7 @@ Thu Mar 20 16:53:40 CET 2003
 Fri Mar 21 15:13:42 CET 2003
 
    - Made sure preprocessor accepts new datatypes.
+   - Do not free prepared statements at the end of a transaction.
    - Set ecpg version to 2.12.0.
    - Set ecpg library to 3.4.2.
    - Set pgtypes library to 1.0.0
index 4e2f92d1784421f7b7595392937e8b8ca7ca33f2..48223d05689552f485c3611d7192e0d81c79467e 100644 (file)
@@ -1,4 +1,4 @@
-/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.1 2003/03/16 10:42:53 meskes Exp $ */
+/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.2 2003/03/21 15:31:04 meskes Exp $ */
 
 #include "postgres_fe.h"
 
@@ -109,9 +109,11 @@ ECPGtrans(int lineno, const char *connection_name, const char *transaction)
    {
        con->committed = true;
 
+#if 0
        /* deallocate all prepared statements */
        if (!ECPGdeallocate_all(lineno))
            return false;
+#endif
    }
 
    return true;