Re:Polish trains lock up when serviced in third-party workshops
by lstamour on Tuesday December 05, 2023 @01:25PM
(#38534915)
In case anyone is confused, the problem is that dates loop, such that moy=1, dom=1, year=2023 will not match despite being greater than Sept 1, 2022. Technically, then, if you wanted this logic to work you would have to add a second “or” clause that handles the edges missed, e.g. (moy >= 9 AND year = 2022) OR (year > 2022) though you would need a different edge case if your dom wasn’t 1. The easier approach, of course, is to just compare dates or timestamps directly.
Re:Polish trains lock up when serviced in third-party workshops
by CryptoBanker on Tuesday December 05, 2023 @12:46PM
(#38534302)
What good reason is there for hard coding dates that shutdown trains?
Re:Polish trains lock up when serviced in third-party workshops
by thaumasiotes on Tuesday December 05, 2023 @01:22PM
(#38534879)
That's when the compressor's going to fail, obviously. ;D
I had a recently "senior" dev give me a SQL query with similar where clause, when asked to query data after Sept 1, 2022 (where moy >= 9 and dom => 1 and year => 2022)