ERROR: invalid datatype 'FILE' - Mailing list pgsql-novice

From Amish
Subject ERROR: invalid datatype 'FILE'
Date
Msg-id 1296543819909-3365733.post@n5.nabble.com
Whole thread Raw
Responses Re: ERROR: invalid datatype 'FILE'
Re: ERROR: invalid datatype 'FILE'
List pgsql-novice
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.

pgsql-novice by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Postgresql security checks
Next
From: yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi)
Date:
Subject: Re: [HACKERS] systable_getnext_ordered