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

Wrong result with C style comment inside executable comment in mariadb client

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 12.2(EOL), 12.3, 12.0.2
    • 12.3
    • Scripts & Clients
    • None

    Description

      SELECT 1 /*! +  1 /*aa*/ +1 */;
      --exec $MYSQL -e "SELECT 1 /*! +  1 /*aa*/ +1 */;"
      

      SELECT 1 /*! +  1 /*aa*/ +1 */;
      1  +  1 /*aa*/ +1
      3
      1  +  1
      2
      

      on versions 11.8 and before - syntax error:

      MariaDB [test]>  SELECT 1 /*! +1 /*a*/ */;
      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

              alice Alice Sherepa
              alice Alice Sherepa
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.