like vs =

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-----------------------------


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux