mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
5280af2b4e
- Moved tests depending on utf8 characters from create to create_utf8 - Fixed some tests in create and sp that wrongly tried to create table from non existing table on existing table. In a later patch we may first check if table exists, in which case the error message would change. - Updated results for partition_debug_tokudb
25 lines
639 B
Text
25 lines
639 B
Text
set @save_use_stat_tables=@@global.use_stat_tables;
|
|
SET GLOBAL net_write_timeout = 900;
|
|
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;
|
|
connection default;
|
|
DROP TABLE A;
|
|
DROP PROCEDURE p_analyze;
|
|
DROP FUNCTION rnd3;
|
|
SET GLOBAL use_stat_tables = @save_use_stat_tables;
|
|
SET GLOBAL net_write_timeout = DEFAULT;
|