Details
-
Technical task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.3(EOL)
Description
Earlier we made the concatenation operator and functions SUBSTR, TRIM, LTRIM, RTRIM translate empty results to NULL when running with sql_mode=ORACLE.
Under terms of this task we'll change LPAD and RPAD to do the same.
SELECT
|
CASE |
WHEN LPAD('a', 0) IS NULL THEN 'IS NULL' |
ELSE 'IS NOT NULL' |
END AS c |
FROM DUAL; |
C
|
-----------
|
IS NULL
|
SELECT
|
CASE |
WHEN RPAD('a', 0) IS NULL THEN 'IS NULL' |
ELSE 'IS NOT NULL' |
END AS c |
FROM DUAL; |
C
|
-----------
|
IS NULL
|
Attachments
Issue Links
- relates to
-
MDEV-15664 sql_mode=ORACLE: Make TRIM return NULL instead of empty string
- Closed