Re: [INTERFACES] ecpg runtime problem

From: Ivo Simicevic <ivo(at)ultra(dot)hr>
To: Sirish Kumar <sirishk(at)noida(dot)hclt(dot)com>
Cc: pgsql-interfaces(at)postgreSQL(dot)org
Subject: Re: [INTERFACES] ecpg runtime problem
Date: 2000-02-28 13:37:07
Message-ID: 20000228143707.A17854@ultra.hr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Willy De la Court 2000-02-28 17:46:50 RE: [INTERFACES] pgsql ODBC driver and Visual Foxpro
Previous Message Sirish Kumar 2000-02-28 12:42:54 ecpg runtime problem