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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-novice by date

  From Date Subject
Next Message Mladen Gogala 2011-02-02 06:13:16 Re: ERROR: invalid datatype 'FILE'
Previous Message Andrej 2011-02-01 20:20:29 Re: ERROR: invalid datatype 'FILE'