File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 3
3
* client encoding and server internal encoding.
4
4
* (currently mule internal code (mic) is used)
5
5
* Tatsuo Ishii
6
- * $Id: mbutils.c,v 1.30 2002/08/08 06:35:26 ishii Exp $
6
+ * $Id: mbutils.c,v 1.31 2002/08/14 05:33:34 ishii Exp $
7
7
*/
8
8
#include "postgres.h"
9
9
#include "access/xact.h"
@@ -90,7 +90,21 @@ SetClientEncoding(int encoding, bool doit)
90
90
if (IsTransactionState ())
91
91
{
92
92
ClientEncoding = & pg_enc2name_tbl [encoding ];
93
+
94
+ if (ToServerConvPorc != NULL )
95
+ {
96
+ if (ToServerConvPorc -> fn_extra )
97
+ pfree (ToServerConvPorc -> fn_extra );
98
+ pfree (ToServerConvPorc );
99
+ }
93
100
ToServerConvPorc = to_server ;
101
+
102
+ if (ToClientConvPorc != NULL )
103
+ {
104
+ if (ToClientConvPorc -> fn_extra )
105
+ pfree (ToClientConvPorc -> fn_extra );
106
+ pfree (ToClientConvPorc );
107
+ }
94
108
ToClientConvPorc = to_client ;
95
109
}
96
110
return 0 ;
You can’t perform that action at this time.
0 commit comments