Received: from mail.ngi.de ([195.243.0.227]) by hub.org (8.9.3/8.9.3) with ESMTP id EAA40991 for ; Wed, 15 Dec 1999 04:42:21 -0500 (EST) (envelope-from michael@fam-meskes.de) Received: from p3E9D3E5C.dip0.t-ipconnect.de (root@p3E9D3E5C.dip0.t-ipconnect.de [62.157.62.92]) by mail.ngi.de (8.9.3/8.9.3) with ESMTP id KAA04788; Wed, 15 Dec 1999 10:36:17 +0100 (CET) (envelope-from michael@fam-meskes.de) Received: (from michael@localhost) by tanja.fam-meskes.de (8.9.3/8.9.3/Debian 8.9.3-6) id IAA01152; Wed, 15 Dec 1999 08:03:31 +0100 Date: Wed, 15 Dec 1999 08:03:30 +0100 From: Michael Meskes To: Stephen Birch Cc: pgsql-interfaces@postgresql.org Subject: Re: [INTERFACES] Oops: ecpg changes <> to = (not good) Message-ID: <19991215080330.A1104@fam-meskes.de> Mail-Followup-To: Stephen Birch , pgsql-interfaces@postgreSQL.org References: <3856A6CE.324E8242@ironmountainsystems.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="YZ5djTAD1cGYuMQK" User-Agent: Mutt/1.0i In-Reply-To: <3856A6CE.324E8242@ironmountainsystems.com>; from sbirch@ironmountainsystems.com on Tue, Dec 14, 1999 at 12:21:34PM -0800 --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii On Tue, Dec 14, 1999 at 12:21:34PM -0800, Stephen Birch wrote: > In the process of cleaning up some memory leaks in the cvs tree, I > discovered that > the checked in version of ecpg interperates <> as =: Oops. This typo got in there when I took over the simplified a_expr and b_expr rules from gram.y. > I would debug this myself, but do not understand lex and yacc well > enough yet. I already changed it in my source. As soon as I commit the correct version will go in. If you need a patch earlier I attach the patch. 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! --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=patch --- preproc.y.orig Wed Dec 15 08:02:35 1999 +++ preproc.y Wed Dec 15 08:02:58 1999 @@ -3595,7 +3595,7 @@ | a_expr '=' a_expr { $$ = cat3_str($1, make1_str("="), $3); } | a_expr Op a_expr - { $$ = cat3_str($1, make1_str("="), $3); } + { $$ = cat3_str($1, $2, $3); } | Op a_expr { $$ = cat2_str($1, $2); } | a_expr Op @@ -3713,7 +3713,7 @@ | b_expr '=' b_expr { $$ = cat3_str($1, make1_str("="), $3); } | b_expr Op b_expr - { $$ = cat3_str($1, make1_str("="), $3); } + { $$ = cat3_str($1, $2, $3); } | Op b_expr { $$ = cat2_str($1, $2); } | b_expr Op --YZ5djTAD1cGYuMQK--