[MDEV-19928] sql_mode=ORACLE: Add/Subtract numbers from date Created: 2019-07-02 Updated: 2019-07-04 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | PL/SQL |
| Affects Version/s: | 10.4.6 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Wolfgang Draxler | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows |
||
| Description |
|
In the ORACLE-Mode there is a problem with subtract / add from dates to sysdate e.g. in Oracle
I get the value, when today is the 02.07.2019:
When I try this in MariaDB
I get the text/number
correct is
The reason is that in Oracle subtractions the day is subtracted and not then seconds. |