<d(dot)rericha(at)healthcareoss(dot)com> wrote:
> Simply set a varchar field in your db to the following string:
> !"#$%'()*+,-/:;=?(at)[\]^_`{|}~0000&<>
Do you have standard_conforming_strings = on?
> The like command works fine up with escapes up to:
> !"#$%''()*+,-/:;=?(at)[%
> Notice, I added the % to the end. However, if you go any further -
> no matches:
> !"#$%''()*+,-/:;=?(at)[\\%
> Strangely, this works and shouldn't:
> !"#$%''()*+,-/:;=?(at)[\%
It is always better to include a self-contained test case. For
example:
test=# set standard_conforming_strings = on;
SET
test=# create table t (v text not null);
CREATE TABLE
test=# insert into t values
('!"#$%'()*+,-/:;=?(at)[\]^_`{|}~0000&<>');
INSERT 0 1
test=# select * from t where v like
'!"#$\%'()*+,-/:;=?(at)[\\]^_`{|}~0000&<>%'
escape '\';
v
--------------------------------------------------------
!"#$%'()*+,-/:;=?(at)[\]^_`{|}~0000&<>
(1 row)
So this is not a bug on HEAD. What do you get when you run it?
-Kevin