Re: [INTERFACES] ecpg runtime problem - Mailing list pgsql-interfaces

From Ivo Simicevic
Subject Re: [INTERFACES] ecpg runtime problem
Date
Msg-id 20000228143707.A17854@ultra.hr
Whole thread Raw
In response to ecpg runtime problem  ("Sirish Kumar" <sirishk@noida.hclt.com>)
List pgsql-interfaces
On Mon, Feb 28, 2000 at 06:12:54PM +0530, Sirish Kumar wrote:
> Hi,
>    I am using ecpg version 2.4.4. I am checking my code with purify to
> remove any run time problems.
> Following simple ecpg code gives core dump (when compiled with purify*).
> 
> .....
> #include <stdio.h>
> 
> void main()
> {
> exec sql connect cdata;
> }
> .....
> 

What is cdata : database name or variable containing database name?
If it is database name try enclosing it in double quotes like "cdata"
If cdata is variable it should be listed in DECLARE section
Also try using CONNECT TO database.

Good luck,

Ivo.


pgsql-interfaces by date:

Previous
From: "Sirish Kumar"
Date:
Subject: ecpg runtime problem
Next
From: Willy De la Court
Date:
Subject: RE: [INTERFACES] pgsql ODBC driver and Visual Foxpro