Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions libmysqld/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ SET(SQL_EMBEDDED_SOURCES emb_qcache.cc libmysqld.c lib_sql.cc
../sql/mf_iocache.cc ../sql/my_decimal.cc
../sql/net_serv.cc ../sql/opt_range.cc
../sql/opt_group_by_cardinality.cc
../sql/opt_window_function_cardinality.cc
../sql/opt_rewrite_date_cmp.cc
../sql/opt_rewrite_remove_casefold.cc
../sql/opt_sum.cc
Expand Down
10 changes: 5 additions & 5 deletions mysql-test/main/cte_recursive.result
Original file line number Diff line number Diff line change
Expand Up @@ -1721,16 +1721,16 @@ i div 4 - (i % 4) = ps.i div 4 - (ps.i % 4)
)
SELECT regexp_replace(board,concat('(',REPEAT('.', 4),')'),'\\1\n') n_queens FROM solutions WHERE n_queens = 4;
n_queens
--*-
*---
---*
-*--

-*--
---*
*---
--*-

--*-
*---
---*
-*--

#
# MDEV-10883: execution of prepared statement from SELECT
# with recursive CTE that renames columns
Expand Down
6 changes: 3 additions & 3 deletions mysql-test/main/derived.result
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ EXPLAIN SELECT * FROM (SELECT * FROM t1) AS table1,
(SELECT DISTINCT * FROM t2) AS table2 WHERE b = a AND a <> ANY (SELECT 9);
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t1 system NULL NULL NULL NULL 1
1 PRIMARY <derived3> ref key0 key0 5 const 0
1 PRIMARY <derived3> ref key0 key0 5 const 1
3 DERIVED t2 ALL NULL NULL NULL NULL 2 Using where; Using temporary
Warnings:
Note 1249 Select 4 was reduced during optimization
Expand Down Expand Up @@ -1547,7 +1547,7 @@ where T.a=5
from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t1 ALL NULL NULL NULL NULL 10
2 MATERIALIZED <derived3> ALL NULL NULL NULL NULL 10000 Using where
2 DEPENDENT SUBQUERY <derived3> ref key0 key0 5 const 10
3 DERIVED duplicates_tbl ALL NULL NULL NULL NULL 10000
select
t1.a IN ( SELECT COUNT(*)
Expand Down Expand Up @@ -1581,7 +1581,7 @@ where T.a=5
from t1;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t1 ALL NULL NULL NULL NULL 10
2 DEPENDENT SUBQUERY <derived3> ALL NULL NULL NULL NULL 10000 Using where
2 DEPENDENT SUBQUERY <derived3> ref key0 key0 5 const 10
3 DERIVED duplicates_tbl ALL NULL NULL NULL NULL 10000
select
t1.a = all ( SELECT COUNT(*)
Expand Down
Loading