andialbrecht / sqlparse

A non-validating SQL parser module for Python
BSD 3-Clause "New" or "Revised" License
3.76k stars 700 forks source link

Does not correctly identify TOP from MSSQL #703

Open aragilar opened 1 year ago

aragilar commented 1 year ago

MSSQL has queries of the form SELECT TOP 10 "name", "id" from some_table, but TOP is misparsed as an identifer rather than a keyword. Would it be possible to add support for this?