Changes between Initial Version and Version 1 of Ticket #24959


Ignore:
Timestamp:
Jun 8, 2015, 9:17:59 PM (9 years ago)
Author:
Fred Palmer
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24959 – Description

    initial v1  
    1010
    1111{{{
    12 UPDATE `scheduling_event`
     12UPDATE `my_table`
    1313SET ...
    1414        `my_datetime` = (`my_table`.`my_datetime` + INTERVAL '-1 0:0:82800:0' DAY_MICROSECOND),
     
    2020
    2121{{{
    22 UPDATE `scheduling_event`
     22UPDATE `my_table`
    2323SET  ...
    2424`my_datetime` = (`my_table`.`my_datetime` + INTERVAL '-0 0:0:3600:0' DAY_MICROSECOND),
     
    2828In layman's terms - the two layers are not convertible in a one-to-one sense.  A `timedelta` in for the example above in Python means: '''go back one day and *add* 23 hours'''.  So some `datetime + delta` would just subtract one hour.
    2929
    30 In MySQL, however, "INTERVAL '-1 0:0:82800:0' DAY_MICROSECOND)" means: '''add a negative one day and 23 hours'''.
     30In MySQL, however, ''"INTERVAL '-1 0:0:82800:0' DAY_MICROSECOND)"'' means: '''add a negative one day and 23 hours'''.
Back to Top