Received: from punta.ultra.hr (ip.zadarnet.hr [195.29.197.33]) by hub.org (8.9.3/8.9.3) with ESMTP id IAA01797 for ; Mon, 28 Feb 2000 08:11:21 -0500 (EST) (envelope-from ivo@punta.ultra.hr) Received: by punta.ultra.hr (Postfix, from userid 1001) id 883A43C93B; Mon, 28 Feb 2000 14:37:07 +0100 (CET) Date: Mon, 28 Feb 2000 14:37:07 +0100 From: Ivo Simicevic To: Sirish Kumar Cc: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] ecpg runtime problem Message-ID: <20000228143707.A17854@ultra.hr> References: <016001bf81e9$55ee31e0$edfea0cc@noida.hclt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/0.95.7i In-Reply-To: <016001bf81e9$55ee31e0$edfea0cc@noida.hclt.com> Sender: ivo@punta.ultra.hr 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 > > 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.