Fixed a bug in Scalar stuff around dateTime on Sqlite.