Files
MariaDB/sql
Galina Shalygina dffe3d1fb2 MDEV-35910 Conditions with SP local variables are not pushed into derived table
This bug prevented building conditions that could be pushed into a derived
table if the derived table was used in a query of a stored procedure and
the conditions contained local variables of the procedure. This could lead
to a slow execution of the procedure.
Also in some cases the bug prevented building conditions that could be
pushed from the HAVING condition into the WHERE condition of a query if
the conditions to be built used local variables of a stored procedure.

To failure to build such pushable conditions was due to lack of a proper
implementation of the virtual method to copy items for the objects of the
class Item_splocal.

Approved by Igor Babaev <igor@mariadb.com>
who had to change the original fix that just added the regular copying of
the nodes of the Item_splocal class to take into account the wrappers
do_get_copy() and do_build_clone() introduced after the fix had been
prepared. He also changed the test case to demonstrate that the fix
was really needed for pushdown from HAVING into WHERE.
2025-01-26 20:42:17 -08:00
..
2024-10-28 15:29:10 +01:00
2025-01-14 18:56:13 +03:00
2025-01-14 18:56:13 +03:00
2024-11-23 08:14:22 -07:00
2025-01-26 16:15:46 +01:00
2024-11-23 08:14:22 -07:00
2024-11-23 08:14:22 -07:00
2024-11-23 08:14:22 -07:00
2024-12-04 18:22:31 +03:00
2024-11-23 08:14:22 -07:00
2024-11-23 08:14:22 -07:00
2024-11-23 08:14:22 -07:00
2025-01-26 16:15:46 +01:00
2024-11-23 08:14:22 -07:00
2024-11-23 08:14:22 -07:00
2024-11-23 08:14:22 -07:00
2024-11-23 08:14:22 -07:00
2024-11-23 08:14:23 -07:00
2024-11-23 08:14:22 -07:00
2024-11-23 08:14:23 -07:00
2025-01-07 16:46:43 +01:00
2024-11-23 08:14:22 -07:00
2025-01-26 16:15:46 +01:00
2024-11-23 08:14:22 -07:00