Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 6DC939FBD2A for ; Tue, 10 Jul 2007 09:47:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 55825-05 for ; Tue, 10 Jul 2007 09:47:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by postgresql.org (Postfix) with SMTP id CA0549FBCD9 for ; Tue, 10 Jul 2007 09:47:17 -0300 (ADT) Received: (qmail invoked by alias); 10 Jul 2007 12:47:16 -0000 Received: from office01.emerion.com (EHLO [127.0.0.1]) [83.64.50.26] by mail.gmx.net (mp029) with SMTP; 10 Jul 2007 14:47:16 +0200 X-Authenticated: #1946847 X-Provags-ID: V01U2FsdGVkX1+xpYV7wzixSQBFbktChWrODQaTm5a+UIcy4YOLGf 9hgNRXXqzmf4ov Message-ID: <46937FCD.7060409@gmx.at> Date: Tue, 10 Jul 2007 14:47:09 +0200 From: Michael Paesold User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Tom Lane CC: Kris Jurka , Altaf Malik , pgsql-jdbc@postgresql.org Subject: Re: Unable to prepare a statement when the object names contain more than one $ symbol References: <540504.87872.qm@web39103.mail.mud.yahoo.com> <23286.1183999558@sss.pgh.pa.us> In-Reply-To: <23286.1183999558@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/39 X-Sequence-Number: 17213 Tom Lane schrieb: > Kris Jurka writes: >> On Mon, 9 Jul 2007, Altaf Malik wrote: >>> PreparedStatement pstmt = con.prepareStatement("insert into a$b$c >>> values( ? , ?)"); > >> This is a bug in dollar quote parsing. It assumes that any potential >> dollar quote start will have an end tag. > > If it thinks that's a dollar quote start, it's wrong already... that's > a perfectly valid table name. (Although personally I'd suggest that the > OP avoid dollar signs in identifiers, since they're none too portable.) I guess I missed that case when implementing dollar quoting in the driver. I will have a look at it shortly. Best Regards Michael Paesold