Skip site navigation (1) Skip section navigation (2)

Re: ERROR: invalid datatype 'FILE'

From: Amish <amish(dot)pandya(at)in(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: ERROR: invalid datatype 'FILE'
Date: 2011-02-02 03:55:00
Message-ID: 1296618900504-3367328.post@n5.nabble.com (view raw or flat)
Thread:
Lists: 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.

In response to

pgsql-novice by date

Next:From: Mladen GogalaDate: 2011-02-02 06:13:16
Subject: Re: ERROR: invalid datatype 'FILE'
Previous:From: AndrejDate: 2011-02-01 20:20:29
Subject: Re: ERROR: invalid datatype 'FILE'

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group