List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:December 29 2000 8:38pm
Subject:Re: MAKE_SET
View as plain text  
At 12:30 PM -0500 12/29/00, Ruben I Safir - Brooklyn Linux Solutions CEO wrote:
>Why does  SELECT MAKE_SET(1 | 4 ,'hello','nice','world');
>return hello, world.
>There is no 4th element
>
>Ruben

Set elements have numeric values that are powers of two, because they're
implemented as bit values.  1 | 4  refers to the elements in the first
and third positions.  You're not asking for the first and fourth.

-- 
Paul DuBois, paul@stripped
Thread
MAKE_SETRuben I Safir - Brooklyn Linux Solutions CEO29 Dec
  • Re: MAKE_SETPaul DuBois29 Dec