Skip to content

Commit b8f7d3d

Browse files
author
Michael Meskes
committed
Do not free prepares statements at the end of a transaction.
1 parent 524e9d6 commit b8f7d3d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/interfaces/ecpg/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,6 +1368,7 @@ Thu Mar 20 16:53:40 CET 2003
13681368
Fri Mar 21 15:13:42 CET 2003
13691369

13701370
- Made sure preprocessor accepts new datatypes.
1371+
- Do not free prepared statements at the end of a transaction.
13711372
- Set ecpg version to 2.12.0.
13721373
- Set ecpg library to 3.4.2.
13731374
- Set pgtypes library to 1.0.0

src/interfaces/ecpg/ecpglib/misc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.1 2003/03/16 10:42:53 meskes Exp $ */
1+
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.2 2003/03/21 15:31:04 meskes Exp $ */
22

33
#include "postgres_fe.h"
44

@@ -109,9 +109,11 @@ ECPGtrans(int lineno, const char *connection_name, const char *transaction)
109109
{
110110
con->committed = true;
111111

112+
#if 0
112113
/* deallocate all prepared statements */
113114
if (!ECPGdeallocate_all(lineno))
114115
return false;
116+
#endif
115117
}
116118

117119
return true;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy