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
Right now, the INTO is placed at the end of the last SELECT line.
This makes it quite hard to see.
When parsing the commands, I see SELECT but nothing that signals that this will create or modify a table. In fact, when I remove the INTO name, the formatting does not change.
I suggest to place the INTO on a new line to give it more visibility.
Currently:
SELECT
r.*,
nrm.idx INTO parking_driveways
FROM
_parking_roads r
JOIN _parking_node_road_mapping nrm ONr.osm_id=nrm.way_idJOIN parking_intersections i ONnrm.node_id=i.node_idWHEREi.service_degree>0ANDi.degree<>i.service_degreeANDr.is_service;
Improved:
SELECT
r.*,
nrm.idx
INTO parking_driveways
FROM
_parking_roads r
JOIN _parking_node_road_mapping nrm ONr.osm_id=nrm.way_idJOIN parking_intersections i ONnrm.node_id=i.node_idWHEREi.service_degree>0ANDi.degree<>i.service_degreeANDr.is_service;
Why do you want this feature?
I consider the INTO even more important than the SELECT but is has a lot less visibility ATM.
Interesting enough the Github code highlighting does not recognize INTO either…
The text was updated successfully, but these errors were encountered:
The current formatter cannot handle INTO. I tried a different formatter which has other issues.
Workaround: Add a comment to force a new line.
sql-formatter-org/sql-formatter#864 (comment)
Uh oh!
There was an error while loading. Please reload this page.
Describe the Feature
Right now, the
INTO
is placed at the end of the lastSELECT
line.This makes it quite hard to see.
When parsing the commands, I see SELECT but nothing that signals that this will create or modify a table. In fact, when I remove the
INTO name
, the formatting does not change.I suggest to place the INTO on a new line to give it more visibility.
Currently:
Improved:
Why do you want this feature?
I consider the
INTO
even more important than theSELECT
but is has a lot less visibility ATM.Interesting enough the Github code highlighting does not recognize INTO either…
The text was updated successfully, but these errors were encountered: