Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Queries are incorrectly joined back together resulting in syntax errors #55

Open
joereynolds opened this issue Jan 23, 2019 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@joereynolds
Copy link
Owner

Steps to reproduce

With this query

  SELECT AVG(Price), Manufacturer
      FROM Products
GROUP BY Manufacturer;

It will fail as it is joined back together as

 SELECT AVG(Price), Manufacturer      FROM ProductsGROUP BY Manufacturer;

Whereas it works fine with
(Note the space before GROUP

  SELECT AVG(Price), Manufacturer
      FROM Products
 GROUP BY Manufacturer;

It will be joined back together as

 SELECT AVG(Price), Manufacturer      FROM Products GROUP BY Manufacturer;

Actual behaviour

  SELECT AVG(Price), Manufacturer
      FROM Products
GROUP BY Manufacturer;

is joined as

 SELECT AVG(Price), Manufacturer      FROM ProductsGROUP BY Manufacturer;

Expected behaviour

The query is joined back as

 SELECT AVG(Price), Manufacturer      FROM Products GROUP BY Manufacturer;
@joereynolds joereynolds added the bug Something isn't working label Jan 23, 2019
@joereynolds
Copy link
Owner Author

Information

It looks like the logic for this is in the putContentIntoLines function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant