diff options
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/commit_1innodb.result | 2 | ||||
-rw-r--r-- | mysql-test/r/create_drop_binlog.result | 2 | ||||
-rw-r--r-- | mysql-test/r/create_drop_view.result | 2 | ||||
-rw-r--r-- | mysql-test/r/derived_cond_pushdown.result | 176 | ||||
-rw-r--r-- | mysql-test/r/drop.result | 8 | ||||
-rw-r--r-- | mysql-test/r/func_json.result | 33 | ||||
-rw-r--r-- | mysql-test/r/get_diagnostics.result | 2 | ||||
-rw-r--r-- | mysql-test/r/gis-json.result | 28 | ||||
-rw-r--r-- | mysql-test/r/grant.result | 2 | ||||
-rw-r--r-- | mysql-test/r/profiling.result | 2 | ||||
-rw-r--r-- | mysql-test/r/selectivity.result | 4 | ||||
-rw-r--r-- | mysql-test/r/selectivity_innodb.result | 4 | ||||
-rw-r--r-- | mysql-test/r/signal.result | 34 | ||||
-rw-r--r-- | mysql-test/r/signal_demo3.result | 42 | ||||
-rw-r--r-- | mysql-test/r/sp-error.result | 4 | ||||
-rw-r--r-- | mysql-test/r/sp-group.result | 2 | ||||
-rw-r--r-- | mysql-test/r/sp.result | 4 | ||||
-rw-r--r-- | mysql-test/r/view.result | 2 | ||||
-rw-r--r-- | mysql-test/r/warnings.result | 2 | ||||
-rw-r--r-- | mysql-test/r/win.result | 12 |
20 files changed, 281 insertions, 86 deletions
diff --git a/mysql-test/r/commit_1innodb.result b/mysql-test/r/commit_1innodb.result index 61274fa9049..258926e8c4b 100644 --- a/mysql-test/r/commit_1innodb.result +++ b/mysql-test/r/commit_1innodb.result @@ -230,7 +230,7 @@ insert into t2 (a) values (1023); do (f2(23)); Warnings: Error 1062 Duplicate entry '23' for key 'a' -Note 4070 At line 4 in test.f2 +Note 4091 At line 4 in test.f2 select * from t2; a 1023 diff --git a/mysql-test/r/create_drop_binlog.result b/mysql-test/r/create_drop_binlog.result index dc9c1da2c14..82133cd8e1d 100644 --- a/mysql-test/r/create_drop_binlog.result +++ b/mysql-test/r/create_drop_binlog.result @@ -160,7 +160,7 @@ Note 1050 Table 'v1' already exists DROP VIEW IF EXISTS v1; DROP VIEW IF EXISTS v1; Warnings: -Note 4068 Unknown VIEW: 'test.v1' +Note 4089 Unknown VIEW: 'test.v1' SHOW BINLOG EVENTS; Log_name Pos Event_type Server_id End_log_pos Info # # Format_desc 1 # VER diff --git a/mysql-test/r/create_drop_view.result b/mysql-test/r/create_drop_view.result index 117f7b851c6..c7185cff7d0 100644 --- a/mysql-test/r/create_drop_view.result +++ b/mysql-test/r/create_drop_view.result @@ -55,5 +55,5 @@ id DROP VIEW IF EXISTS v1; DROP VIEW IF EXISTS v1; Warnings: -Note 4068 Unknown VIEW: 'test.v1' +Note 4089 Unknown VIEW: 'test.v1' DROP TABLE t1; diff --git a/mysql-test/r/derived_cond_pushdown.result b/mysql-test/r/derived_cond_pushdown.result index 51fc63371e8..028a1120419 100644 --- a/mysql-test/r/derived_cond_pushdown.result +++ b/mysql-test/r/derived_cond_pushdown.result @@ -8785,6 +8785,8 @@ DROP TABLE t1,t2; # # MDEV-13369: Optimization for equi-joins of grouping derived tables # (Splitting derived tables / views with GROUP BY) +# MDEV-13389: Optimization for equi-joins of derived tables with WF +# (Splitting derived tables / views with window functions) # create table t1 (a int); insert into t1 values @@ -9105,49 +9107,27 @@ drop index idx on t2; create index idx on t2(b); create index idx on t3(a); create index idx2 on t4(c); -insert into t3 select * from t3; -insert into t3 select * from t3; -insert into t4 select * from t4; +insert into t3 select a+1, concat(c,'f') from t3; +insert into t3 select a+1, concat(c,'h') from t3; +insert into t4 select a+1, b+10, concat(c,'h') from t4; set statement optimizer_switch='split_grouping_derived=off' for select t2.a,t2.b,t3.c,t.max,t.min from t2, t3, (select c, max(b) max, min(b) min from t4 group by c) t where t2.b > 50 and t2.a=t3.a and t3.c=t.c; a b c max min 7 82 aa 77 15 7 82 bb 82 12 -7 82 aa 77 15 -7 82 bb 82 12 -7 82 aa 77 15 -7 82 bb 82 12 -7 82 aa 77 15 -7 82 bb 82 12 -2 90 aa 77 15 -2 90 aa 77 15 -2 90 aa 77 15 -2 90 aa 77 15 -2 90 aa 77 15 -2 90 aa 77 15 2 90 aa 77 15 2 90 aa 77 15 +2 90 bbh 92 22 select t2.a,t2.b,t3.c,t.max,t.min from t2, t3, (select c, max(b) max, min(b) min from t4 group by c) t where t2.b > 50 and t2.a=t3.a and t3.c=t.c; a b c max min 7 82 aa 77 15 7 82 bb 82 12 -7 82 aa 77 15 -7 82 bb 82 12 -7 82 aa 77 15 -7 82 bb 82 12 -7 82 aa 77 15 -7 82 bb 82 12 -2 90 aa 77 15 -2 90 aa 77 15 -2 90 aa 77 15 -2 90 aa 77 15 -2 90 aa 77 15 -2 90 aa 77 15 2 90 aa 77 15 2 90 aa 77 15 +2 90 bbh 92 22 explain extended select t2.a,t2.b,t3.c,t.max,t.min from t2, t3, (select c, max(b) max, min(b) min from t4 group by c) t where t2.b > 50 and t2.a=t3.a and t3.c=t.c; @@ -9219,4 +9199,146 @@ EXPLAIN } } } +set statement optimizer_switch='split_grouping_derived=off' for select * +from t2, t3, (select c, b, sum(b) over (partition by c) from t4 ) t +where t2.b > 50 and t2.a=t3.a and t3.c=t.c; +a b a c c b sum(b) over (partition by c) +7 82 7 aa aa 77 177 +7 82 7 aa aa 50 177 +7 82 7 aa aa 15 177 +7 82 7 aa aa 15 177 +7 82 7 aa aa 20 177 +7 82 7 bb bb 40 219 +7 82 7 bb bb 32 219 +7 82 7 bb bb 12 219 +7 82 7 bb bb 82 219 +7 82 7 bb bb 30 219 +7 82 7 bb bb 23 219 +2 90 2 aa aa 77 177 +2 90 2 aa aa 50 177 +2 90 2 aa aa 15 177 +2 90 2 aa aa 15 177 +2 90 2 aa aa 20 177 +2 90 2 aa aa 77 177 +2 90 2 aa aa 50 177 +2 90 2 aa aa 15 177 +2 90 2 aa aa 15 177 +2 90 2 aa aa 20 177 +2 90 2 bbh bbh 50 279 +2 90 2 bbh bbh 42 279 +2 90 2 bbh bbh 22 279 +2 90 2 bbh bbh 92 279 +2 90 2 bbh bbh 40 279 +2 90 2 bbh bbh 33 279 +select * +from t2, t3, (select c, b, sum(b) over (partition by c) from t4 ) t +where t2.b > 50 and t2.a=t3.a and t3.c=t.c; +a b a c c b sum(b) over (partition by c) +7 82 7 aa aa 77 177 +7 82 7 aa aa 50 177 +7 82 7 aa aa 15 177 +7 82 7 aa aa 15 177 +7 82 7 aa aa 20 177 +7 82 7 bb bb 40 219 +7 82 7 bb bb 32 219 +7 82 7 bb bb 12 219 +7 82 7 bb bb 82 219 +7 82 7 bb bb 30 219 +7 82 7 bb bb 23 219 +2 90 2 aa aa 77 177 +2 90 2 aa aa 50 177 +2 90 2 aa aa 15 177 +2 90 2 aa aa 15 177 +2 90 2 aa aa 20 177 +2 90 2 aa aa 77 177 +2 90 2 aa aa 50 177 +2 90 2 aa aa 15 177 +2 90 2 aa aa 15 177 +2 90 2 aa aa 20 177 +2 90 2 bbh bbh 50 279 +2 90 2 bbh bbh 42 279 +2 90 2 bbh bbh 22 279 +2 90 2 bbh bbh 92 279 +2 90 2 bbh bbh 40 279 +2 90 2 bbh bbh 33 279 +explain extended select * +from t2, t3, (select c, b, sum(b) over (partition by c) from t4 ) t +where t2.b > 50 and t2.a=t3.a and t3.c=t.c; +id select_type table type possible_keys key key_len ref rows filtered Extra +1 PRIMARY t2 range idx idx 5 NULL 5 100.00 Using index condition; Using where +1 PRIMARY t3 ref idx idx 5 test.t2.a 3 100.00 Using where +1 PRIMARY <derived2> ref key0 key0 19 test.t3.c 4 100.00 +2 LATERAL DERIVED t4 ref idx2 idx2 19 test.t3.c 5 100.00 Using temporary +Warnings: +Note 1003 /* select#1 */ select `test`.`t2`.`a` AS `a`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`a` AS `a`,`test`.`t3`.`c` AS `c`,`t`.`c` AS `c`,`t`.`b` AS `b`,`t`.`sum(b) over (partition by c)` AS `sum(b) over (partition by c)` from `test`.`t2` join `test`.`t3` join (/* select#2 */ select `test`.`t4`.`c` AS `c`,`test`.`t4`.`b` AS `b`,sum(`test`.`t4`.`b`) over ( partition by `test`.`t4`.`c`) AS `sum(b) over (partition by c)` from `test`.`t4` where `test`.`t4`.`c` = `test`.`t3`.`c`) `t` where `test`.`t3`.`a` = `test`.`t2`.`a` and `t`.`c` = `test`.`t3`.`c` and `test`.`t2`.`b` > 50 +explain format=json select * +from t2, t3, (select c, b, sum(b) over (partition by c) from t4 ) t +where t2.b > 50 and t2.a=t3.a and t3.c=t.c; +EXPLAIN +{ + "query_block": { + "select_id": 1, + "table": { + "table_name": "t2", + "access_type": "range", + "possible_keys": ["idx"], + "key": "idx", + "key_length": "5", + "used_key_parts": ["b"], + "rows": 5, + "filtered": 100, + "index_condition": "t2.b > 50", + "attached_condition": "t2.a is not null" + }, + "table": { + "table_name": "t3", + "access_type": "ref", + "possible_keys": ["idx"], + "key": "idx", + "key_length": "5", + "used_key_parts": ["a"], + "ref": ["test.t2.a"], + "rows": 3, + "filtered": 100, + "attached_condition": "t3.c is not null" + }, + "table": { + "table_name": "<derived2>", + "access_type": "ref", + "possible_keys": ["key0"], + "key": "key0", + "key_length": "19", + "used_key_parts": ["c"], + "ref": ["test.t3.c"], + "rows": 4, + "filtered": 100, + "materialized": { + "query_block": { + "select_id": 2, + "outer_ref_condition": "t3.c is not null", + "window_functions_computation": { + "sorts": { + "filesort": { + "sort_key": "t4.c" + } + }, + "temporary_table": { + "table": { + "table_name": "t4", + "access_type": "ref", + "possible_keys": ["idx2"], + "key": "idx2", + "key_length": "19", + "used_key_parts": ["c"], + "ref": ["test.t3.c"], + "rows": 5, + "filtered": 100 + } + } + } + } + } + } + } +} drop table t1,t2,t3,t4; diff --git a/mysql-test/r/drop.result b/mysql-test/r/drop.result index f33a482dc0b..08e6a19a9a3 100644 --- a/mysql-test/r/drop.result +++ b/mysql-test/r/drop.result @@ -209,10 +209,10 @@ Note 1051 Unknown table 'test.table1' Note 1051 Unknown table 'test.table2' DROP VIEW IF EXISTS view1,view2,view3,view4; Warnings: -Note 4068 Unknown VIEW: 'test.view1' -Note 4068 Unknown VIEW: 'test.view2' -Note 4068 Unknown VIEW: 'test.view3' -Note 4068 Unknown VIEW: 'test.view4' +Note 4089 Unknown VIEW: 'test.view1' +Note 4089 Unknown VIEW: 'test.view2' +Note 4089 Unknown VIEW: 'test.view3' +Note 4089 Unknown VIEW: 'test.view4' # Test error message when trigger does not find table CREATE TABLE table1(a int); diff --git a/mysql-test/r/func_json.result b/mysql-test/r/func_json.result index 03e4c48a3e1..10da7cd95c8 100644 --- a/mysql-test/r/func_json.result +++ b/mysql-test/r/func_json.result @@ -356,6 +356,12 @@ json_keys('foo') NULL Warnings: Warning 4038 Syntax error in JSON text in argument 1 to function 'json_keys' at position 1 +select json_keys('{"a":{"c":1, "d":2}, "b":2, "c":1, "a":3, "b":1, "c":2}'); +json_keys('{"a":{"c":1, "d":2}, "b":2, "c":1, "a":3, "b":1, "c":2}') +["a", "b", "c"] +select json_keys('{"c1": "value 1", "c1": "value 2"}'); +json_keys('{"c1": "value 1", "c1": "value 2"}') +["c1"] SET @j = '["abc", [{"k": "10"}, "def"], {"x":"abc"}, {"y":"bcd"}]'; select json_search(@j, 'one', 'abc'); json_search(@j, 'one', 'abc') @@ -642,6 +648,33 @@ SELECT JSON_KEYS(f) FROM t1 ORDER BY 1; JSON_KEYS(f) NULL DROP TABLE t1; +SELECT JSON_EXTRACT( '{"foo":"bar"}', '$[*].*' ); +JSON_EXTRACT( '{"foo":"bar"}', '$[*].*' ) +NULL +SELECT JSON_EXTRACT( '{"foo":"bar"}', '$[*]' ); +JSON_EXTRACT( '{"foo":"bar"}', '$[*]' ) +NULL +select JSON_EXTRACT('{"name":"value"}', '$.name') = 'value'; +JSON_EXTRACT('{"name":"value"}', '$.name') = 'value' +1 +select JSON_EXTRACT('{\"asdf\":true}', "$.\"asdf\"") = true; +JSON_EXTRACT('{\"asdf\":true}', "$.\"asdf\"") = true +0 +Warnings: +Warning 1292 Truncated incorrect DOUBLE value: 'true' +select JSON_EXTRACT('{\"asdf\":true}', "$.\"asdf\"") = false; +JSON_EXTRACT('{\"asdf\":true}', "$.\"asdf\"") = false +1 +Warnings: +Warning 1292 Truncated incorrect DOUBLE value: 'true' +select JSON_EXTRACT('{\"asdf\":true}', "$.\"asdf\"") = 1; +JSON_EXTRACT('{\"asdf\":true}', "$.\"asdf\"") = 1 +0 +Warnings: +Warning 1292 Truncated incorrect DOUBLE value: 'true' +select JSON_EXTRACT('{\"input1\":\"\\u00f6\"}', '$.\"input1\"'); +JSON_EXTRACT('{\"input1\":\"\\u00f6\"}', '$.\"input1\"') +"\u00f6" # # Start of 10.3 tests # diff --git a/mysql-test/r/get_diagnostics.result b/mysql-test/r/get_diagnostics.result index abd2fdd4da9..01fed8c846b 100644 --- a/mysql-test/r/get_diagnostics.result +++ b/mysql-test/r/get_diagnostics.result @@ -590,7 +590,7 @@ DROP PROCEDURE p1; SHOW WARNINGS; Level Code Message Error 54321 MESSAGE_TEXT text -Note 4070 At line 16 in test.p1 +Note 4091 At line 16 in test.p1 CREATE PROCEDURE p1() BEGIN DECLARE var INT; diff --git a/mysql-test/r/gis-json.result b/mysql-test/r/gis-json.result index 8625a5bfb74..d888b08351d 100644 --- a/mysql-test/r/gis-json.result +++ b/mysql-test/r/gis-json.result @@ -61,6 +61,34 @@ POINT(102 0.5) SELECT st_astext(st_geomfromgeojson('{ "type": "FeatureCollection", "features": [{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [102.0, 0.5] }, "properties": { "prop0": "value0" } }]}')); st_astext(st_geomfromgeojson('{ "type": "FeatureCollection", "features": [{ "type": "Feature", "geometry": { "type": "Point", "coordinates": [102.0, 0.5] }, "properties": { "prop0": "value0" } }]}')) GEOMETRYCOLLECTION(POINT(102 0.5)) +SELECT ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',5)); +ERROR HY000: Incorrect option value: '5' for function ST_GeometryFromJSON +SELECT ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',1)); +ERROR 22023: Invalid GIS data provided to function ST_GeometryFromJSON. +SELECT ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',2)); +ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',2)) +POINT(5.3 15) +SELECT ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',3)); +ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',3)) +POINT(5.3 15) +SELECT ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',4)); +ST_AsText(ST_GeomFromGeoJSON('{ "type": "Point", "coordinates": [5.3, 15.0, 4.3]}',4)) +POINT(5.3 15) +SELECT ST_AsGeoJSON(ST_GeomFromText('POINT(5.363 7.266)'),2); +ST_AsGeoJSON(ST_GeomFromText('POINT(5.363 7.266)'),2) +{"type": "Point", "coordinates": [5.36, 7.27]} +SELECT ST_AsGeoJSON(ST_GeomFromText('POINT(5.363 7.266)'),1); +ST_AsGeoJSON(ST_GeomFromText('POINT(5.363 7.266)'),1) +{"type": "Point", "coordinates": [5.4, 7.3]} +SELECT ST_AsGeoJSON(ST_GeomFromText('POINT(5.363 7.266)'),10); +ST_AsGeoJSON(ST_GeomFromText('POINT(5.363 7.266)'),10) +{"type": "Point", "coordinates": [5.363, 7.266]} +SELECT ST_AsGeoJSON(ST_GeomFromText("POINT(10 11)"), 100, 1); +ST_AsGeoJSON(ST_GeomFromText("POINT(10 11)"), 100, 1) +{"bbox": [10, 11, 10, 11], "type": "Point", "coordinates": [10, 11]} +SELECT ST_AsGeoJSON(ST_GeomFromText("POINT(10 11)"), 100, 5); +ST_AsGeoJSON(ST_GeomFromText("POINT(10 11)"), 100, 5) +{"bbox": [10, 11, 10, 11], "type": "Point", "coordinates": [10, 11]} # # End of 10.2 tests # diff --git a/mysql-test/r/grant.result b/mysql-test/r/grant.result index 9e16cf370d8..258b8e84eb4 100644 --- a/mysql-test/r/grant.result +++ b/mysql-test/r/grant.result @@ -1428,7 +1428,7 @@ Warnings: Note 1305 FUNCTION test.test_function does not exist drop view if exists v1; Warnings: -Note 4068 Unknown VIEW: 'test.v1' +Note 4089 Unknown VIEW: 'test.v1' create table test (col1 varchar(30)); create function test_function() returns varchar(30) begin diff --git a/mysql-test/r/profiling.result b/mysql-test/r/profiling.result index 32e7e0ddc9d..f7568c1b0f7 100644 --- a/mysql-test/r/profiling.result +++ b/mysql-test/r/profiling.result @@ -415,7 +415,7 @@ select @@profiling; drop table if exists t1, t2, t3; drop view if exists v1; Warnings: -Note 4068 Unknown VIEW: 'test.v1' +Note 4089 Unknown VIEW: 'test.v1' drop function if exists f1; set session profiling = OFF; set global profiling_history_size= @start_value; diff --git a/mysql-test/r/selectivity.result b/mysql-test/r/selectivity.result index 8b447f85013..79b46183b60 100644 --- a/mysql-test/r/selectivity.result +++ b/mysql-test/r/selectivity.result @@ -141,7 +141,7 @@ order by s_suppkey; id select_type table type possible_keys key key_len ref rows filtered Extra 1 PRIMARY supplier ALL PRIMARY NULL NULL NULL 10 100.00 Using filesort 1 PRIMARY <derived3> ref key0 key0 5 dbt3_s001.supplier.s_suppkey 10 100.00 Using where -3 DERIVED lineitem range i_l_shipdate i_l_shipdate 4 NULL 268 100.00 Using where; Using temporary; Using filesort +3 LATERAL DERIVED lineitem range i_l_shipdate,i_l_suppkey i_l_shipdate 4 NULL 268 75.00 Using where 2 SUBQUERY <derived4> ALL NULL NULL NULL NULL 268 100.00 4 DERIVED lineitem range i_l_shipdate i_l_shipdate 4 NULL 268 100.00 Using where; Using temporary; Using filesort Warnings: @@ -162,7 +162,7 @@ order by s_suppkey; id select_type table type possible_keys key key_len ref rows filtered Extra 1 PRIMARY supplier ALL PRIMARY NULL NULL NULL 10 100.00 Using filesort 1 PRIMARY <derived3> ref key0 key0 5 dbt3_s001.supplier.s_suppkey 10 100.00 Using where -3 DERIVED lineitem range i_l_shipdate i_l_shipdate 4 NULL 268 100.00 Using where; Using temporary; Using filesort +3 LATERAL DERIVED lineitem range i_l_shipdate,i_l_suppkey i_l_shipdate 4 NULL 268 100.00 Using where 2 SUBQUERY <derived4> ALL NULL NULL NULL NULL 268 100.00 4 DERIVED lineitem range i_l_shipdate i_l_shipdate 4 NULL 268 100.00 Using where; Using temporary; Using filesort Warnings: diff --git a/mysql-test/r/selectivity_innodb.result b/mysql-test/r/selectivity_innodb.result index 8128edb2901..71657288c66 100644 --- a/mysql-test/r/selectivity_innodb.result +++ b/mysql-test/r/selectivity_innodb.result @@ -144,7 +144,7 @@ order by s_suppkey; id select_type table type possible_keys key key_len ref rows filtered Extra 1 PRIMARY supplier index PRIMARY PRIMARY 4 NULL 10 100.00 1 PRIMARY <derived3> ref key0 key0 5 dbt3_s001.supplier.s_suppkey 10 100.00 Using where -3 DERIVED lineitem range i_l_shipdate i_l_shipdate 4 NULL 229 100.00 Using where; Using temporary; Using filesort +3 LATERAL DERIVED lineitem range i_l_shipdate,i_l_suppkey i_l_shipdate 4 NULL 229 75.11 Using where 2 SUBQUERY <derived4> ALL NULL NULL NULL NULL 229 100.00 4 DERIVED lineitem range i_l_shipdate i_l_shipdate 4 NULL 229 100.00 Using where; Using temporary; Using filesort Warnings: @@ -165,7 +165,7 @@ order by s_suppkey; id select_type table type possible_keys key key_len ref rows filtered Extra 1 PRIMARY supplier index PRIMARY PRIMARY 4 NULL 10 100.00 1 PRIMARY <derived3> ref key0 key0 5 dbt3_s001.supplier.s_suppkey 10 100.00 Using where -3 DERIVED lineitem range i_l_shipdate i_l_shipdate 4 NULL 229 100.00 Using where; Using temporary; Using filesort +3 LATERAL DERIVED lineitem range i_l_shipdate,i_l_suppkey i_l_shipdate 4 NULL 229 100.00 Using where 2 SUBQUERY <derived4> ALL NULL NULL NULL NULL 228 100.00 4 DERIVED lineitem range i_l_shipdate i_l_shipdate 4 NULL 229 100.00 Using where; Using temporary; Using filesort Warnings: diff --git a/mysql-test/r/signal.result b/mysql-test/r/signal.result index 4c2dda51a2f..9b140b5b33b 100644 --- a/mysql-test/r/signal.result +++ b/mysql-test/r/signal.result @@ -1715,7 +1715,7 @@ show warnings $$ Level Code Message Warning 1012 Raising a warning Error 5555 RESIGNAL to not found -Note 4070 At line 9 in test.test_resignal +Note 4091 At line 9 in test.test_resignal drop procedure test_resignal $$ create procedure test_resignal() begin @@ -1740,7 +1740,7 @@ show warnings $$ Level Code Message Warning 1012 Raising a warning Error 5555 RESIGNAL to error -Note 4070 At line 9 in test.test_resignal +Note 4091 At line 9 in test.test_resignal drop procedure test_resignal $$ create procedure test_resignal() begin @@ -1789,7 +1789,7 @@ show warnings $$ Level Code Message Error 1012 Raising a not found Error 5555 RESIGNAL to not found -Note 4070 At line 9 in test.test_resignal +Note 4091 At line 9 in test.test_resignal drop procedure test_resignal $$ create procedure test_resignal() begin @@ -1814,7 +1814,7 @@ show warnings $$ Level Code Message Error 1012 Raising a not found Error 5555 RESIGNAL to error -Note 4070 At line 9 in test.test_resignal +Note 4091 At line 9 in test.test_resignal drop procedure test_resignal $$ create procedure test_resignal() begin @@ -1863,7 +1863,7 @@ show warnings $$ Level Code Message Error 1012 Raising an error Error 5555 RESIGNAL to not found -Note 4070 At line 9 in test.test_resignal +Note 4091 At line 9 in test.test_resignal drop procedure test_resignal $$ create procedure test_resignal() begin @@ -1888,7 +1888,7 @@ show warnings $$ Level Code Message Error 1012 Raising an error Error 5555 RESIGNAL to error -Note 4070 At line 9 in test.test_resignal +Note 4091 At line 9 in test.test_resignal drop procedure test_resignal $$ create procedure test_resignal() begin @@ -1931,7 +1931,7 @@ show warnings $$ Level Code Message Warning 1264 Out of range value for column 'a' at row 1 Error 5555 RESIGNAL to a not found -Note 4070 At line 8 in test.test_resignal +Note 4091 At line 8 in test.test_resignal drop procedure test_resignal $$ create procedure test_resignal() begin @@ -1953,7 +1953,7 @@ show warnings $$ Level Code Message Warning 1264 Out of range value for column 'a' at row 1 Error 5555 RESIGNAL to an error -Note 4070 At line 8 in test.test_resignal +Note 4091 At line 8 in test.test_resignal drop procedure test_resignal $$ create procedure test_resignal() begin @@ -2004,7 +2004,7 @@ show warnings $$ Level Code Message Error 1329 No data - zero rows fetched, selected, or processed Error 5555 RESIGNAL to a not found -Note 4070 At line 10 in test.test_resignal +Note 4091 At line 10 in test.test_resignal drop procedure test_resignal $$ create procedure test_resignal() begin @@ -2030,7 +2030,7 @@ show warnings $$ Level Code Message Error 1329 No data - zero rows fetched, selected, or processed Error 5555 RESIGNAL to an error -Note 4070 At line 10 in test.test_resignal +Note 4091 At line 10 in test.test_resignal drop procedure test_resignal $$ create procedure test_resignal() begin @@ -2073,7 +2073,7 @@ show warnings $$ Level Code Message Error 1051 Unknown table 'test.no_such_table' Error 5555 RESIGNAL to a not found -Note 4070 At line 8 in test.test_resignal +Note 4091 At line 8 in test.test_resignal drop procedure test_resignal $$ create procedure test_resignal() begin @@ -2095,7 +2095,7 @@ show warnings $$ Level Code Message Error 1051 Unknown table 'test.no_such_table' Error 5555 RESIGNAL to an error -Note 4070 At line 8 in test.test_resignal +Note 4091 At line 8 in test.test_resignal drop procedure test_resignal $$ # # More complex cases @@ -2142,7 +2142,7 @@ ERROR 42000: Hi, I am a useless error message show warnings $$ Level Code Message Error 9999 Hi, I am a useless error message -Note 4070 At line 7 in test.peter_p2 +Note 4091 At line 7 in test.peter_p2 drop procedure peter_p1 $$ drop procedure peter_p2 $$ CREATE PROCEDURE peter_p1 () @@ -2198,16 +2198,16 @@ Level Code Message Error 1231 Variable 'sql_mode' can't be set to the value of 'NULL' Error 1232 Variable 'sql_mode' can't be set to the value of 'NULL' Error 9999 Variable 'sql_mode' can't be set to the value of 'NULL' -Note 4070 At line 8 in test.peter_p1 +Note 4091 At line 8 in test.peter_p1 ERROR 42000: Hi, I am a useless error message show warnings $$ Level Code Message Error 1231 Variable 'sql_mode' can't be set to the value of 'NULL' Error 1232 Variable 'sql_mode' can't be set to the value of 'NULL' Error 9999 Variable 'sql_mode' can't be set to the value of 'NULL' -Note 4070 At line 8 in test.peter_p1 +Note 4091 At line 8 in test.peter_p1 Error 9999 Hi, I am a useless error message -Note 4070 At line 10 in test.peter_p2 +Note 4091 At line 10 in test.peter_p2 drop procedure peter_p1 $$ drop procedure peter_p2 $$ drop procedure if exists peter_p3 $$ @@ -2225,7 +2225,7 @@ show warnings $$ Level Code Message Error 1 Original Error 2 Original -Note 4070 At line 4 in test.peter_p3 +Note 4091 At line 4 in test.peter_p3 drop procedure peter_p3 $$ drop table t_warn; drop table t_cursor; diff --git a/mysql-test/r/signal_demo3.result b/mysql-test/r/signal_demo3.result index 122a2178035..2e1943b546e 100644 --- a/mysql-test/r/signal_demo3.result +++ b/mysql-test/r/signal_demo3.result @@ -79,23 +79,23 @@ show warnings; Level Code Message Error 1051 Unknown table 'demo.oops_it_is_not_here' Error 1644 Oops in proc_9 -Note 4070 At line 4 in demo.proc_9 +Note 4091 At line 4 in demo.proc_9 Error 1644 Oops in proc_8 -Note 4070 At line 4 in demo.proc_8 +Note 4091 At line 4 in demo.proc_8 Error 1644 Oops in proc_7 -Note 4070 At line 4 in demo.proc_7 +Note 4091 At line 4 in demo.proc_7 Error 1644 Oops in proc_6 -Note 4070 At line 4 in demo.proc_6 +Note 4091 At line 4 in demo.proc_6 Error 1644 Oops in proc_5 -Note 4070 At line 4 in demo.proc_5 +Note 4091 At line 4 in demo.proc_5 Error 1644 Oops in proc_4 -Note 4070 At line 4 in demo.proc_4 +Note 4091 At line 4 in demo.proc_4 Error 1644 Oops in proc_3 -Note 4070 At line 4 in demo.proc_3 +Note 4091 At line 4 in demo.proc_3 Error 1644 Oops in proc_2 -Note 4070 At line 4 in demo.proc_2 +Note 4091 At line 4 in demo.proc_2 Error 1644 Oops in proc_1 -Note 4070 At line 4 in demo.proc_1 +Note 4091 At line 4 in demo.proc_1 SET @@session.max_error_count = 5; SELECT @@session.max_error_count; @@session.max_error_count @@ -104,11 +104,11 @@ call proc_1(); ERROR 45000: Oops in proc_1 show warnings; Level Code Message -Note 4070 At line 4 in demo.proc_3 +Note 4091 At line 4 in demo.proc_3 Error 1644 Oops in proc_2 -Note 4070 At line 4 in demo.proc_2 +Note 4091 At line 4 in demo.proc_2 Error 1644 Oops in proc_1 -Note 4070 At line 4 in demo.proc_1 +Note 4091 At line 4 in demo.proc_1 SET @@session.max_error_count = 7; SELECT @@session.max_error_count; @@session.max_error_count @@ -117,13 +117,13 @@ call proc_1(); ERROR 45000: Oops in proc_1 show warnings; Level Code Message -Note 4070 At line 4 in demo.proc_4 +Note 4091 At line 4 in demo.proc_4 Error 1644 Oops in proc_3 -Note 4070 At line 4 in demo.proc_3 +Note 4091 At line 4 in demo.proc_3 Error 1644 Oops in proc_2 -Note 4070 At line 4 in demo.proc_2 +Note 4091 At line 4 in demo.proc_2 Error 1644 Oops in proc_1 -Note 4070 At line 4 in demo.proc_1 +Note 4091 At line 4 in demo.proc_1 SET @@session.max_error_count = 9; SELECT @@session.max_error_count; @@session.max_error_count @@ -132,15 +132,15 @@ call proc_1(); ERROR 45000: Oops in proc_1 show warnings; Level Code Message -Note 4070 At line 4 in demo.proc_5 +Note 4091 At line 4 in demo.proc_5 Error 1644 Oops in proc_4 -Note 4070 At line 4 in demo.proc_4 +Note 4091 At line 4 in demo.proc_4 Error 1644 Oops in proc_3 -Note 4070 At line 4 in demo.proc_3 +Note 4091 At line 4 in demo.proc_3 Error 1644 Oops in proc_2 -Note 4070 At line 4 in demo.proc_2 +Note 4091 At line 4 in demo.proc_2 Error 1644 Oops in proc_1 -Note 4070 At line 4 in demo.proc_1 +Note 4091 At line 4 in demo.proc_1 drop database demo; SET @@global.max_error_count = @start_global_value; SELECT @@global.max_error_count; diff --git a/mysql-test/r/sp-error.result b/mysql-test/r/sp-error.result index f8dd2737e8e..e3a02503ad0 100644 --- a/mysql-test/r/sp-error.result +++ b/mysql-test/r/sp-error.result @@ -1990,8 +1990,8 @@ Warning 1264 Out of range value for column 'a' at row 1 Note 1292 Truncated incorrect INTEGER value: '222222 ' Warning 1264 Out of range value for column 'b' at row 1 Error 1048 Column 'c' cannot be null -Note 4070 At line 6 in test.t1_bi -Note 4070 At line 2 in test.p1 +Note 4091 At line 6 in test.t1_bi +Note 4091 At line 2 in test.p1 DROP TABLE t1; DROP TABLE t2; diff --git a/mysql-test/r/sp-group.result b/mysql-test/r/sp-group.result index 0fc8d45c5b1..3ed3f812267 100644 --- a/mysql-test/r/sp-group.result +++ b/mysql-test/r/sp-group.result @@ -3,7 +3,7 @@ Warnings: Note 1051 Unknown table 'test.t1' drop view if exists view_t1; Warnings: -Note 4068 Unknown VIEW: 'test.view_t1' +Note 4089 Unknown VIEW: 'test.view_t1' SET sql_mode=ONLY_FULL_GROUP_BY; CREATE TABLE t1 ( pk INT, diff --git a/mysql-test/r/sp.result b/mysql-test/r/sp.result index 71ca5de2990..53626d8013e 100644 --- a/mysql-test/r/sp.result +++ b/mysql-test/r/sp.result @@ -3211,7 +3211,7 @@ drop procedure bug10961| DROP PROCEDURE IF EXISTS bug6866| DROP VIEW IF EXISTS tv| Warnings: -Note 4068 Unknown VIEW: 'test.tv' +Note 4089 Unknown VIEW: 'test.tv' DROP TABLE IF EXISTS tt1,tt2,tt3| Warnings: Note 1051 Unknown table 'test.tt1' @@ -7823,7 +7823,7 @@ ERROR 23000: Duplicate entry '2' for key 'PRIMARY' show warnings; Level Code Message Error 1062 Duplicate entry '2' for key 'PRIMARY' -Note 4070 At line 5 in test.p1 +Note 4091 At line 5 in test.p1 select * from t1; id 1 diff --git a/mysql-test/r/view.result b/mysql-test/r/view.result index ef2e0935592..a09856c77a4 100644 --- a/mysql-test/r/view.result +++ b/mysql-test/r/view.result @@ -5236,7 +5236,7 @@ CREATE TABLE t4 (i4 INT); INSERT INTO t4 VALUES (1),(2); DROP VIEW IF EXISTS v1; Warnings: -Note 4068 Unknown VIEW: 'test.v1' +Note 4089 Unknown VIEW: 'test.v1' CREATE VIEW v1 AS select coalesce(j1,i3) AS v1_field1 from t2 join t3 left join t1 on ( i1 = i2 ); CREATE VIEW v2 AS select v1_field1 from t4 join v1; prepare my_stmt from "select v1_field1 from v2"; diff --git a/mysql-test/r/warnings.result b/mysql-test/r/warnings.result index 5001f707f5a..400256f2ab7 100644 --- a/mysql-test/r/warnings.result +++ b/mysql-test/r/warnings.result @@ -353,7 +353,7 @@ ERROR 23000: Duplicate entry '11' for key 'a' SHOW WARNINGS; Level Code Message -Note 4070 At line 4 in test.f1 +Note 4091 At line 4 in test.f1 Error 1062 Duplicate entry '11' for key 'a' DROP TABLE t1; diff --git a/mysql-test/r/win.result b/mysql-test/r/win.result index d5b79c106b0..743513092e2 100644 --- a/mysql-test/r/win.result +++ b/mysql-test/r/win.result @@ -3174,6 +3174,18 @@ Nth_value(i,1) OVER() 1 DROP TABLE t1; # +# A regression after MDEV-13351: +# MDEV-13374 : Server crashes in first_linear_tab / st_select_lex::set_explain_type +# upon UNION with aggregate function +# +CREATE TABLE t1 (i INT) ENGINE=MyISAM; +INSERT INTO t1 VALUES (1),(2); +SELECT i AS fld FROM t1 UNION SELECT COUNT(*) AS fld FROM t1; +fld +1 +2 +DROP TABLE t1; +# # Start of 10.3 tests # # |