Hi
I am trying to migrate informix Esql/C application to PostgeSQL using ecpg.
I have a structure in the code, where one of the element data type is
non-primitive. When i try to complile the code it throws following error
message.
ERROR: invalid datatype 'FILE'
Program Code
#include <stdlib.h>
#include <stdio.h>
EXEC SQL BEGIN DECLARE SECTION;
struct rid_ds
{
double de_re_rid;
double de_re_xrid;
FILE *fp;
} dbinfo_t;
dbinfo_t dbval;
EXEC SQL END DECLARE SECTION;
main()
{
printf("Test Program :\n");
}
Below is the command i use to compile the code.
ecpg -c prog1.pgc
prog1.pgc:9: ERROR: invalid datatype 'FILE'
The same code compiles using esqlc without any problem. Is there any way to
fix about error
ECPG version:
ecpg (PostgreSQL 8.2.13) 4.2.1
RHEL 5 update 3
--
View this message in context:
http://postgresql.1045698.n5.nabble.com/ERROR-invalid-datatype-FILE-tp3365733p3365733.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.