On 3/13/18 20:38, Michael Meskes wrote:
> Add Oracle like handling of char arrays.
> 
> In some cases Oracle Pro*C handles char array differently than ECPG. This 
> patch
> adds a Oracle compatibility mode to make ECPG behave like Pro*C.

Please check these compiler warnings:

char_array.pgc: In function 'main':
char_array.pgc:21:3: error: ISO C90 forbids mixed declarations and code
[-Werror=declaration-after-statement]
   const char *ppppp = "XXXXX";
   ^~~~~
char_array.pgc: At top level:
char_array.pgc:63:13: error: 'warn' was used with no prototype before
its definition [-Werror=missing-prototypes]
 static void warn(void)
             ^~~~

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Reply via email to