View Single Post

   
  #7 (permalink)  
Old 04-15-2008, 11:34 PM
Tom Lane
 
Posts: n/a
Default Re: [GENERAL] Empty arrays with ARRAY[]

"Brendan Jurd" <direvus@gmail.com> writes:
> So far I've only considered the '::' cast syntax suggested in the
> original proposal, e.g.:


> ARRAY[]::text[]


> I wonder whether we are also interested in catching CAST(), e.g.:


> CAST(ARRAY[] AS text[])


I think you'll find that it's just about impossible to not handle both,
because they look the same after the grammar gets done.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Reply With Quote