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:
@ -20,10 +20,9 @@ select
|
||||
FROM t1
|
||||
LEFT JOIN t2 ON t1.b = t2.b;
|
||||
|
||||
SET @old_debug=@@debug_dbug;
|
||||
SET debug_dbug='+d,analyze_print_r_unpack_ops';
|
||||
|
||||
let $q= analyze
|
||||
let $q=
|
||||
SET statement debug_dbug='+d,analyze_print_r_unpack_ops' for
|
||||
analyze
|
||||
format=json
|
||||
SELECT COUNT(*)
|
||||
FROM t1_t2
|
||||
|
Reference in New Issue
Block a user