diff options
author | Magne Mahre <magne.mahre@sun.com> | 2010-02-17 10:18:17 +0100 |
---|---|---|
committer | Magne Mahre <magne.mahre@sun.com> | 2010-02-17 10:18:17 +0100 |
commit | 7178879c8036277075ef2c83265e5cbb01e0cf22 (patch) | |
tree | aaccb83f92ede50e6323716295584410abd5c643 /mysql-test/t | |
parent | 6270e3be3caea3fd478f4ba8042012ffc4cca07f (diff) | |
download | mariadb-git-7178879c8036277075ef2c83265e5cbb01e0cf22.tar.gz |
WL#5154 Remove deprecated 4.1 features
A set of program options and variables was deprecated in
MySQL 5.1, and is hereby removed.
client/mysql.cc:
--no-auto-rehash (-A) is no longer deprecated
--no-named-commands (-g) is now removed
--skip-line-numbers (-L) is no longer deprecated
--set-variable (-O) is now removed
--no-pager is now removed
client/mysqlbinlog.cc:
--position is now removed (use --start-position)
-j is now equivalent with --start-position
client/mysqldump.c:
--first-slave is now removed
--no-set-names (-N) is now removed
--set-variable (-O) is now removed
mysql-test/include/default_mysqld.cnf:
default-character-set is removed as an option
character-set-server is equivalent.
mysql-test/t/bug47671-master.opt:
default-character-set option is removed
character-set-server is equivalent
mysql-test/t/ctype_latin1_de-master.opt:
default-character-set option is removed
character-set-server is equivalent
mysql-test/t/ctype_ucs2_def-master.opt:
default-collation is removed
collation-server is equicalent
scripts/mysqld_multi.sh:
--config-file has been superseded by
--defaults-extra-file
sql/mysql_priv.h:
Removed the version number in the deprecation
warning text, as decided by ServerPT.
sql/mysqld.cc:
--default-character-set (-C) is removed
--default-collation is removed
--log-long-format (-0) is removed
--safe-show-database is removed
--set-variable (-O) is removed
sql/sql_yacc.yy:
The FRAC_SECOND keyword is removed
sql/sys_vars.cc:
The sql_log_update system variable is removed
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/bug47671-master.opt | 2 | ||||
-rw-r--r-- | mysql-test/t/ctype_latin1_de-master.opt | 2 | ||||
-rw-r--r-- | mysql-test/t/ctype_ucs2_def-master.opt | 2 | ||||
-rw-r--r-- | mysql-test/t/func_time.test | 33 | ||||
-rw-r--r-- | mysql-test/t/mysqlbinlog.test | 12 | ||||
-rw-r--r-- | mysql-test/t/ps-master.opt | 2 | ||||
-rw-r--r-- | mysql-test/t/show_check-master.opt | 2 | ||||
-rw-r--r-- | mysql-test/t/union-master.opt | 2 | ||||
-rw-r--r-- | mysql-test/t/variables.test | 1 |
9 files changed, 15 insertions, 43 deletions
diff --git a/mysql-test/t/bug47671-master.opt b/mysql-test/t/bug47671-master.opt index 0afdf49e022..ad54fbc3467 100644 --- a/mysql-test/t/bug47671-master.opt +++ b/mysql-test/t/bug47671-master.opt @@ -1 +1 @@ ---default-character-set=utf8 --skip-character-set-client-handshake +--character-set-server=utf8 --skip-character-set-client-handshake diff --git a/mysql-test/t/ctype_latin1_de-master.opt b/mysql-test/t/ctype_latin1_de-master.opt index 79fdb1c63dc..0c072424de9 100644 --- a/mysql-test/t/ctype_latin1_de-master.opt +++ b/mysql-test/t/ctype_latin1_de-master.opt @@ -1 +1 @@ ---default-character-set=latin1 --default-collation=latin1_german2_ci +--character-set-server=latin1 --collation-server=latin1_german2_ci diff --git a/mysql-test/t/ctype_ucs2_def-master.opt b/mysql-test/t/ctype_ucs2_def-master.opt index 84d2a52b639..711ec42bd8a 100644 --- a/mysql-test/t/ctype_ucs2_def-master.opt +++ b/mysql-test/t/ctype_ucs2_def-master.opt @@ -1 +1 @@ ---default-collation=ucs2_unicode_ci --default-character-set=ucs2,latin1 +--collation-server=ucs2_unicode_ci --character-set-server=ucs2,latin1 diff --git a/mysql-test/t/func_time.test b/mysql-test/t/func_time.test index 95b8a8ec38d..219a857a597 100644 --- a/mysql-test/t/func_time.test +++ b/mysql-test/t/func_time.test @@ -345,10 +345,6 @@ select date_add(date,INTERVAL "1" QUARTER) from t1; select timestampadd(MINUTE, 1, date) from t1; select timestampadd(WEEK, 1, date) from t1; select timestampadd(SQL_TSI_SECOND, 1, date) from t1; -# mysqltest.c discards an expected 'deprecated' warning on prepare stage ---disable_ps_protocol -select timestampadd(SQL_TSI_FRAC_SECOND, 1, date) from t1; ---enable_ps_protocol select timestampdiff(MONTH, '2001-02-01', '2001-05-01') as a; select timestampdiff(YEAR, '2002-05-01', '2001-01-01') as a; @@ -360,10 +356,6 @@ select timestampdiff(SQL_TSI_HOUR, '2001-02-01', '2001-05-01') as a; select timestampdiff(SQL_TSI_DAY, '2001-02-01', '2001-05-01') as a; select timestampdiff(SQL_TSI_MINUTE, '2001-02-01 12:59:59', '2001-05-01 12:58:59') as a; select timestampdiff(SQL_TSI_SECOND, '2001-02-01 12:59:59', '2001-05-01 12:58:58') as a; -# mysqltest.c discards an expected 'deprecated' warning on prepare stage ---disable_ps_protocol -select timestampdiff(SQL_TSI_FRAC_SECOND, '2001-02-01 12:59:59.120000', '2001-05-01 12:58:58.119999') as a; ---enable_ps_protocol select timestampdiff(SQL_TSI_DAY, '1986-02-01', '1986-03-01') as a1, timestampdiff(SQL_TSI_DAY, '1900-02-01', '1900-03-01') as a2, @@ -602,9 +594,6 @@ select isnull(week(now() + 0)), isnull(week(now() + 0.2)), --echo End of 4.1 tests -explain extended select timestampdiff(SQL_TSI_WEEK, '2001-02-01', '2001-05-01') as a1, - timestampdiff(SQL_TSI_FRAC_SECOND, '2001-02-01 12:59:59.120000', '2001-05-01 12:58:58.119999') as a2; - # # Bug #10590: %h, %I, and %l format specifies should all return results in # the 0-11 range @@ -797,27 +786,11 @@ select DATE_ADD(20071108, INTERVAL 1 DAY); select LAST_DAY('2007-12-06 08:59:19.05') - INTERVAL 1 SECOND; -# # Bug#33834: FRAC_SECOND: Applicability not clear in documentation # -# Show that he use of FRAC_SECOND, for anything other than -# TIMESTAMPADD / TIMESTAMPDIFF, is a server error. - -# mysqltest.c discards an expected 'deprecated' warning on prepare stage ---disable_ps_protocol -SELECT TIMESTAMPADD(FRAC_SECOND, 1, '2008-02-18'); -SELECT TIMESTAMPDIFF(FRAC_SECOND, '2008-02-17', '2008-02-18'); ---enable_ps_protocol - ---error ER_PARSE_ERROR -SELECT DATE_ADD('2008-02-18', INTERVAL 1 FRAC_SECOND); ---error ER_PARSE_ERROR -SELECT DATE_SUB('2008-02-18', INTERVAL 1 FRAC_SECOND); - ---error ER_PARSE_ERROR -SELECT '2008-02-18' + INTERVAL 1 FRAC_SECOND; ---error ER_PARSE_ERROR -SELECT '2008-02-18' - INTERVAL 1 FRAC_SECOND; +# Test case removed since FRAC_SECOND was deprecated and +# removed as part of WL#5154 +# # # Bug #36466: diff --git a/mysql-test/t/mysqlbinlog.test b/mysql-test/t/mysqlbinlog.test index 55593bed124..f8172696215 100644 --- a/mysql-test/t/mysqlbinlog.test +++ b/mysql-test/t/mysqlbinlog.test @@ -65,13 +65,13 @@ select "--- --database --" as ""; --replace_regex /SQL_LOAD_MB-[0-9]-[0-9]/SQL_LOAD_MB-#-#/ --exec $MYSQL_BINLOG --short-form --local-load=$MYSQLTEST_VARDIR/tmp/ --database=nottest $MYSQLD_DATADIR/master-bin.000001 2> /dev/null -# this test for position option +# this test for start-position option --disable_query_log -select "--- --position --" as ""; +select "--- --start-position --" as ""; --enable_query_log --replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR --replace_regex /SQL_LOAD_MB-[0-9]-[0-9]/SQL_LOAD_MB-#-#/ ---exec $MYSQL_BINLOG --short-form --local-load=$MYSQLTEST_VARDIR/tmp/ --position=1074 $MYSQLD_DATADIR/master-bin.000002 +--exec $MYSQL_BINLOG --short-form --local-load=$MYSQLTEST_VARDIR/tmp/ --start-position=1074 $MYSQLD_DATADIR/master-bin.000002 # These are tests for remote binlog. # They should return the same as previous test. @@ -103,11 +103,11 @@ select "--- --database --" as ""; # Strangely but this works --disable_query_log -select "--- --position --" as ""; +select "--- --start-position --" as ""; --enable_query_log --replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR --replace_regex /SQL_LOAD_MB-[0-9]-[0-9]/SQL_LOAD_MB-#-#/ ---exec $MYSQL_BINLOG --short-form --local-load=$MYSQLTEST_VARDIR/tmp/ --read-from-remote-server --position=1074 --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000002 +--exec $MYSQL_BINLOG --short-form --local-load=$MYSQLTEST_VARDIR/tmp/ --read-from-remote-server --start-position=1074 --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000002 # Bug#7853 mysqlbinlog does not accept input from stdin @@ -120,7 +120,7 @@ select "--- reading stdin --" as ""; --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR --replace_regex /SQL_LOAD_MB-[0-9]-[0-9]/SQL_LOAD_MB-#-#/ ---exec $MYSQL_BINLOG --short-form --position=79 - < $MYSQL_TEST_DIR/std_data/trunc_binlog.000001 +--exec $MYSQL_BINLOG --short-form --start-position=79 - < $MYSQL_TEST_DIR/std_data/trunc_binlog.000001 drop table t1,t2; # diff --git a/mysql-test/t/ps-master.opt b/mysql-test/t/ps-master.opt index 31c287d2bb5..1deeb6c9c63 100644 --- a/mysql-test/t/ps-master.opt +++ b/mysql-test/t/ps-master.opt @@ -1 +1 @@ ---log-output=table,file --log-slow-queries --log-long-format --log-queries-not-using-indexes +--log-output=table,file --log-slow-queries --log-queries-not-using-indexes diff --git a/mysql-test/t/show_check-master.opt b/mysql-test/t/show_check-master.opt index aab832e2848..108caf42203 100644 --- a/mysql-test/t/show_check-master.opt +++ b/mysql-test/t/show_check-master.opt @@ -1 +1 @@ ---log-output=table,file --log-slow-queries --log-long-format --log-queries-not-using-indexes --myisam-recover="" +--log-output=table,file --log-slow-queries --log-queries-not-using-indexes --myisam-recover="" diff --git a/mysql-test/t/union-master.opt b/mysql-test/t/union-master.opt index 3eb98fc3d6b..c852f488260 100644 --- a/mysql-test/t/union-master.opt +++ b/mysql-test/t/union-master.opt @@ -1 +1 @@ ---log-slow-queries --log-long-format --log-queries-not-using-indexes +--log-slow-queries --log-queries-not-using-indexes diff --git a/mysql-test/t/variables.test b/mysql-test/t/variables.test index d4b88fc6f9c..cab37510931 100644 --- a/mysql-test/t/variables.test +++ b/mysql-test/t/variables.test @@ -346,7 +346,6 @@ set sql_big_tables=1; set sql_buffer_result=1; set sql_log_bin=1; set sql_log_off=1; -set sql_log_update=1; set sql_low_priority_updates=1; set sql_quote_show_create=1; set sql_safe_updates=1; |