BUG #1590: Comparison Operation with Strings

Поиск
Список
Период
Сортировка
От Michaela
Тема BUG #1590: Comparison Operation with Strings
Дата
Msg-id 20050407150435.3FE14F0D1A@svr2.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #1590: Comparison Operation with Strings  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: BUG #1590: Comparison Operation with Strings  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      1590
Logged by:          Michaela
Email address:      rambo1503-postgresql@yahoo.de
PostgreSQL version: 8.0.1
Operating system:   SuSE Linux 9.1
Description:        Comparison Operation with Strings
Details:

Hello!

conditions:
-----------
Our database is defined with SQL_ASCII. We also tested Latin1.

CREATE TABLE test(feld varchar(100))
INSERT INTO test VALUES ('ABC');
INSERT INTO test VALUES ('?');
INSERT INTO test VALUES ('100');
INSERT INTO test VALUES ('B');
INSERT INTO test VALUES ('? ABC');
INSERT INTO test VALUES ('Z');

We want to use e.g. the following conditions:

1.example
---------
select * from test where field>='?' and field<'A'

result:
?
100

But it doesn`t find the '? ABC'. And '100' is wrong.

This command should give me this output:
?
? ABC

2.example
---------
select * from test where feld>='?' and feld<'@'

result:
?

It doesn`t find the '? ABC'.

This command should give me this output:
?
? ABC

3.example
---------
select * from test where feld>='A' and feld<'C'

result:
ABC
B
? ABC

the correct result would be:
ABC
B

We tested it with PostgreSQL version 7.2.1. There it works.

Kind Regards
Michaela

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Gabor Berenyi"
Дата:
Сообщение: BUG #1592: "with hold" cursor problem
Следующее
От: "Lionel Bouton"
Дата:
Сообщение: BUG #1588: pg_autovacuum sleep parameter overflow