Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-10142 PL/SQL parser
  3. MDEV-12783

sql_mode=ORACLE: Functions LENGTH() and LENGTHB()

    XMLWordPrintable

Details

    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

          Activity

            People

              bar Alexander Barkov
              bar Alexander Barkov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 0.5d
                  0.5d
                  Remaining:
                  Time Spent - 0.25d Remaining Estimate - 0.25d
                  0.25d
                  Logged:
                  Time Spent - 0.25d Remaining Estimate - 0.25d
                  0.25d

                  Git Integration

                    Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.