Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id A03169FB254 for ; Tue, 3 Oct 2006 17:37:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 10632-06 for ; Tue, 3 Oct 2006 20:37:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from vimes.neko.si (vimes.neko.si [213.161.22.88]) by postgresql.org (Postfix) with ESMTP id 05ED59FB20B for ; Tue, 3 Oct 2006 17:37:05 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by vimes.neko.si (Postfix) with ESMTP id EEC29BD06 for ; Tue, 3 Oct 2006 22:37:03 +0200 (CEST) Received: from vimes.neko.si ([127.0.0.1]) by localhost (vimes.neko.si [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03248-01 for ; Tue, 3 Oct 2006 22:37:01 +0200 (CEST) Received: from inna.home (sui.neko.si [193.77.34.35]) by vimes.neko.si (Postfix) with ESMTP id BA28CBD08 for ; Tue, 3 Oct 2006 22:37:01 +0200 (CEST) From: Jure Koren Organization: Hehe d.o.o. To: pgsql-jdbc@postgresql.org Subject: Re: dollar quoting Date: Tue, 3 Oct 2006 22:36:53 +0200 User-Agent: KMail/1.9.1 References: <200610031754.38595.jure@hehe.si> <200610032146.37524.jure@hehe.si> <10393.1159905296@sss.pgh.pa.us> In-Reply-To: <10393.1159905296@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3676874.OtSeouR9dq"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200610032237.00051.jure@hehe.si> X-Virus-Scanned: amavisd-new at neko.si X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200610/31 X-Sequence-Number: 15914 --nextPart3676874.OtSeouR9dq Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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,=20 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=20 quoting is going to be used by humans writing functions. Using dollar=20 escaping in non-ddl stuff is, i think, extremely unlikely, as normal escapi= ng=20 functions will normally take care of those cases. Michael Paesold 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 doll= ar > quote Yes, and I've noticed there's a missing test for leading whitespace, which= =20 would make this fail very fast if it in fact wasn't a dollar quote. I'm=20 incapable of producing any more code today, but I'll be certainly improving= =20 it later this week. I'm not actually familiar with Java, so verbose criticism is most welcome,= =20 off-list too. And i'm subscribed to the list, so you don't have to make=20 copies :) Thank you for all the feedback and good night. =2D-=20 Jure Koren, unix developer Hehe d.o.o. --nextPart3676874.OtSeouR9dq Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBFIsns9iFCvmuhrCIRAoRAAJoD8ZjSisvwezI2TA74U5hXA8w95QCg8VFT 2ZJivqcG7oRYbUAQYcnmyMU= =fiiJ -----END PGP SIGNATURE----- --nextPart3676874.OtSeouR9dq--