diff options
author | Gopal Shankar <gopal.shankar@oracle.com> | 2012-01-30 19:00:04 +0530 |
---|---|---|
committer | Gopal Shankar <gopal.shankar@oracle.com> | 2012-01-30 19:00:04 +0530 |
commit | 225f0cd53d547927dc6d528a4e78c1be5e07cbc6 (patch) | |
tree | ece8fe569fecaea85d89fddd305cae0b0870a873 /mysql-test/r/sp-bugs.result | |
parent | 166131c51a0c09c239421fa0887e6a0fe8213b6e (diff) | |
parent | 7f0f18cd6ecd5a40f45393bfcc678350855f1513 (diff) | |
download | mariadb-git-225f0cd53d547927dc6d528a4e78c1be5e07cbc6.tar.gz |
Merged from mysql-5.1-security
Diffstat (limited to 'mysql-test/r/sp-bugs.result')
-rw-r--r-- | mysql-test/r/sp-bugs.result | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/r/sp-bugs.result b/mysql-test/r/sp-bugs.result index 2425f40d9c2..7d08ffb2f71 100644 --- a/mysql-test/r/sp-bugs.result +++ b/mysql-test/r/sp-bugs.result @@ -111,4 +111,23 @@ DROP FUNCTION db1.f1; DROP TABLE db1.t1; DROP DATABASE db1; DROP DATABASE db2; +# +# Bug#13105873:valgrind warning:possible crash in foreign +# key handling on subsequent create table if not exists +# +DROP DATABASE IF EXISTS testdb; +CREATE DATABASE testdb; +USE testdb; +CREATE TABLE t1 (id1 INT PRIMARY KEY); +CREATE PROCEDURE `p1`() +BEGIN +CREATE TABLE IF NOT EXISTS t2(id INT PRIMARY KEY, +CONSTRAINT FK FOREIGN KEY (id) REFERENCES t1( id1 )); +END$ +CALL p1(); +# below stmt should not return valgrind warnings +CALL p1(); +Warnings: +Note 1050 Table 't2' already exists +DROP DATABASE testdb; End of 5.1 tests |