Closed pawandubey closed 2 years ago
We also just did a version of this :nomouth: and had to change it in a few more places:
Happy for this to go in as a separate PR though as we hone in on MySQL 8.0 compatibility.
Aah, I think your commit seems more comprehensive. It would make sense to keep all the compatibility changes together. Will close this 🙏🏼
You can also enclose it with the back ticks `.
lag
is a keyword in MySQL 8, so using it as a column name creates syntax problems.E.g.
This is OK in MySQL 5.7:
But in MySQL 8.0+, it spits out this error:
⏯️ Try it on DB Fiddle
Ref. New keywords in MySQL 8