Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 2065B9FB8BD for ; Mon, 9 Jul 2007 13:46:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 78723-07 for ; Mon, 9 Jul 2007 13:46:09 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id AFF8B9FB85E for ; Mon, 9 Jul 2007 13:46:08 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l69GjwEf023287; Mon, 9 Jul 2007 12:45:58 -0400 (EDT) To: Kris Jurka cc: Altaf Malik , pgsql-jdbc@postgresql.org, mpaesold@gmx.at Subject: Re: Unable to prepare a statement when the object names contain more than one $ symbol In-reply-to: References: <540504.87872.qm@web39103.mail.mud.yahoo.com> Comments: In-reply-to Kris Jurka message dated "Mon, 09 Jul 2007 12:31:41 -0400" Date: Mon, 09 Jul 2007 12:45:58 -0400 Message-ID: <23286.1183999558@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/36 X-Sequence-Number: 17210 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.) regards, tom lane