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

Error after using SQL_NO_CACHE clause with brackets

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.4(EOL)
    • 10.4(EOL)
    • None
    • None

    Description

      create table t1 (a int);
      insert into t1 values (1),(2),(3),(4),(5);
      select sql_no_cache * from t1 order by a limit 1; 
      (select sql_no_cache * from t1 order by a) limit 1; #error
      

      MariaDB [test]> select sql_no_cache * from t1 order by a limit 1; #
      +------+
      | a    |
      +------+
      |    1 |
      +------+
      1 row in set (0.000 sec)
       
      MariaDB [test]> (select sql_no_cache * from t1 order by a) limit 1;
      ERROR 1234 (42000): Incorrect usage/placement of 'SQL_NO_CACHE'
      

      Attachments

        Activity

          People

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