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

View with SELECT with LIKE and BETWEEN is created with invalid structure

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.2
    • 10.2
    • Views
    • None

    Description

      CREATE OR REPLACE VIEW v AS SELECT ('foo' LIKE 'bar') BETWEEN 0 AND 1;
      SELECT * FROM v;
       
      # Cleanup
      DROP VIEW v;
      

      10.2 27ea2963fc

      mysqltest: At line 2: query 'SELECT * FROM v' failed: 1064: 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 'between 0 and 1 AS `('foo' LIKE 'bar') BETWEEN 0 AND 1`' at line 1
      

      Also reproducible on 10.3.
      Not reproducible on 5.5-10.1, MySQL 5.6, 5.7.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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