diff options
author | unknown <kostja@bodhi.(none)> | 2007-07-24 22:57:26 +0400 |
---|---|---|
committer | unknown <kostja@bodhi.(none)> | 2007-07-24 22:57:26 +0400 |
commit | 607ab14cf767ed0187e0c050ed61cb4ebaf34bb7 (patch) | |
tree | 0c08dbb0f6adf471efce8ca848950431c0a9380c /mysql-test/r/sp-prelocking.result | |
parent | 47507276aa628ab51878ca36f0af47541ac04755 (diff) | |
parent | be7b4043b95f92781f7ef3e425f0b0c148b8306b (diff) | |
download | mariadb-git-607ab14cf767ed0187e0c050ed61cb4ebaf34bb7.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into bodhi.(none):/opt/local/work/mysql-5.0-runtime
Diffstat (limited to 'mysql-test/r/sp-prelocking.result')
-rw-r--r-- | mysql-test/r/sp-prelocking.result | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/r/sp-prelocking.result b/mysql-test/r/sp-prelocking.result index 5eac54803f0..c19bd1abd26 100644 --- a/mysql-test/r/sp-prelocking.result +++ b/mysql-test/r/sp-prelocking.result @@ -267,4 +267,26 @@ drop table bug_27907_logs; insert into bug_27907_t1(a) values (1); ERROR 42S02: Table 'test.bug_27907_logs' doesn't exist drop table bug_27907_t1; + +Bug#22427 create table if not exists + stored function results in +inconsistent behavior + +Add a test case, the bug itself was fixed by the patch for +Bug#20662 + +drop table if exists t1; +drop function if exists f_bug22427; +create table t1 (i int); +insert into t1 values (1); +create function f_bug22427() returns int return (select max(i) from t1); +select f_bug22427(); +f_bug22427() +1 +create table if not exists t1 select f_bug22427() as i; +Warnings: +Note 1050 Table 't1' already exists +create table t1 select f_bug22427() as i; +ERROR 42S01: Table 't1' already exists +drop table t1; +drop function f_bug22427; End of 5.0 tests |