Received: from feivel.fam-meskes.de (h-62.96.141.196.host.de.colt.net [62.96.141.196]) by hub.org (8.9.3/8.9.3) with ESMTP id CAA86227 for ; Wed, 1 Mar 2000 02:32:42 -0500 (EST) (envelope-from michael@fam-meskes.de) Received: by feivel.fam-meskes.de (Postfix, from userid 1000) id 3EF8C2BB63; Wed, 1 Mar 2000 08:31:44 +0100 (CET) Date: Wed, 1 Mar 2000 08:31:44 +0100 From: Michael Meskes To: Sirish Kumar Cc: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] ecpg runtime problem Message-ID: <20000301083144.A16147@fam-meskes.de> Mail-Followup-To: Sirish Kumar , pgsql-interfaces@postgreSQL.org References: <016001bf81e9$55ee31e0$edfea0cc@noida.hclt.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0.1i In-Reply-To: <016001bf81e9$55ee31e0$edfea0cc@noida.hclt.com>; from sirishk@noida.hclt.com on Mon, Feb 28, 2000 at 06:12:54PM +0530 Sender: michael@fam-meskes.de On Mon, Feb 28, 2000 at 06:12:54PM +0530, Sirish Kumar wrote: > I am using ecpg version 2.4.4. I am checking my code with purify to > remove any run time problems. Could you please try a newer version. 2.4.4 is rather old. > exec sql connect cdata; The connect syntax was changed. I'm not sure what it was like with version 2.4.4. The correct syntax is EXEC SQL CONNECT TO . Is 'cdata' your database name? Could you please tell me how the statement was translated? Just look into the corresponding .c file for cdata. This should be particularly interesting since the purify message talked about some libpq functions called from libecpg. Michael -- Michael Meskes | Go SF 49ers! Th.-Heuss-Str. 61, D-41812 Erkelenz | Go Rhein Fire! Tel.: (+49) 2431/72651 | Use Debian GNU/Linux! Email: Michael@Fam-Meskes.De | Use PostgreSQL!