diff options
author | unknown <serg@sergbook.mysql.com> | 2007-03-24 17:16:53 +0200 |
---|---|---|
committer | unknown <serg@sergbook.mysql.com> | 2007-03-24 17:16:53 +0200 |
commit | 99d1dee47301ba8313dd6fadeaabedcf60c38d27 (patch) | |
tree | b9c03afd33f12eacdee1a66fbe3bd8f2a850b5dd /mysql-test/r/sp.result | |
parent | aa42093553ad7b066b96ca3e49facc02b6b8981e (diff) | |
parent | 79bfd0b958f4bade19e0f49ae379b6502cc145fe (diff) | |
download | mariadb-git-99d1dee47301ba8313dd6fadeaabedcf60c38d27.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.0-marvel
into sergbook.mysql.com:/usr/home/serg/Abk/mysql-5.0
mysql-test/r/sp.result:
Auto merged
mysql-test/t/sp.test:
Auto merged
sql/ha_ndbcluster.cc:
Auto merged
sql/handler.cc:
Auto merged
sql/mysql_priv.h:
Auto merged
sql/sp_head.cc:
Auto merged
sql/sql_base.cc:
Auto merged
sql/sql_class.h:
Auto merged
sql/sql_insert.cc:
Auto merged
sql/sql_table.cc:
Auto merged
sql/sql_view.cc:
Auto merged
Diffstat (limited to 'mysql-test/r/sp.result')
-rw-r--r-- | mysql-test/r/sp.result | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mysql-test/r/sp.result b/mysql-test/r/sp.result index cf3cf07630a..ddd2369d36d 100644 --- a/mysql-test/r/sp.result +++ b/mysql-test/r/sp.result @@ -5970,3 +5970,28 @@ SUM(f2) bug25373(f1) DROP FUNCTION bug25373| DROP TABLE t3| drop table t1,t2; +CREATE TABLE t1 (a int auto_increment primary key) engine=MyISAM; +CREATE TABLE t2 (a int auto_increment primary key, b int) engine=innodb; +set @a=0; +CREATE function bug27354() RETURNS int deterministic +begin +insert into t1 values (null); +set @a=@a+1; +return @a; +end| +update t2 set b=1 where a=bug27354(); +select count(t_1.a),count(t_2.a) from t1 as t_1, t2 as t_2 /* must be 0,0 */; +count(t_1.a) count(t_2.a) +0 0 +insert into t2 values (1,1),(2,2),(3,3); +update t2 set b=-b where a=bug27354(); +select * from t2 /* must return 1,-1 ... */; +a b +1 -1 +2 -2 +3 -3 +select count(*) from t1 /* must be 3 */; +count(*) +3 +drop table t1,t2; +drop function bug27354; |