Opened 8 years ago
Last modified 8 years ago
#27802 closed Cleanup/optimization
Unified `datetime_*_sql` functions with others backend date/time operations. — at Initial Version
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
This is a follow up of the discussion in #24194 (see comment). datetime_extract_sql
, datetime_cast_date_sql
, datetime_cast_time_sql
, datetime_trunc_sql
functions behave differently than others date/time operations. They return sql
and params
whereas the others return just sql
. I propose to unify their behavior.
Note:
See TracTickets
for help on using tickets.