Details
-
Technical task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Incomplete
-
None
-
None
Description
Support the following basic SQL built-in functions in MariaDB:
- DECODE(exp, when, then, ...) – DONE
- NVL(exp, replacement) – DONE
- NVL2(exp1, exp2, exp3) – DONE
- TRUNC(date [,fmt])
- TO_CHAR
TO_CHAR(10)
TO_CHAR(SYSTIMESTAMP,'DDMMYYYYHH24MISSFF') - MDEV-20017
TO_CHAR(BIZ_DATE,'yyyymmdd')
- TO_DATE(str [, fmt [, 'nlsparam']])
- SYSDATE
- SYSTIMESTAMP
- USER
Note, DECODE, NVL, NVL2, SYSTIMESTAMP are not reserved keywords in Oracle, while USER and SYSDATE are.
Attachments
Issue Links
- is blocked by
-
MDEV-14012 sql_mode=Oracle: substr(): treat position 0 as position 1
- Closed
-
MDEV-20017 Implement TO_CHAR() Oracle compatible function
- Closed
- relates to
-
MCOL-4044 Built In SQL Functions not working with sql_mode=ORACLE
- Closed
-
MCOL-4587 sql_mode=ORACLE specific functions do not work with ColumnStore tables
- Closed
-
MDEV-12685 Oracle-compatible function CHR()
- Closed
-
MDEV-12783 sql_mode=ORACLE: Functions LENGTH() and LENGTHB()
- Closed
-
MDEV-13863 sql_mode=ORACLE: DECODE does not treat two NULLs as equivalent
- Closed
-
MDEV-19488 sql_mode="oracle" - add Oracle function NVL
- Closed
-
MDEV-23005 sql_mode mixture: a table with DECODE() in a virtual column refuses to work
- Open
-
MDEV-23040 sql_mode mixture: a table with TRIM() in DEFAULT refuses to INSERT
- Open