diff options
author | Elena Stepanova <elenst@ubuntu11.home> | 2012-09-03 22:01:52 +0400 |
---|---|---|
committer | Elena Stepanova <elenst@ubuntu11.home> | 2012-09-03 22:01:52 +0400 |
commit | dab998d0e155edbd38b892eaa1478a9f4a0a85b1 (patch) | |
tree | f361eadd9961b3d5352460eaf3ae2a425d15b7a6 /mysql-test/r/mdev-504.result | |
parent | cfde11fc4f02e701b856311769d70ccc47d16539 (diff) | |
download | mariadb-git-dab998d0e155edbd38b892eaa1478a9f4a0a85b1.tar.gz |
Preliminary test case for MDEV-504 in order to reproduce the problem
Diffstat (limited to 'mysql-test/r/mdev-504.result')
-rw-r--r-- | mysql-test/r/mdev-504.result | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mysql-test/r/mdev-504.result b/mysql-test/r/mdev-504.result new file mode 100644 index 00000000000..e178127cf2a --- /dev/null +++ b/mysql-test/r/mdev-504.result @@ -0,0 +1,21 @@ +CREATE TABLE A ( +pk INTEGER AUTO_INCREMENT PRIMARY KEY, +fdate DATE +) ENGINE=MyISAM; +CREATE PROCEDURE p_analyze() +BEGIN +DECLARE attempts INTEGER DEFAULT 100; +wl_loop: WHILE attempts > 0 DO +ANALYZE TABLE A; +SET attempts = attempts - 1; +END WHILE wl_loop; +END | +CREATE FUNCTION rnd3() RETURNS INT +BEGIN +RETURN ROUND(3 * RAND() + 0.5); +END | +SET GLOBAL use_stat_tables = PREFERABLY; +DROP TABLE A; +DROP PROCEDURE p_analyze; +DROP FUNCTION rnd3; +SET GLOBAL use_stat_tables = DEFAULT; |