@@ -1083,15 +1083,15 @@ ecpg_store_input(const int lineno, const bool force_indicator, const struct vari
10831083}
10841084
10851085static void
1086- free_params (const char * * paramValues ,int nParams ,bool print ,int lineno )
1086+ free_params (char * * paramValues ,int nParams ,bool print ,int lineno )
10871087{
10881088int n ;
10891089
10901090for (n = 0 ;n < nParams ;n ++ )
10911091{
10921092if (print )
10931093ecpg_log ("free_params on line %d: parameter %d = %s\n" ,lineno ,n + 1 ,paramValues [n ] ?paramValues [n ] :"null" );
1094- ecpg_free (( void * ) ( paramValues [n ]) );
1094+ ecpg_free (paramValues [n ]);
10951095}
10961096ecpg_free (paramValues );
10971097}
@@ -1138,7 +1138,7 @@ ecpg_execute(struct statement * stmt)
11381138PGnotify * notify ;
11391139struct variable * var ;
11401140int desc_counter = 0 ;
1141- const char * * paramValues = NULL ;
1141+ char * * paramValues = NULL ;
11421142int nParams = 0 ;
11431143int position = 0 ;
11441144struct sqlca_t * sqlca = ECPGget_sqlca ();
@@ -1380,7 +1380,7 @@ ecpg_execute(struct statement * stmt)
13801380else
13811381{
13821382nParams ++ ;
1383- if (!(paramValues = (const char * * )ecpg_realloc (paramValues ,sizeof (const char * )* nParams ,stmt -> lineno )))
1383+ if (!(paramValues = (char * * )ecpg_realloc (paramValues ,sizeof (char * )* nParams ,stmt -> lineno )))
13841384{
13851385ecpg_free (paramValues );
13861386return false;
@@ -1441,7 +1441,7 @@ ecpg_execute(struct statement * stmt)
14411441ecpg_log ("ecpg_execute on line %d: query: %s; with %d parameter(s) on connection %s\n" ,stmt -> lineno ,stmt -> command ,nParams ,stmt -> connection -> name );
14421442if (stmt -> statement_type == ECPGst_execute )
14431443{
1444- results = PQexecPrepared (stmt -> connection -> connection ,stmt -> name ,nParams ,paramValues ,NULL ,NULL ,0 );
1444+ results = PQexecPrepared (stmt -> connection -> connection ,stmt -> name ,nParams ,( const char * const * ) paramValues ,NULL ,NULL ,0 );
14451445ecpg_log ("ecpg_execute on line %d: using PQexecPrepared for \"%s\"\n" ,stmt -> lineno ,stmt -> command );
14461446}
14471447else
@@ -1453,7 +1453,7 @@ ecpg_execute(struct statement * stmt)
14531453}
14541454else
14551455{
1456- results = PQexecParams (stmt -> connection -> connection ,stmt -> command ,nParams ,NULL ,paramValues ,NULL ,NULL ,0 );
1456+ results = PQexecParams (stmt -> connection -> connection ,stmt -> command ,nParams ,NULL ,( const char * const * ) paramValues ,NULL ,NULL ,0 );
14571457ecpg_log ("ecpg_execute on line %d: using PQexecParams\n" ,stmt -> lineno );
14581458}
14591459}