Hi, I have a case statement that should compare just the date for equality, however the code considers the time as well:
Model.dateCol == func.sysdate() Another issue is this is a DATE field (therefore datetime) in an Oracle database in one environment and a DATE field (actual date) in an MSSQL database in another environment. Would the correct way to achieve this comparison across both abstractions be: cast(Model.dateCol, Date) == cast(func.sysdate(), Date) Thanks, jlc -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy/15a73018-1b07-453b-b545-d4aad6687df4n%40googlegroups.com.