Skip to content
  • Oystein Grovlen's avatar
    869d1242
    Bug#21619780: TABLE HINTS ARE LOST IN NORMALIZED PRINT OF STATEMENTS · 869d1242
    Oystein Grovlen authored
                  BEFORE RESOLVE
    
    Post-parse query rewrite plugin depends on obtained parsed queries in
    normalized form using SELECT_LEX::print.  However, only resolved hints
    are normally included in this print.  Since, query rewrite plugin only
    parses and does not resolve queries, table and index level hints are
    not included in the normalized form.  This may cause false matches
    between patterns and incoming queries with different hints.
    
    The solution is to add query_type as parameter to Opt_hints::print()
    like many other print functions already have.  If query_type is
    QT_NORMALIZED_FORMAT, un-resolved hints will also be printed.
    869d1242
    Bug#21619780: TABLE HINTS ARE LOST IN NORMALIZED PRINT OF STATEMENTS
    Oystein Grovlen authored
                  BEFORE RESOLVE
    
    Post-parse query rewrite plugin depends on obtained parsed queries in
    normalized form using SELECT_LEX::print.  However, only resolved hints
    are normally included in this print.  Since, query rewrite plugin only
    parses and does not resolve queries, table and index level hints are
    not included in the normalized form.  This may cause false matches
    between patterns and incoming queries with different hints.
    
    The solution is to add query_type as parameter to Opt_hints::print()
    like many other print functions already have.  If query_type is
    QT_NORMALIZED_FORMAT, un-resolved hints will also be printed.
Loading