Re: [HACKERS] string || NULL ambiguity

2003-03-20 Thread Thomas T. Thai
>> On Wed, 2003-03-19 at 20:32, Oleg Bartunov wrote: >>> On Wed, 19 Mar 2003, Alvaro Herrera wrote: >>> > stringA||COALESCE(NULL, '') >>> > >>> >>> we don't know in advance if it's NULL or not. >> >> Right, that's the point of COALESCE: the first non-NULL argument is >> returned -- so if the first

Re: [HACKERS] string || NULL ambiguity

2003-03-20 Thread Thomas T. Thai
> On Wed, 2003-03-19 at 20:32, Oleg Bartunov wrote: >> On Wed, 19 Mar 2003, Alvaro Herrera wrote: >> > stringA||COALESCE(NULL, '') >> > >> >> we don't know in advance if it's NULL or not. > > Right, that's the point of COALESCE: the first non-NULL argument is > returned -- so if the first argument

Re: [HACKERS] string || NULL ambiguity

2003-03-19 Thread Oleg Bartunov
On Wed, 19 Mar 2003, Alvaro Herrera wrote: > On Wed, Mar 19, 2003 at 10:26:05PM +0300, Oleg Bartunov wrote: > > > we have a little problem in new version of tsearch we're currently > > working. We've implemented concatenation operation for txtidx type > > and treat concatenation with NULL as NULL