1
- /* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.6 2003/03/27 14:29:17 meskes Exp $ */
1
+ /* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/execute.c,v 1.7 2003/03/30 11:48:18 meskes Exp $ */
2
2
3
3
/*
4
4
* The aim is to get a simpler inteface to the database routines.
@@ -847,7 +847,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var,
847
847
{
848
848
for (element = 0 ;element < var -> arrsize ;element ++ )
849
849
{
850
- str = PGTYPESnumeric_ntoa ((Numeric * )((var + var -> offset * element )-> value ));
850
+ str = PGTYPESnumeric_ntoa ((Numeric * )((var + var -> offset * element )-> value ), 0 );
851
851
slen = strlen (str );
852
852
853
853
if (!(mallocedval = ECPGrealloc (mallocedval ,strlen (mallocedval )+ slen + 5 ,stmt -> lineno )))
@@ -863,7 +863,7 @@ ECPGstore_input(const struct statement * stmt, const struct variable * var,
863
863
}
864
864
else
865
865
{
866
- str = PGTYPESnumeric_ntoa ((Numeric * )(var -> value ));
866
+ str = PGTYPESnumeric_ntoa ((Numeric * )(var -> value ), 0 );
867
867
slen = strlen (str );
868
868
869
869
if (!(mallocedval = ECPGalloc (slen + 1 ,stmt -> lineno )))
@@ -1239,7 +1239,9 @@ ECPGexecute(struct statement * stmt)
1239
1239
{
1240
1240
ECPGlog ("ECPGexecute line %d: ASYNC NOTIFY of '%s' from backend pid '%d' received\n" ,
1241
1241
stmt -> lineno ,notify -> relname ,notify -> be_pid );
1242
- PQfreemem (notify );
1242
+ /*PQfreemem(notify);*/
1243
+ free (notify );
1244
+ #warning Remove PQfreemem define
1243
1245
}
1244
1246
1245
1247
return status ;