Closed Bug 602165 Opened 15 years ago Closed 15 years ago

Use date math functions (sql_date_math) instead of sql_interval

Categories

(Bugzilla :: Database, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.2

People

(Reporter: mkanat, Assigned: mkanat)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Both MS-SQL and SQLite do not support the normal "INTERVAL" system for adding dates. So, instead of having a sql_interval function, we should have a sql_date_math function that does addition and subtraction of intervals from dates.
Attached patch v1Splinter Review
This was actually a lot simpler than I expected.
Assignee: database → mkanat
Status: NEW → ASSIGNED
Attachment #481177 - Flags: review?(glob)
Attachment #481177 - Flags: review?(glob) → review+
Flags: approval+
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/ modified duplicates.cgi modified sanitycheck.cgi modified userprefs.cgi modified whine.pl modified Bugzilla/DB.pm modified Bugzilla/Token.pm modified Bugzilla/User.pm modified Bugzilla/Auth/Persist/Cookie.pm modified Bugzilla/DB/Mysql.pm modified Bugzilla/DB/Oracle.pm modified Bugzilla/DB/Pg.pm modified contrib/sendunsentbugmail.pl Committed revision 7522.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Summary: Use date math functions (sql_date_math?) instead of sql_interval → Use date math functions (sql_date_math) instead of sql_interval
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: