diff --git a/mysql-test/main/opt_trace.result b/mysql-test/main/opt_trace.result index 93a5508327b..029f795b4fa 100644 --- a/mysql-test/main/opt_trace.result +++ b/mysql-test/main/opt_trace.result @@ -11069,9 +11069,9 @@ SUBQ a 985 1 985 2 # The trace must be empty: -select json_detailed(json_extract(trace, '$**.range-checked-for-each-record')) +select json_detailed(json_extract(trace, '$**.range-checked-for-each-record')) as TRACE from information_schema.optimizer_trace; -json_detailed(json_extract(trace, '$**.range-checked-for-each-record')) +TRACE NULL # The trace must be empty: select json_detailed(json_extract(trace, '$**.join_execution')) diff --git a/mysql-test/main/opt_trace.test b/mysql-test/main/opt_trace.test index 55fe4edf328..fa51cfbb603 100644 --- a/mysql-test/main/opt_trace.test +++ b/mysql-test/main/opt_trace.test @@ -1242,7 +1242,7 @@ select from t3; --echo # The trace must be empty: -select json_detailed(json_extract(trace, '$**.range-checked-for-each-record')) +select json_detailed(json_extract(trace, '$**.range-checked-for-each-record')) as TRACE from information_schema.optimizer_trace; --echo # The trace must be empty: select json_detailed(json_extract(trace, '$**.join_execution'))