Skip site navigation (1) Skip section navigation (2)

Re: weird quote bug

From: Karsten Hilbert <Karsten(dot)Hilbert(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: weird quote bug
Date: 2003-06-30 11:53:17
Message-ID: 20030630135317.C622@hermes.hilbert.loc (view raw or flat)
Thread:
Lists: 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

In response to

pgsql-general by date

Next:From: Paul ThomasDate: 2003-06-30 11:54:39
Subject: Re: weird quote bug
Previous:From: alex b.Date: 2003-06-30 11:50:52
Subject: Re: weird quote bug

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group