I'm querying DB2 on i (AS/400). A plain SELECT statement on a column with datatype of TIME returns 00:00:00, but when I use the CHAR() function it returns '24:00:00'.
I understand that 24:00:00 is a valid time, but why would CHAR() return 24 when the native TIME returs 00?