|
|
|
|
|
by eyelidlessness
2080 days ago
|
|
Also while we're picking on other DBs, another fun WTF I've encountered (this time in an external system): SQL Server stores timestamps to ~1/300th of a second resolution. This[1] StackOverflow question describes different behavior than I saw (it rounded differently), so apparently it's not even consistent. I'd assume across versions? IDK, never had time to look too deeply into this one either. [1]: https://stackoverflow.com/questions/715432/why-is-sql-server... |
|
As long as I remember, the documentation for DATETIME [0] has had a disclaimer at the top to not use it, but use DATETIME2 instead.
Of course, that doesn't excuse older systems, but this is an issue that can be avoided for new work.
[0] https://docs.microsoft.com/en-us/sql/t-sql/data-types/dateti...