Re: [HACKERS] minor bug in 7.0: casting - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] minor bug in 7.0: casting
Date
Msg-id 29796.951889334@sss.pgh.pa.us
Whole thread Raw
In response to minor bug in 7.0: casting  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
The Hermit Hacker <scrappy@hub.org> writes:
> Another one here ...

> From: Don Baccus <dhogaza@pacifier.com>
> donb=# create table foo(c char(2), v varchar(2));
> CREATE
> donb=# select * from foo where c::varchar = v::varchar;
> ERROR:  Unable to identify an operator '=' for types 'bpchar' and 'varchar'
>         You will have to retype this query using an explicit cast

As of current sources:

regression=# create table foo(c char(2), v varchar(2));
CREATE
regression=# select * from foo where c::varchar = v::varchar;c | v
---+---
(0 rows)

I thought I fixed that before 7.0beta1, but am not feeling eager to
rummage through cvs logs to prove it.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] Poll: Databases for Linux
Next
From: "Hiroshi Inoue"
Date:
Subject: RE: [HACKERS] Bug report for 7.0beta1 in 'CREATE FUNCTION...'