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.