rickywu-posh / php-sql-parser

Automatically exported from code.google.com/p/php-sql-parser
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

DISTINCT Syntax in COUNT #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Parse - Create : SELECT COUNT(DISTINCT BLA) FROM FOO

What is the expected output? What do you see instead?
expect
SELECT COUNT(DISTINCT BLA) FROM FOO

get 
 unknow expression type bla bla in processSELECT because of missing processing func
also the innards are beeing ,-concatinated which is not expected for such a 
DISTINCT

What version of the product are you using? On what operating system?
lastest svn

Please provide any additional information below.
a better error handling (instead of prints) would also be welcome

Original issue reported on code.google.com by patrik.p...@gmail.com on 20 Mar 2012 at 12:12

GoogleCodeExporter commented 8 years ago
Check the latest version on trunk. How would you like to see the error 
handling? Any ideas?

Original comment by pho...@gmx.de on 21 Mar 2012 at 10:23

GoogleCodeExporter commented 8 years ago
I have inserted the line number of the error within the creator. You can 
override the stop() method on your own subclass and implement another handling 
too.

Original comment by pho...@gmx.de on 22 Mar 2012 at 1:08