View Single Post

   
  #2 (permalink)  
Old 04-15-2008, 11:34 PM
Peter Eisentraut
 
Posts: n/a
Default Re: strange bison, cannot remove reduce

Pavel Stehule wrote:
> I am playing with methods. It's +/- function with first hidden arguments.
>
> example: sin(10) ~ (10).sin() is equivalent.
> legal is substring('aaaa',1,3).upper() too etc
>
> I spent some time with bison (without success).


I don't think you can actually resolve this in the parser. For example

a.b(x)

could be, call function b(x) in schema a, or call function b(a, x).

You need to resolve this later, with catalog access, it appears.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote