Re: weird quote bug - Mailing list pgsql-general

From Karsten Hilbert
Subject Re: weird quote bug
Date
Msg-id 20030630135317.C622@hermes.hilbert.loc
Whole thread Raw
In response to weird quote bug  (Shane Wright <me@shanewright.co.uk>)
List pgsql-general
> This shows that the row exists in the table:
>
> emystery=> select aid,useragent from useragent where useragent like '%ntserver-ps%';
>     aid    |                                                useragent
> -----------+---------------------------------------------------------------------------------------------------------
>  875741007 | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; file://\\ntserver-ps\publicsw\nt\ie6\ins\active.ins)
Are you sure there's no trailing whitespace on this string ?

Because this:

> emystery=> select * from useragent
> where useragent ilike
> 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; file://\\\\ntserver-ps\\publicsw\\nt\\ie6\\ins\\active.ins)';
                                                                                                                 ^
would not match trailing whitespace.

Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346

pgsql-general by date:

Previous
From: Paul Thomas
Date:
Subject: Re: weird quote bug
Next
From: "Henrik Steffen"
Date:
Subject: Cannot create unique index