General Bug Report: prefix stringsearch doesn't return results - Mailing list pgsql-bugs

From Unprivileged user
Subject General Bug Report: prefix stringsearch doesn't return results
Date
Msg-id 199905281132.HAA54212@hub.org
Whole thread Raw
Responses Re: [BUGS] General Bug Report: prefix stringsearch doesn't return results
List pgsql-bugs
============================================================================
                        POSTGRESQL BUG REPORT TEMPLATE
============================================================================


Your name               : Josef Moser
Your email address      : jmoser@iicm.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:
---------


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


pgsql-bugs by date:

Previous
From: "Michael G. Reed"
Date:
Subject: ...
Next
From: Oleg Bartunov
Date:
Subject: Re: [BUGS] General Bug Report: prefix stringsearch doesn't return results