From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Frank Miles <fpm(at)u(dot)washington(dot)edu> |
Cc: | <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: LIKE erratic? or unseen DB corruption? |
Date: | 2001-05-21 17:19:21 |
Message-ID: | Pine.LNX.4.30.0105211917430.757-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Frank Miles writes:
> Running 7.1(.0) on a PC running Debian Linux (potato), I have a strange situation in psql:
>
> A direct query gets appropriate rows of data:
>
> dbname=# select * from partdef where shpname = 'IDC16W';
> pn_id | class | num | mt | ver | loc_id | unit_id | subptcnt | shpname | value | descrip
> -------+-------+------+----+-----+--------+---------+----------+------------------+------------+---------
> 17 | 328 | 08X2 | 0 | 0 | | | 1 | IDC16W | Header-8x2 |
> 11 | 323 | 08X2 | 0 | 0 | | | 1 | IDC16W | Header-8x2 |
>
> ...while the very same query (substituting LIKE for the '=' sign) gets nothing!?
>
> dbname=# select * from partdef where shpname LIKE 'IDC16W';
> pn_id | class | num | mt | ver | loc_id | unit_id | subptcnt | shpname | value | descrip
> -------+-------+-----+----+-----+--------+---------+----------+---------+-------+---------
> (0 rows)
This is supposed to work. What data type is column "shpname"? Did you
configure with locale, and if so, what locale are you running under? Is
there an index on "shpname"?
--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter
From | Date | Subject | |
---|---|---|---|
Next Message | Abhimanyu_Bhola | 2001-05-21 17:24:00 | how to install postgresql |
Previous Message | Peter Eisentraut | 2001-05-21 17:17:23 | Re: psql shell problem |