From: | Stefan Holzheu <stefan(dot)holzheu(at)bayceer(dot)uni-bayreuth(dot)de> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | like vs = |
Date: | 2006-01-05 14:44:36 |
Message-ID: | 43BD30D4.1030202@bayceer.uni-bayreuth.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hallo,
I just encountered a stange behaviour:
The following query gives zero rows.
bitoek=> SELECT name from file where name =
'mitarbeiter/mit/mitarbeiter_ehemalig.php';
name
------
(0 Zeilen)
Replacing "=" by like and escaping the underscore gives the row I knew
to be there:
bitoek=> SELECT name from file where name like
'mitarbeiter/mit/mitarbeiter\_ehemalig.php';
name
------------------------------------------
mitarbeiter/mit/mitarbeiter_ehemalig.php
(1 Zeile)
Other queries with the equal operator do match rows. Am I missing something?
Postgresql: 8.1.1
Fieldtype: text
Database encoding: Latin9
Regards,
Stefan
--
-----------------------------
Dr. Stefan Holzheu
Tel.: 0921/55-5720
Fax.: 0921/55-5709
BayCEER
EDV und Datenbanken
Universitaet Bayreuth
D-95440 Bayreuth
-----------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Jaime Casanova | 2006-01-05 15:48:02 | Re: Vacuum is needed or not? |
Previous Message | Jaime Casanova | 2006-01-05 14:37:22 | Re: Vacuum is needed or not? |