Opened 8 years ago
Last modified 8 years ago
#27802 closed Cleanup/optimization
Unify datetime_*_sql() methods with others backend date/time operations. — at Version 1
Reported by: | Mariusz Felisiak | Owned by: | Mariusz Felisiak |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
This is a follow up of the discussion in 24194#comment:6. datetime_extract_sql
, datetime_cast_date_sql
, datetime_cast_time_sql
, datetime_trunc_sql
methods behave differently than others date/time operations. They return sql
and params
whereas the others return just sql
. I propose to unify their behavior.
Change History (1)
comment:1 by , 8 years ago
Description: | modified (diff) |
---|---|
Has patch: | set |
Summary: | Unified `datetime_*_sql` functions with others backend date/time operations. → Unify datetime_*_sql() methods with others backend date/time operations. |
Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
PR