Details
-
Technical task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.3(EOL)
-
10.2.2-3, 10.2.2-1, 10.2.2-2, 10.2.2-4, 10.1.18
Description
The concatenation operator || in Oracle skips all NULL arguments and returns the result of concatenation of non-NULL arguments.
NULL is returned only if all arguments were NULL.
Under terms of this task we'll make the || operator work in Oracle style when sql_mode is ORACLE.
Note, the function CONCAT won't be changed by this task.
There is a contributed patch from Jérôme Brauge implementing this feature:
https://lists.launchpad.net/maria-developers/msg10288.html
It adds a new flag MODE_CONCAT_NULL_YIELDS_NULL_OFF.
We'll probably won't add the flag and just perform the Oracle style concatenation when sql_mode & MODE_ORACLE is set.
Attachments
Issue Links
- is blocked by
-
MDEV-11848 Automatic statement repreparation changes query semantics
- Closed
- is duplicated by
-
MDEV-11516 Support of opérator || for string concatenation
- Closed
- relates to
-
MDEV-12143 sql_mode=ORACLE: Make the CONCAT function ignore NULL arguments
- Closed
-
MDEV-10574 sql_mode=ORACLE: IS NULL and empty strings
- Open