From: Michael Paesold <mpaesold@gmx.at>
To: Michael Paesold <mpaesold@gmx.at>
Cc: Kris Jurka <books@ejurka.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
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: Thu, 18 Oct 2007 18:27:40 +0200
Message-ID: <4717897C.8070909@gmx.at> (raw)
In-Reply-To: <47177F0E.6020601@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>
<Pine.BSO.4.64.0710160420230.644@leary.csoft.net>
<4714DDF1.9020403@gmx.at>
<47177F0E.6020601@gmx.at>
I wrote:
...
> 1) In parseDollarQuotes(), we look at the character directly before the
> $-char and compare it against all valid identifier characters. If it is,
> we don't have a possible dollar-quote start:
>
> From scan.l:
> ident_start [A-Za-z\200-\377_]
> ident_cont [A-Za-z\200-\377_0-9\$]
...
> Looking at gram.y and scan.l (...but I'm no expert) I can't see another
> case of a dollar-character that I missed, except the one allowed in
> ident_cont... so option 1) seems like the easiest solution. I will send
> a patch implementing option 1 shortly.
Ok, here is the patch. It also adds your tests exposing the bug to the
test suite. The patch fixes both test cases and passes all other
regression tests (at least with JDK 1.5....). Does it look OK to you?
Should we do anything additional about error-ing out when we detect an
unterminated dollar-quote (see previous mail)?
Best Regards
Michael Paesold
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, books@ejurka.com, tgl@sss.pgh.pa.us, mmalik_altaf@yahoo.com
Subject: Re: Unable to prepare a statement when the object names contain more than one $ symbol
In-Reply-To: <4717897C.8070909@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> <Pine.BSO.4.64.0710160420230.644@leary.csoft.net> <4714DDF1.9020403@gmx.at> <47177F0E.6020601@gmx.at> <4717897C.8070909@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