-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: prevent line splitting on between's and, closes #124
- Loading branch information
Showing
8 changed files
with
140 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
select | ||
radio, | ||
mcc, | ||
net as mnc, | ||
area as lac, | ||
cell % 65536 as cid, | ||
cell / 65536 as rnc, | ||
cell as long_cid, | ||
lon, | ||
lat | ||
from | ||
towershift | ||
where | ||
radio != 'CDMA' | ||
and mcc between 200 and 799 and net between 1 and 999 and area between 0 and 65535 | ||
and cell between 0 and 268435455 and lon between -180 and 180 | ||
and lat between -90 and 90 | ||
)))))__SQLFMT_OUTPUT__((((( | ||
select | ||
radio, | ||
mcc, | ||
net as mnc, | ||
area as lac, | ||
cell % 65536 as cid, | ||
cell / 65536 as rnc, | ||
cell as long_cid, | ||
lon, | ||
lat | ||
from towershift | ||
where | ||
radio != 'CDMA' | ||
and mcc between 200 and 799 | ||
and net between 1 and 999 | ||
and area between 0 and 65535 | ||
and cell between 0 and 268435455 | ||
and lon between -180 and 180 | ||
and lat between -90 and 90 |
9 changes: 9 additions & 0 deletions
9
tests/data/unit_tests/test_line/test_is_the_and_after_the_between_operator.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
where | ||
radio != 'CDMA' | ||
and mcc between 200 and 799 | ||
and net between 1+1+1+1+1+1+1+1+1+1+1+1+1+1+1 and 999 | ||
and area between smallest_area and biggest_area | ||
and cell between (select min(cell_number) from numbers) and ( | ||
select max(cell_number) from numbers | ||
) and lon between -180 and 180 | ||
or lat between -90 and 90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters