WL#5252: deprecate --optimizer_search_depth=63

Followup: Changes in sys_vars test suite

  mysql-test/suite/sys_vars/r/optimizer_search_depth_basic.result
    Added warnings.
This commit is contained in:
Roy Lyseng 2010-03-01 21:19:47 +01:00
parent 9b705237b6
commit 74310b21f1

View file

@ -10,6 +10,7 @@ SELECT @start_session_value;
SET @@global.optimizer_search_depth = 100; SET @@global.optimizer_search_depth = 100;
Warnings: Warnings:
Warning 1292 Truncated incorrect optimizer_search_depth value: '100' Warning 1292 Truncated incorrect optimizer_search_depth value: '100'
Warning 1287 'optimizer-search-depth=63' is deprecated and will be removed in a future release. Please use a search depth less than 63 instead
SET @@global.optimizer_search_depth = DEFAULT; SET @@global.optimizer_search_depth = DEFAULT;
SELECT @@global.optimizer_search_depth; SELECT @@global.optimizer_search_depth;
@@global.optimizer_search_depth @@global.optimizer_search_depth
@ -17,6 +18,7 @@ SELECT @@global.optimizer_search_depth;
SET @@session.optimizer_search_depth = 200; SET @@session.optimizer_search_depth = 200;
Warnings: Warnings:
Warning 1292 Truncated incorrect optimizer_search_depth value: '200' Warning 1292 Truncated incorrect optimizer_search_depth value: '200'
Warning 1287 'optimizer-search-depth=63' is deprecated and will be removed in a future release. Please use a search depth less than 63 instead
SET @@session.optimizer_search_depth = DEFAULT; SET @@session.optimizer_search_depth = DEFAULT;
SELECT @@session.optimizer_search_depth; SELECT @@session.optimizer_search_depth;
@@session.optimizer_search_depth @@session.optimizer_search_depth
@ -44,6 +46,8 @@ SELECT @@global.optimizer_search_depth;
@@global.optimizer_search_depth @@global.optimizer_search_depth
62 62
SET @@global.optimizer_search_depth = 63; SET @@global.optimizer_search_depth = 63;
Warnings:
Warning 1287 'optimizer-search-depth=63' is deprecated and will be removed in a future release. Please use a search depth less than 63 instead
SELECT @@global.optimizer_search_depth; SELECT @@global.optimizer_search_depth;
@@global.optimizer_search_depth @@global.optimizer_search_depth
63 63
@ -61,6 +65,8 @@ SELECT @@session.optimizer_search_depth;
@@session.optimizer_search_depth @@session.optimizer_search_depth
62 62
SET @@session.optimizer_search_depth = 63; SET @@session.optimizer_search_depth = 63;
Warnings:
Warning 1287 'optimizer-search-depth=63' is deprecated and will be removed in a future release. Please use a search depth less than 63 instead
SELECT @@session.optimizer_search_depth; SELECT @@session.optimizer_search_depth;
@@session.optimizer_search_depth @@session.optimizer_search_depth
63 63
@ -68,6 +74,7 @@ SELECT @@session.optimizer_search_depth;
SET @@global.optimizer_search_depth = 64; SET @@global.optimizer_search_depth = 64;
Warnings: Warnings:
Warning 1292 Truncated incorrect optimizer_search_depth value: '64' Warning 1292 Truncated incorrect optimizer_search_depth value: '64'
Warning 1287 'optimizer-search-depth=63' is deprecated and will be removed in a future release. Please use a search depth less than 63 instead
SELECT @@global.optimizer_search_depth; SELECT @@global.optimizer_search_depth;
@@global.optimizer_search_depth @@global.optimizer_search_depth
63 63
@ -80,6 +87,7 @@ SELECT @@global.optimizer_search_depth;
SET @@global.optimizer_search_depth = 65536; SET @@global.optimizer_search_depth = 65536;
Warnings: Warnings:
Warning 1292 Truncated incorrect optimizer_search_depth value: '65536' Warning 1292 Truncated incorrect optimizer_search_depth value: '65536'
Warning 1287 'optimizer-search-depth=63' is deprecated and will be removed in a future release. Please use a search depth less than 63 instead
SELECT @@global.optimizer_search_depth; SELECT @@global.optimizer_search_depth;
@@global.optimizer_search_depth @@global.optimizer_search_depth
63 63
@ -96,6 +104,7 @@ SELECT @@global.optimizer_search_depth;
SET @@session.optimizer_search_depth = 64; SET @@session.optimizer_search_depth = 64;
Warnings: Warnings:
Warning 1292 Truncated incorrect optimizer_search_depth value: '64' Warning 1292 Truncated incorrect optimizer_search_depth value: '64'
Warning 1287 'optimizer-search-depth=63' is deprecated and will be removed in a future release. Please use a search depth less than 63 instead
SELECT @@session.optimizer_search_depth; SELECT @@session.optimizer_search_depth;
@@session.optimizer_search_depth @@session.optimizer_search_depth
63 63
@ -110,6 +119,7 @@ ERROR 42000: Incorrect argument type to variable 'optimizer_search_depth'
SET @@session.optimizer_search_depth = 65550; SET @@session.optimizer_search_depth = 65550;
Warnings: Warnings:
Warning 1292 Truncated incorrect optimizer_search_depth value: '65550' Warning 1292 Truncated incorrect optimizer_search_depth value: '65550'
Warning 1287 'optimizer-search-depth=63' is deprecated and will be removed in a future release. Please use a search depth less than 63 instead
SELECT @@session.optimizer_search_depth; SELECT @@session.optimizer_search_depth;
@@session.optimizer_search_depth @@session.optimizer_search_depth
63 63