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
MariaDB translates function LENGTH() to SQL Standard function OCTET_LENGTH().
Oracle translates function LENGTH() to SQL Standard function CHAR_LENGTH().
We'll change MariaDB so it also translates LENGTH() to CHAR_LENGTH() rather than OCTET_LENGTH() when running with sql_mode=ORACLE.
Additionally, we'll add LENGTHB() as a synonym for OCTET_LENGTH(). This synonym will be available in all sql_mode's.
Attachments
Issue Links
- is blocked by
-
MDEV-12784 Change Item_func_length::print() to display octet_length() rather than length()
- Closed
- relates to
-
MDEV-10342 Providing compatibility for basic SQL built-in functions
- Closed