SQL: fix type conversion for Timestamp object typed columns (GH9085)

Closes #9085