pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Pascal Tufenkji <ptufenkji@usj.edu.lb>
To: pgsql-admin@postgresql.org
Subject: Is it a bug ?
Date: Tue, 25 Apr 2006 12:02:16 +0300
Message-ID: <200604250905.k3P950IQ010685@Citrus.usj.edu.lb> (raw)
In-Reply-To: <13660.1145949556@sss.pgh.pa.us>

Hi,

I just noticed a bug in PostgreSQL 7.3.2

I don't know if it exists in other versions

 

If I have a UNICODE database and I make the following query

 

SELECT * FROM table where code like 'abcz%';

Or 

SELECT * FROM table where code like 'abcz_';

(or anything that ends with z% or z_)

It gives the following error :

ERROR:  Invalid UNICODE character sequence found (0xc000)

 

Other queries like 

SELECT * FROM table where code ilike 'abcz%';

SELECT * FROM table where code like '%abcz%';

Or the same query but in an SQL_ASCII database don't give the same error

 

Is it a bug in Postgres ????

 

I'd appreciate an explanation

 

Thx

Pascal

 

 

view thread (6+ messages)  latest in thread

Message-ID: <200604250905.k3P950IQ010685@Citrus.usj.edu.lb>
Permalink:  ../200604250905.k3P950IQ010685@Citrus.usj.edu.lb/
Also on:    postgresql.org/message-id/200604250905.k3P950IQ010685@Citrus.usj.edu.lb

 · 

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: ptufenkji@usj.edu.lb
  Subject: Re: Is it a bug ?
  In-Reply-To: <200604250905.k3P950IQ010685@Citrus.usj.edu.lb>
  References: <13660.1145949556@sss.pgh.pa.us> <200604250905.k3P950IQ010685@Citrus.usj.edu.lb>

* 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