Unlike Time, ODBCTIME doesn't support fractional seconds. ODBCTIME>>second: performs an implicit rounding as part of primitive failure handling; this results in an invalid ODBCTIME instance when seconds are >= 59.5.
Can be fixed by either truncating or rounding the Time to whole second resolution before conversion. Truncating feels more natural and is simpler; I'll submit a PR with this change.
Unlike Time, ODBCTIME doesn't support fractional seconds.
ODBCTIME>>second:
performs an implicit rounding as part of primitive failure handling; this results in an invalid ODBCTIME instance when seconds are >= 59.5.To Reproduce
Can be fixed by either truncating or rounding the Time to whole second resolution before conversion. Truncating feels more natural and is simpler; I'll submit a PR with this change.