Closed
Description
With the sql-parser version 5.5.0 that's included with my phpMyAdmin, I'm looking at the example WITH...AS statement:
with foo as ( select * from products where bar in ('foo', 'bar'));
This passes through the linter without errors.
Which when run through the highlighter provides this:
WITH
xm_gl AS(
SELECT
*
FROM
products
WHERE
pname IN('foo', 'bar')
);
And that now gives an error through the linter:
#1: Unexpected token. (near ")" at position 107)
It seems this is probably incorrect or improperly handled.