Re: Concatenation Snafu

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Chad Thompson" <chad(at)weblinkservices(dot)com>
Cc: "Thomas Good" <tomg(at)sqlclinic(dot)net>, "Postgres SQL List" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Concatenation Snafu
Date: 2003-03-25 23:34:45
Message-ID: 1434.1048635285@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Chad Thompson" <chad(at)weblinkservices(dot)com> writes:
> The assumtion that char and varchar can be compared is gone.

The real problem is that we have too dang many || operators; there's
no reason to have char||char, varchar||varchar, *and* text||text.
The parser can't decide which of the first two to prefer, so it
punts. If we got rid of both and left only text||text, all would be
well.

Thomas is wrong to claim that this used to behave differently; all
versions I have handy to test, back to 7.0, give the same error.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Thomas Good 2003-03-25 23:47:56 Re: Concatenation Snafu
Previous Message Thomas Good 2003-03-25 23:30:17 Re: Concatenation Snafu