Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-17359

|| operator is not understand by "like" in Oracle

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.3.9, 10.3
    • 10.3.11
    • Parser
    • None
    • All OS

    Description

      with sql_mode=Oracle, the following query

      select * from dual where 'ab' like 'a'||'%';

      failed with
      ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '||'%'' at line 1

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              halfspawn Jérôme Brauge
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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