You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A LIMIT parameter on a parenthesised part of a set operation is not applied to that part #3139
alasql('CREATE TABLE e1 (a INT); INSERT INTO e1 VALUES (1),(2),(3),(4)');alasql('CREATE TABLE e2 (a INT); INSERT INTO e2 VALUES (5),(6),(7)');alasql('(SELECT COLUMN a FROM e1 LIMIT 2) UNION ALL (SELECT a FROM e2 LIMIT 1)');alasql('(SELECT COLUMN a FROM e1 LIMIT 2) UNION ALL (SELECT a FROM e2 LIMIT ?)',[1]);
It gives [1, 2, 5] with LIMIT 1 and [1, 2] with LIMIT ?.
Activity