From: | Amish <amish(dot)pandya(at)in(dot)com> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | ERROR: invalid datatype 'FILE' |
Date: | 2011-02-01 07:03:39 |
Message-ID: | 1296543819909-3365733.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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.
From | Date | Subject | |
---|---|---|---|
Next Message | YAMAMOTO Takashi | 2011-02-01 08:35:02 | Re: [NOVICE] systable_getnext_ordered |
Previous Message | Bruce Momjian | 2011-02-01 03:54:33 | Re: Postgresql security checks |