mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
faaace2fdd
- mysqlslap result file update after merge. - Fix skipping certain tests when running test suite as root, got broken somehow. mysql-test/mysql-test-run.pl: Somehow skipping tests when running as root got broken. The mysqltest if() no longer seems to accept YES as a true value, so use 1 for true value instead. mysql-test/r/mysqlslap.result: Result file update after change in engine behaviour of mysqlslap. mysql-test/t/mysqld_option_err.test: This test does not work when run as root.
221 lines
6.2 KiB
Text
221 lines
6.2 KiB
Text
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
select * from t1;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64)) Engine = heap;
|
|
create table t2(foo1 varchar(32), foo2 varchar(32));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
insert into t2 values ('test', 'test2');
|
|
select * from t1;
|
|
select * from t2;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64)) Engine = myisam;
|
|
create table t2(foo1 varchar(32), foo2 varchar(32));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
insert into t2 values ('test', 'test2');
|
|
select * from t1;
|
|
select * from t2;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64)) Engine = heap;
|
|
create table t2(foo1 varchar(32), foo2 varchar(32));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
insert into t2 values ('test', 'test2');
|
|
SHOW TABLES;
|
|
select * from t1;
|
|
select * from t2;
|
|
SHOW TABLES;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64)) Engine = myisam;
|
|
create table t2(foo1 varchar(32), foo2 varchar(32));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
insert into t2 values ('test', 'test2');
|
|
SHOW TABLES;
|
|
select * from t1;
|
|
select * from t2;
|
|
SHOW TABLES;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64)) Engine = heap;
|
|
create table t2(foo1 varchar(32), foo2 varchar(32));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
insert into t2 values ('test', 'test2');
|
|
SET AUTOCOMMIT=0;
|
|
SHOW TABLES;
|
|
SET AUTOCOMMIT=0;
|
|
select * from t1;
|
|
COMMIT;
|
|
select * from t2;
|
|
COMMIT;
|
|
select * from t1;
|
|
COMMIT;
|
|
select * from t2;
|
|
COMMIT;
|
|
select * from t1;
|
|
COMMIT;
|
|
select * from t2;
|
|
COMMIT;
|
|
COMMIT;
|
|
SHOW TABLES;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
CREATE SCHEMA `mysqlslap`;
|
|
use mysqlslap;
|
|
CREATE TABLE t1 (id int, name varchar(64)) Engine = myisam;
|
|
create table t2(foo1 varchar(32), foo2 varchar(32));
|
|
INSERT INTO t1 VALUES (1, 'This is a test');
|
|
insert into t2 values ('test', 'test2');
|
|
SET AUTOCOMMIT=0;
|
|
SHOW TABLES;
|
|
SET AUTOCOMMIT=0;
|
|
select * from t1;
|
|
COMMIT;
|
|
select * from t2;
|
|
COMMIT;
|
|
select * from t1;
|
|
COMMIT;
|
|
select * from t2;
|
|
COMMIT;
|
|
select * from t1;
|
|
COMMIT;
|
|
select * from t2;
|
|
COMMIT;
|
|
COMMIT;
|
|
SHOW TABLES;
|
|
DROP SCHEMA IF EXISTS `mysqlslap`;
|
|
#
|
|
# Bug #29985: mysqlslap -- improper handling of resultsets in SPROCs
|
|
#
|
|
DROP PROCEDURE IF EXISTS p1;
|
|
CREATE PROCEDURE p1() SELECT 1;
|
|
DROP PROCEDURE p1;
|