Uploaded image for project: 'Percona Server'
  1. Percona Server
  2. PS-4781

sql_yacc.yy uses SQLCOM_SELECT instead of SQLCOM_SHOW_XXXX_STATS

    Details

    • Type: New Feature
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: 5.6.40-84.0, 5.5.60-38.12, 5.7.22-22
    • Component/s: None
    • Labels:

      Description

      We should use:

        SQLCOM_SHOW_USER_STATS,
        SQLCOM_SHOW_TABLE_STATS,
        SQLCOM_SHOW_INDEX_STATS,
        SQLCOM_SHOW_CLIENT_STATS,
        SQLCOM_SHOW_THREAD_STATS,
      

      in sql_yacc.yy instead of SQLCOM_SELECT at:

              | CLIENT_STATS_SYM wild_and_where
                {
                 LEX *lex= Lex;
                 Lex->sql_command= SQLCOM_SELECT;
                 if (prepare_schema_table(YYTHD, lex, 0, SCH_CLIENT_STATS))
                   MYSQL_YYABORT;
                }
              | USER_STATS_SYM wild_and_where
                {
                 LEX *lex= Lex;
                 lex->sql_command= SQLCOM_SELECT;
                 if (prepare_schema_table(YYTHD, lex, 0, SCH_USER_STATS))
                   MYSQL_YYABORT;
                }
              | THREAD_STATS_SYM wild_and_where
                {
                 LEX *lex= Lex;
                 Lex->sql_command= SQLCOM_SELECT;
                 if (prepare_schema_table(YYTHD, lex, 0, SCH_THREAD_STATS))
                   MYSQL_YYABORT;
                }
              | TABLE_STATS_SYM wild_and_where
                {
                 LEX *lex= Lex;
                 lex->sql_command= SQLCOM_SELECT;
                 if (prepare_schema_table(YYTHD, lex, 0, SCH_TABLE_STATS))
                   MYSQL_YYABORT;
                }
              | INDEX_STATS_SYM wild_and_where
                {
                 LEX *lex= Lex;
                 lex->sql_command= SQLCOM_SELECT;
                 if (prepare_schema_table(YYTHD, lex, 0, SCH_INDEX_STATS))
                   MYSQL_YYABORT;
                }
      

        Smart Checklist

          Attachments

            Activity

              People

              • Assignee:
                przemyslaw.skibinski Przemyslaw Skibinski
                Reporter:
                przemyslaw.skibinski Przemyslaw Skibinski
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 7 hours
                  7h