| From: | Mickael Faivre-Macon <faivrem(at)gmail(dot)com> |
|---|---|
| To: | pgsql-general(at)postgresql(dot)org |
| Subject: | backslashes in queries containing LIKE |
| Date: | 2005-01-26 13:44:40 |
| Message-ID: | f132f7e30501260544197a9e1d@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hi,
We have a problem with backslashes in queries containing LIKE.
insert into table (field) values ('IM\\test')
select * from table where field = 'IM\\test'
returns one record
select * from table where field LIKE 'IM\\%'
returns no record
Why is postgres behaves like that ?
Can someone help us ?
Scripts for testing purpose have been attached.
Mickael Faivre-Macon.
| Attachment | Content-Type | Size |
|---|---|---|
| creat_table.sql | application/octet-stream | 88 bytes |
| insert_values.sql | application/octet-stream | 384 bytes |
| select_values.sql | application/octet-stream | 383 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Frank D. Engel, Jr. | 2005-01-26 13:45:15 | Re: Extended unit |
| Previous Message | Carlos Oliva | 2005-01-26 13:38:55 | Re: Size of data stored in bytea record? |