Add parenthesis in macro definitions to prevent order of operation problems.
When macro is expanded in an expression like ~QPLAN_QC_NO (e.g. in the Query_cache::send_result_to_client() function in sql/sql_cache.cc) then without the parenthesis the expression will be evaluated to a wrong value.
Showing
Please register or sign in to comment