Re: coalesce view error

From: mikeo <mikeo(at)spectrumtelecorp(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: coalesce view error
Date: 2000-06-16 15:27:56
Message-ID: 3.0.1.32.20000616112756.00924c80@pop.spectrumtelecorp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-patches

the underlying table fields are varchars...

At 10:22 AM 6/16/00 -0400, Tom Lane wrote:
>mikeo <mikeo(at)spectrumtelecorp(dot)com> writes:
>> thanks for the patch. one of my coworkers came up with a working
>> solution:
>
>>> Hi Mike, try adding ::text before the AS...
>
>Hmm, offhand I do not see why that would work. The two fields you're
>coalescing are both type text, no? In that case the cast ought to be
>dropped out of the expression as redundant.
>
>If the fields are varchar or bpchar, then casting to text would work
>(at least in 7.0.*) because the parser would include an explicit
>RelabelType node in the stored expression...
>
> regards, tom lane
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ed Loehr 2000-06-16 15:29:27 Re: Perl interface
Previous Message Paul Miller 2000-06-16 15:12:08 Re: Perl interface

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2000-06-16 15:46:41 Re: Big 7.1 open items
Previous Message Thomas Lockhart 2000-06-16 15:11:27 Re: Big 7.1 open items