mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-32351: Significant slowdown with outer joins: fix embedded.
For some reason, in embedded server, a command let $a=`$query` ignores local context. Make a workaround: use SET STATEMENT to set debug_dbug in the same statement.
This commit is contained in:
@ -24,8 +24,7 @@ select
|
||||
t1.b as t1_b, t2.b as t2_b, t2.d as t2_d
|
||||
FROM t1
|
||||
LEFT JOIN t2 ON t1.b = t2.b;
|
||||
SET @old_debug=@@debug_dbug;
|
||||
SET debug_dbug='+d,analyze_print_r_unpack_ops';
|
||||
SET statement debug_dbug='+d,analyze_print_r_unpack_ops' for
|
||||
analyze
|
||||
format=json
|
||||
SELECT COUNT(*)
|
||||
|
Reference in New Issue
Block a user