Avoid parsing "SELECT (" as function call
authorMarko Kreen <markokr@gmail.com>
Mon, 29 Jun 2009 13:32:29 +0000 (13:32 +0000)
committerMarko Kreen <markokr@gmail.com>
Mon, 29 Jun 2009 13:32:29 +0000 (13:32 +0000)
commit600789c690751699a9a6d58d938cc74867298e52
tree42e7046281491b99b4bca76c774ec18c9bb0e069
parent8734e7d28ea3455bb5d576282a1935eba8b999f6
Avoid parsing "SELECT (" as function call

Currently PL/Proxy fails to parse following statement:

  select (0*0);

As only SELECT statement is affected, fix it by explicitly checking
for that case.

In long-term, the function-call detection should be moved to parser,
thus getting rid of the hack.

Patch by Peter Eisentraut
expected/plproxy_select.out
sql/plproxy_select.sql
src/scanner.l