diff options
author | guilhem@mysql.com <> | 2006-02-18 19:07:32 +0100 |
---|---|---|
committer | guilhem@mysql.com <> | 2006-02-18 19:07:32 +0100 |
commit | 473cfdfcb2b95ba751ee93c8ac44c148778b569f (patch) | |
tree | 752fc742b26a858079ca0b5b18f032c03f5a605b /mysql-test/t | |
parent | 46620c4ab94e1ec664c53622f235969fe11deb24 (diff) | |
parent | 37c1744a036c27692df20476351ec31031fce086 (diff) | |
download | mariadb-git-473cfdfcb2b95ba751ee93c8ac44c148778b569f.tar.gz |
Merge mysql.com:/home/mysql_src/mysql-5.0
into mysql.com:/home/mysql_src/mysql-5.1-new; will fix manually sp_head.cc and mysqld.cc later soon.
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/rpl_sp-slave.opt | 2 | ||||
-rw-r--r-- | mysql-test/t/rpl_sp.test | 10 | ||||
-rw-r--r-- | mysql-test/t/sql_mode.test | 9 |
3 files changed, 14 insertions, 7 deletions
diff --git a/mysql-test/t/rpl_sp-slave.opt b/mysql-test/t/rpl_sp-slave.opt index 611ee1f33be..709a224fd92 100644 --- a/mysql-test/t/rpl_sp-slave.opt +++ b/mysql-test/t/rpl_sp-slave.opt @@ -1 +1 @@ ---log_bin_trust_routine_creators=0 --slave-skip-errors=1062 +--log_bin_trust_routine_creators=0 diff --git a/mysql-test/t/rpl_sp.test b/mysql-test/t/rpl_sp.test index 73f14bd49b3..d5bd7c75648 100644 --- a/mysql-test/t/rpl_sp.test +++ b/mysql-test/t/rpl_sp.test @@ -296,21 +296,19 @@ alter table t2 add unique (a); drop function fn1; delimiter |; -create function fn1() +create function fn1(x int) returns int begin - insert into t2 values(20),(20); + insert into t2 values(x),(x); return 10; end| delimiter ;| -# Because of BUG#14769 the following statement requires that we start -# slave with --slave-skip-errors=1062. When that bug is fixed, that -# option can be removed. +do fn1(100); --error 1062 -select fn1(); +select fn1(20); select * from t2; sync_slave_with_master; diff --git a/mysql-test/t/sql_mode.test b/mysql-test/t/sql_mode.test index 08a03df3274..b4225ef8c4e 100644 --- a/mysql-test/t/sql_mode.test +++ b/mysql-test/t/sql_mode.test @@ -255,4 +255,13 @@ create view v2 as select a from t2 where a in (select a from v1); drop view v2, v1; drop table t1, t2; +select @@sql_mode; +set sql_mode=2097152; +select @@sql_mode; +set sql_mode=16384+(65536*4); +select @@sql_mode; +--error 1231 +set sql_mode=2147483648; # that mode does not exist +select @@sql_mode; + SET @@SQL_MODE=@OLD_SQL_MODE; |