Details
Details
- Created "only the first time" and "every time" rules. Did a SELECT on their rows in the database.
- Ran migrations, got a clean bill of health from storage adjust.
- Did another SELECT on the rows, saw a faithful conversion to strings "every" and "first".
- Edited and reviewed rules, swapping them between "every" and "first".
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Branch
- herald4
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 19186 Build 25914: Run Core Tests Build 25913: arc lint + arc unit
Event Timeline
resources/sql/autopatches/20180124.herald.01.repetition.sql | ||
---|---|---|
2–5 | Shouldn't SQL comments be either /* */-style or start with a leading --? Looks like the syntax highlighter is confused as well. |
Comment Actions
I think the highlighter just implements an incomplete ruleset, since the MySQL documentation says this is OK and even lists it first:
Admittedly, these aren't super common. One soft argument for # is maybe that /* ... */ has tons and tons of spooky behavior where it's used to hide parts of statements from different versions of MySQL, and I think the degenerate form /*! .. */ is a special comment which means "this is not a comment".
I think we use /* more often though so I'll swap 'em.