Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B19821337B3E for ; Tue, 2 Nov 2010 14:44:30 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 22028-04; Tue, 2 Nov 2010 17:44:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mail.postgresql.org (Postfix) with ESMTP id 67526133616B; Tue, 2 Nov 2010 14:44:22 -0300 (ADT) Received: from hyperion (brooke.credativ.ltd.uk [79.135.105.194]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0LdZnq-1OnezY1dKs-00ijOo; Tue, 02 Nov 2010 18:39:14 +0100 Received: by hyperion (Postfix, from userid 1000) id 519CCDF8B; Tue, 2 Nov 2010 18:39:13 +0100 (CET) Date: Tue, 2 Nov 2010 18:39:13 +0100 From: Michael Meskes To: Heikki Linnakangas Cc: Michael Meskes , Zoltan Boszormenyi , PostgreSQL Bugs Subject: Re: ecpg preprocessor regression in 9.0 Message-ID: <20101102173913.GA32303@hyperion.credativ.de> References: <4CCEC145.3020409@enterprisedb.com> <4CCEC4D8.2090809@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4CCEC4D8.2090809@enterprisedb.com> User-Agent: Mutt/1.5.20 (2009-06-14) Content-Transfer-Encoding: quoted-printable X-Provags-ID: V02:K0:NzJhSK5uXtZx0bO2aIlG4lCtGitNpzCC+GfBQKISZLj PYH22mupbUj+k2SsmpRsYmMovh6AiJWcyQHh8qonfVggcbjj7K TgDvbCk7Z6zS9EfRJK43KSisFbDO95KgPqavNRHOUyicRt48pu ZycaI0/zD8tHgi03rwr25jsQRtLYb72dgvfQOaP1g2LpIjk8Qo zhQT63UtHS5tkcBba8Yxg== X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201011/17 X-Sequence-Number: 28597 On Mon, Nov 01, 2010 at 03:47:04PM +0200, Heikki Linnakangas wrote: > On closer look, it's quite obvious: the code added to > ECPGdump_a_type thinks that ECPGt_const is a variable type, and > tries to look up the variable. The straightforward fix is this: > ... > But I wonder if there is a better way to identify variable-kind of > ECPGttypes than list the ones that are not. There's some special > ECPGttypes still missing from the above if-test, like > ECPGt_NO_INDICATOR, but I'm not sure if they can ever be passed to > ECPGdump_a_type. Seems a bit fragile anyway. I agree. How about adding a macro definition explicitely checking for the= real variable types? Michael --=20 Michael Meskes Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org Jabber: michael.meskes at googlemail dot com VfL Borussia! For=C3=A7a Bar=C3=A7a! Go SF 49ers! Use Debian GNU/Linux, P= ostgreSQL