BUG #6314: The like command does not handle a long string of special chars - Mailing list pgsql-bugs

From d.rericha@healthcareoss.com
Subject BUG #6314: The like command does not handle a long string of special chars
Date
Msg-id E1RWAcS-0007Qi-OD@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #6314: The like command does not handle a long string of special chars
Re: BUG #6314: The like command does not handle a long string of special chars
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      6314
Logged by:          David Rericha
Email address:      d.rericha@healthcareoss.com
PostgreSQL version: 8.4.5
Operating system:   OpenSuSE 11.4 64-bit
Description:=20=20=20=20=20=20=20=20

Simply set a varchar field in your db to the following string:
!"#$%'()*+,-/:;=3D?@[\]^_`{|}~0000&<>

I know, I know, who would do this, right? Well, its for a certification.=20
The like command works fine up with escapes up to:
!"#$%''()*+,-/:;=3D?@[%
Notice, I added the % to the end. However, if you go any further - no
matches:
!"#$%''()*+,-/:;=3D?@[\\%
Strangely, this works and shouldn't:
!"#$%''()*+,-/:;=3D?@[\%

Thanks.

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #6313: Deadlock reporting contains not enought details
Next
From: Tom Lane
Date:
Subject: Re: 9.1.1 hot standby startup gets sigbus