pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jure Koren <jure@hehe.si>
To: pgsql-jdbc@postgresql.org
Subject: Re: dollar quoting
Date: Tue, 3 Oct 2006 22:36:53 +0200
Message-ID: <200610032237.00051.jure@hehe.si> (raw)
In-Reply-To: <10393.1159905296@sss.pgh.pa.us>
References: <200610031754.38595.jure@hehe.si>
	<200610032146.37524.jure@hehe.si>
	<10393.1159905296@sss.pgh.pa.us>

On Tuesday 03 October 2006 21:54, Tom Lane wrote:
> No ... a locale-dependent character class test is exactly the wrong
> thing.  See the other discussion.

But it isn't locale dependent. All unicode letter class character match, 
regardless of locale (which is what the postgres docs say as well).

Yes, probably not the best thing to do, but my reasoning was that dollar 
quoting is going to be used by humans writing functions. Using dollar 
escaping in non-ddl stuff is, i think, extremely unlikely, as normal escaping 
functions will normally take care of those cases.

Michael Paesold <mpaesold@gmx.at> wrote:
> - Having said that, I don't believe in compiling a regular expression for
> each dollar-quoted string and each $ character that is not part of a dollar
> quote

Yes, and I've noticed there's a missing test for leading whitespace, which 
would make this fail very fast if it in fact wasn't a dollar quote. I'm 
incapable of producing any more code today, but I'll be certainly improving 
it later this week.

I'm not actually familiar with Java, so verbose criticism is most welcome, 
off-list too. And i'm subscribed to the list, so you don't have to make 
copies :)

Thank you for all the feedback and good night.

-- 
Jure Koren, unix developer
Hehe d.o.o.

view thread (13+ messages)  latest in thread

Message-ID: <200610032237.00051.jure@hehe.si>
Permalink:  ../200610032237.00051.jure@hehe.si/
Also on:    postgresql.org/message-id/200610032237.00051.jure@hehe.si

 · 

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: jure@hehe.si
  Subject: Re: dollar quoting
  In-Reply-To: <200610032237.00051.jure@hehe.si>
  References: <200610031754.38595.jure@hehe.si> <200610032146.37524.jure@hehe.si> <10393.1159905296@sss.pgh.pa.us> <200610032237.00051.jure@hehe.si>

* 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