From: | Magnus Hagander <magnus(at)hagander(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "d(dot)rericha(at)healthcareoss(dot)com" <d(dot)rericha(at)healthcareoss(dot)com>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: BUG #6314: The like command does not handle a long string of special chars |
Date: | 2011-12-02 15:41:12 |
Message-ID: | CABUevEzjnV=-3eub8W+=ZeXfyDXcCO=pMGC2iXvvqKvGnbCwwg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Thursday, December 1, 2011, Tom Lane wrote:
> d(dot)rericha(at)healthcareoss(dot)com <javascript:;> writes:
> > Simply set a varchar field in your db to the following string:
> > !"#$%'()*+,-/:;=?(at)[\]^_`{|}~0000&<>
>
> > I know, I know, who would do this, right? Well, its for a certification.
> > The like command works fine up with escapes up to:
> > !"#$%''()*+,-/:;=?(at)[%
>
> Doesn't match for me, rather unsurprisingly since this string contains
> two occurrences of "'" not one.
>
> > Notice, I added the % to the end. However, if you go any further - no
> > matches:
> > !"#$%''()*+,-/:;=?(at)[\\%
> > Strangely, this works and shouldn't:
> > !"#$%''()*+,-/:;=?(at)[\%
>
> It's hard to tell for sure, since you've presented a garbled
> interpretation of what you did rather than showing us exactly what you
>
A fair amount of that garbling is unfortunately the fault of a bug in the
new website code that applied HTML escapes to plaintext emails, which in
the end caused double escaping. I've just pushed a fix for this, so from
now on bugreports won't do that.
--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2011-12-02 17:28:11 | Re: BUG #6318: pg_dump for non-template languages is broken |
Previous Message | Josh Kupershmidt | 2011-12-02 14:31:55 | Re: 9.1.1 hot standby startup gets sigbus |