X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 8F3A99DC854; Thu, 9 Feb 2006 04:15:33 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 77169-04; Thu, 9 Feb 2006 04:15:12 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 1A4549DC851; Thu, 9 Feb 2006 04:15:10 -0400 (AST) Received: from gauss.credativ.com (ipx11302.ipxserver.de [212.112.227.254]) by svr4.postgresql.org (Postfix) with ESMTP id AE84A5AF073; Thu, 9 Feb 2006 08:15:10 +0000 (GMT) Received: from feivel (p50897FB3.dip.t-dialin.net [80.137.127.179]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gauss.credativ.com (Postfix) with ESMTP id B3272D7601; Thu, 9 Feb 2006 09:15:05 +0100 (CET) Received: from ip6-localhost (ip6-localhost [IPv6:::1]) by feivel (Postfix) with ESMTP id 384E64B1C9; Thu, 9 Feb 2006 09:15:01 +0100 (CET) From: Michael Meskes To: Bruce Momjian Subject: Re: [BUGS] BUG #2171: Differences compiling plpgsql in ecpg and psql Date: Thu, 9 Feb 2006 09:14:56 +0100 User-Agent: KMail/1.9.1 Cc: andrew5@ece.cmu.edu, PostgreSQL-patches , PostgreSQL-interfaces References: <200602070140.k171eIY00569@candle.pha.pa.us> In-Reply-To: <200602070140.k171eIY00569@candle.pha.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602090914.58790.meskes@postgresql.org> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.478 required=5 tests=[AWL=-0.001, DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.478 X-Spam-Level: X-Archive-Number: 200602/23 X-Sequence-Number: 5987 > > Actually ecpg should not translate dollar quoting at all. I'm going to > > fix this. Dollar quotes will then be send to the backend with > > translation and the backend takes care of the rest. > > Well, CVS version before I modified it had "dolq" stuff in the lexer to > handle dollar quotes and pass it as SCONST to the parser. Yes, I know. This was buggy from the get go on IMO. :-) > > Not sure, but there appears to be a bug in the routine that outputs a > > statement. I will change that one as well and would ask you to just > > check again. It seems to me that this also fixes your problem. I tried > > with the one test case in this email and it seems to work. But then I'm > > currently travelling and do not have that much spare time to test. > > The problem is that output.c does: > > printf("abc > def"); > > While some compilers are OK with that, others are not. I changed it to > output: > > printf("abc\n\ > def"); Okay, will look into this again. Michael -- Michael Meskes Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!