General Bug Report: prefix stringsearch doesn't return results

From: Unprivileged user <nobody>
To: pgsql-bugs(at)postgresql(dot)org
Subject: General Bug Report: prefix stringsearch doesn't return results
Date: 1999-05-28 11:32:22
Message-ID: 199905281132.HAA54212@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


============================================================================
POSTGRESQL BUG REPORT TEMPLATE
============================================================================

Your name : Josef Moser
Your email address : jmoser(at)iicm(dot)edu

Category : runtime: back-end: SQL
Severity : serious

Summary: prefix stringsearch doesn't return results

System Configuration
--------------------
Operating System : Linux 2.2.7 SUSE6.0; OSF1 V4.0 564 alpha

PostgreSQL version : snapshot from: ftp.postgresql.org (May 28 03:06) and (May 26 03:06)

Compiler used : Linux: egcs-2.91.60 ; dec: cc (Digital UNIX Compiler Driver 3.11)

Hardware:
---------
Pentium II (Deschutes), 512 MB Ram: Linux xfind 2.2.7 #4 SMP Tue May 4 14:21:58 MEST 1999 i686 unknown and
DEC ALPHA 248MB Ram : OSF1 www V4.0 564 alpha

Versions of other tools:
------------------------
linux:GNU Make version 3.76.1, flex version 2.5.4
dec:GNU Make version 3.74 ,flex version 2.5.4

--------------------------------------------------------------------------

Problem Description:
--------------------
the command SELECT * FROM test_t WHERE word LIKE 'hello%';
returns no results even when there are some hellos in the
database.

--------------------------------------------------------------------------

Test Case:
----------
CREATE TABLE bug_t(word TEXT);
INSERT INTO bug_t VALUES('hello1');
INSERT INTO bug_t VALUES('hello2');
SELECT * FROM bug_t where word like 'hello%';
-- returns 0 results.....
SELECT * FROM bug_t where word like '%hello%';
-- returns 2 results

--------------------------------------------------------------------------

Solution:
---------

--------------------------------------------------------------------------

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Oleg Bartunov 1999-05-28 11:52:39 Re: [BUGS] General Bug Report: prefix stringsearch doesn't return results
Previous Message Michael G. Reed 1999-05-27 21:43:55