Some basic datatypes and functions in oracle compatibility mode do not work
(MDEV-19162)
|
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.6 |
| Fix Version/s: | 10.6.1 |
| Type: | Technical task | Priority: | Major |
| Reporter: | Faisal Saeed (Inactive) | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Compatibility | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
This function is used to add / subtract months from a given date/datetime value. It's very similar to DATE_ADD() function in MariaDB. MariaDB: DATE_ADD(sysdate(), interval 5 months) Oracle Doc: https://docs.oracle.com/cd/B19306_01/server.102/b14200/functions004.htm |
| Comments |
| Comment by woqutech.com [ 2021-01-05 ] |
|
The patch is implement add_months funcions using Item_date_add_interval(thd, $3, $5, INTERVAL_MONTH, 0), please review the patch, thanks! |
| Comment by Michael Widenius [ 2021-02-05 ] |
|
I looked at the patch and it looks ok. |