Hi, I wanted to let you know that to let Postgresql work correctly with datetime fields as SQL Server does, I had to override the current PostgreSqlDateTimeConverter
in the following way:
public class PostgreSqlDateTimeExplicitConverter : ServiceStack.OrmLite.PostgreSQL.Converters.PostgreSqlDateTimeConverter
{
public override string ToQuotedString(Type fieldType, object value)
{
return $ "{base.ToQuotedString(fieldType, value)}::timestamp";
}
}
That because quoted datetime
literals are not implicitly converted in postgresql like it happen in SQL Server, so I had a lot of type mismatch errors with postgre. Do you see anything wrong? Do you think you could benefit from this implementation?