Repository navigation
Commit f1ca44b
committed
Reject INTERVAL on a partial operand
The grammar nests "op bitExpr" to the right, regardless of operator
precedence. In "1 + d + INTERVAL 1 DAY", the interval was applied to "d"
only, while MySQL applies it to "1 + d".
Reject an interval in such a nested operand, and suggest parentheses.
The rewritten fold also no longer duplicates translate_sequence(), and
the docblock no longer claims that INTERVAL is the only "bitExpr" form
that SQLite can't run.1 parent d71ed83 commit f1ca44b
3 files changed
Lines changed: 67 additions & 35 deletions
File tree
- packages/mysql-on-sqlite
- src/sqlite
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4936 | 4936 | | |
4937 | 4937 | | |
4938 | 4938 | | |
4939 | | - | |
4940 | | - | |
4941 | | - | |
4942 | | - | |
4943 | | - | |
| 4939 | + | |
| 4940 | + | |
| 4941 | + | |
| 4942 | + | |
4944 | 4943 | | |
4945 | 4944 | | |
4946 | 4945 | | |
4947 | 4946 | | |
4948 | 4947 | | |
4949 | 4948 | | |
4950 | | - | |
4951 | | - | |
4952 | | - | |
4953 | | - | |
| 4949 | + | |
| 4950 | + | |
| 4951 | + | |
| 4952 | + | |
4954 | 4953 | | |
4955 | 4954 | | |
4956 | | - | |
4957 | | - | |
4958 | | - | |
4959 | | - | |
4960 | | - | |
4961 | | - | |
4962 | | - | |
4963 | | - | |
4964 | | - | |
4965 | | - | |
4966 | | - | |
4967 | | - | |
4968 | | - | |
4969 | | - | |
4970 | | - | |
4971 | | - | |
4972 | | - | |
4973 | | - | |
4974 | | - | |
4975 | | - | |
4976 | | - | |
| 4955 | + | |
| 4956 | + | |
| 4957 | + | |
| 4958 | + | |
| 4959 | + | |
| 4960 | + | |
| 4961 | + | |
| 4962 | + | |
| 4963 | + | |
| 4964 | + | |
| 4965 | + | |
| 4966 | + | |
| 4967 | + | |
| 4968 | + | |
| 4969 | + | |
4977 | 4970 | | |
4978 | | - | |
4979 | | - | |
4980 | | - | |
4981 | | - | |
| 4971 | + | |
| 4972 | + | |
| 4973 | + | |
| 4974 | + | |
| 4975 | + | |
| 4976 | + | |
| 4977 | + | |
| 4978 | + | |
| 4979 | + | |
| 4980 | + | |
| 4981 | + | |
| 4982 | + | |
| 4983 | + | |
| 4984 | + | |
| 4985 | + | |
| 4986 | + | |
| 4987 | + | |
| 4988 | + | |
4982 | 4989 | | |
4983 | | - | |
| 4990 | + | |
4984 | 4991 | | |
4985 | 4992 | | |
4986 | 4993 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1060 | 1060 | | |
1061 | 1061 | | |
1062 | 1062 | | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1063 | 1082 | | |
1064 | 1083 | | |
1065 | 1084 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1741 | 1741 | | |
1742 | 1742 | | |
1743 | 1743 | | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
1744 | 1750 | | |
1745 | 1751 | | |
1746 | 1752 | | |
| |||
0 commit comments