I use SQL Anywhere Database. When I add one second to 00:00:00, it becomes 12:00:01 AM. In my C++ code end, it crashes saying it's an invalid time.
select top 1 DATEPART(HOUR, trans ),trans, DATEADD(second, 1, trans ),CAST('2015-01-01 00:00:01' AS DATETIME) AS LedgerDateTime from pay
Why does it behave like this?