pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paesold <mpaesold@gmx.at>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Kris Jurka <books@ejurka.com>
Cc: Altaf Malik <mmalik_altaf@yahoo.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Unable to prepare a statement when the object names contain more than one $ symbol
Date: Tue, 10 Jul 2007 14:47:09 +0200
Message-ID: <46937FCD.7060409@gmx.at> (raw)
In-Reply-To: <23286.1183999558@sss.pgh.pa.us>
References: <540504.87872.qm@web39103.mail.mud.yahoo.com>
	<Pine.BSO.4.64.0707091229520.10973@leary.csoft.net>
	<23286.1183999558@sss.pgh.pa.us>

Tom Lane schrieb:
> Kris Jurka <books@ejurka.com> 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





view thread (12+ messages)  latest in thread

Message-ID: <46937FCD.7060409@gmx.at>
Permalink:  ../46937FCD.7060409@gmx.at/
Also on:    postgresql.org/message-id/46937FCD.7060409@gmx.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: mpaesold@gmx.at, tgl@sss.pgh.pa.us, books@ejurka.com, mmalik_altaf@yahoo.com
  Subject: Re: Unable to prepare a statement when the object names contain more than one $ symbol
  In-Reply-To: <46937FCD.7060409@gmx.at>
  References: <540504.87872.qm@web39103.mail.mud.yahoo.com> <Pine.BSO.4.64.0707091229520.10973@leary.csoft.net> <23286.1183999558@sss.pgh.pa.us> <46937FCD.7060409@gmx.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox