MXS-1702: Update tests

Updated tests with new expected output. Also took new function into use
and removed the old one.

Since the comment removal isn't added yet, one of the tests is expected to
fail and it is temporarily disabled.
This commit is contained in:
Markus Mäkelä
2018-03-16 10:07:01 +02:00
parent a627e342f3
commit 9fe25c8003
6 changed files with 95 additions and 147 deletions

View File

@ -1,19 +1,19 @@
select md5("?") =?, sleep(?), rand(?);
select * from my1 where md5("?") =?;
select md5("?") =?;
select * from my1 where md5("?") =?;
select md5(?) =?, sleep(?), rand(?);
select * from my1 where md5(?) =?;
select md5(?) =?;
select * from my1 where md5(?) =?;
select sleep(?);
select * from tst where lname='?';
select * from tst where lname=?;
select ?,?,?,?,?,? from tst;
select * from tst where fname like '?';
select * from tst where lname like '?' order by fname;
insert into tst values ("?","?"),("?",null),("?","?");
select * from tst where fname like ?;
select * from tst where lname like ? order by fname;
insert into tst values (?,?),(?,null),(?,?);
drop table if exists tst;
create table tst(fname varchar(?), lname varchar(?));
update tst set lname="?" where fname like '?' or lname like '?';
delete from tst where lname like '?' and fname like '?';
select ? from tst where fname='?' or lname like '?';
select ?,?,?,? from tst where name='?' or name='?' or name='?' or name='?';
update tst set lname=? where fname like ? or lname like ?;
delete from tst where lname like ? and fname like ?;
select ? from tst where fname=? or lname like ?;
select ?,?,?,? from tst where name=? or name=? or name=? or name=?;
select count(?),count(?),count(?),count(?),count (?),count(?) from tst;
begin;
BEGIN
@ -55,25 +55,25 @@ drop table t1;
DROP TABLE T1;
DROP TABLE T2;
END //
INSERT INTO myCity VALUES (?, '?');
INSERT INTO myCity VALUES (?, '?');
INSERT INTO myCity VALUES (?, ?);
INSERT INTO myCity VALUES (?, ?);
insert into t1 values(?);
insert into t1 values(?);
INSERT INTO T2 VALUES (@@?);
INSERT INTO T2 VALUES (@@server_id);
ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL ? HOUR
RETURN CONCAT('?',s,'?');
RETURN CONCAT(?,s,?);
RETURNS CHAR(?) DETERMINISTIC
SELECT @?;
SELECT @?;
SELECT @a;
SELECT @a;
SELECT COUNT(*) FROM myCity;
select count(*) from t1;
select count(*) from t1;
select count(*) from user where user='?';
select count(*) from user where user=?;
SELECT COUNT(*) INTO param1 FROM t;
SELECT IF(@? <> @?,'?','?') AS result;
SELECT IF(id <> @?,'?','?') AS result FROM T2;
SELECT IF(@@? <> @?,'?','?') AS result;
SELECT (@@?) INTO @?;
SELECT IF(@a <> @TMASTER_ID,?,?) AS result;
SELECT IF(id <> @TMASTER_ID,?,?) AS result FROM T2;
SELECT IF(@@server_id <> @TMASTER_ID,?,?) AS result;
SELECT (@@server_id) INTO @a;
set autocommit=?;
SET autocommit=?;
SET autocommit = ?;