-
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.
Oystein Grovlen authoredBEFORE 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