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

From Amish
Subject Re: ERROR: invalid datatype 'FILE'
Date
Msg-id 1296618900504-3367328.post@n5.nabble.com
Whole thread Raw
In response to ERROR: invalid datatype 'FILE'  (Amish <amish.pandya@in.com>)
List pgsql-novice
Thanks for the reply

ESQL/C is informix utility. ESQL/C is an SQL application programming
interface (API) that enables developers to embed Structured Query Language
(SQL) statements directly into a C program. This is quite similer to ECPG.

The problem i am facing is bit different. When i remove "FILE *fp" from
declare section (ie. BEGIN DECLARE and END DECLARE) and put outside of
declare section the program compiles successfully.

e.g
#include <stdlib.h>
#include <stdio.h>


EXEC SQL BEGIN DECLARE SECTION;
struct  rid_ds
{
        double de_re_rid;
        double de_re_xrid;
} dbinfo_t;
dbinfo_t dbval;
EXEC SQL END DECLARE SECTION;

FILE   *fp;


main()
{

                printf("Test Program :\n");

}



--
View this message in context:
http://postgresql.1045698.n5.nabble.com/ERROR-invalid-datatype-FILE-tp3365733p3367328.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.

pgsql-novice by date:

Previous
From: Michael Wood
Date:
Subject: Re: ERROR: invalid datatype 'FILE'
Next
From: Mladen Gogala
Date:
Subject: Re: ERROR: invalid datatype 'FILE'