mirror of
https://github.com/MariaDB/server.git
synced 2025-11-08 00:28:29 +03:00
Currently the Last_query_cost session status variable shows only the cost of a single flat subselect. For complex queries (with subselects or unions etc) Last_query_cost is not valid as it was showing the cost for the last optimized subselect. Fixed by reseting to zero Last_query_cost when the complete cost of the query cannot be determined. Last_query_cost will be non-zero only for single flat queries.
4.4 KiB
4.4 KiB