pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stefan Holzheu <stefan.holzheu@bayceer.uni-bayreuth.de>
To: pgsql-admin@postgresql.org
Subject: like vs =
Date: Thu, 05 Jan 2006 15:44:36 +0100
Message-ID: <43BD30D4.1030202@bayceer.uni-bayreuth.de> (raw)

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



view thread (3+ messages)  latest in thread

Message-ID: <43BD30D4.1030202@bayceer.uni-bayreuth.de>
Permalink:  ../43BD30D4.1030202@bayceer.uni-bayreuth.de/
Also on:    postgresql.org/message-id/43BD30D4.1030202@bayceer.uni-bayreuth.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: stefan.holzheu@bayceer.uni-bayreuth.de
  Subject: Re: like vs =
  In-Reply-To: <43BD30D4.1030202@bayceer.uni-bayreuth.de>
  References: <43BD30D4.1030202@bayceer.uni-bayreuth.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox