summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-09-01 17:01:23 +0200
committerunknown <msvensson@neptunus.(none)>2005-09-01 17:01:23 +0200
commite2965fb2628c9d4e557d755eeca0bc24b43fb353 (patch)
treed05f731fdf5db3f807667cbb59f41f497da23ead /mysql-test/t
parent7bc1d892038f170f90448a08292153bc2456f504 (diff)
downloadmariadb-git-e2965fb2628c9d4e557d755eeca0bc24b43fb353.tar.gz
mysqltest improvements, updates after merge + test for 5.0
client/mysqltest.c: Fixes after merge mysql-test/r/type_newdecimal.result: Update results after correction of testcase mysql-test/t/flush_read_lock_kill.test: Found extra delimiter mysql-test/t/kill.test: Found extra delimiter mysql-test/t/rpl_loaddata.test: Found extra delimiter mysql-test/t/rpl_sp.test: Found extra delimiter mysql-test/t/strict.test: Convert "!$1292" to "--error 1292" mysql-test/t/type_newdecimal.test: Missing ;
Diffstat (limited to 'mysql-test/t')
-rw-r--r--mysql-test/t/flush_read_lock_kill.test2
-rw-r--r--mysql-test/t/kill.test2
-rw-r--r--mysql-test/t/rpl_loaddata.test2
-rw-r--r--mysql-test/t/rpl_sp.test12
-rw-r--r--mysql-test/t/strict.test4
-rw-r--r--mysql-test/t/type_newdecimal.test2
6 files changed, 12 insertions, 12 deletions
diff --git a/mysql-test/t/flush_read_lock_kill.test b/mysql-test/t/flush_read_lock_kill.test
index 02384357711..de2576300dc 100644
--- a/mysql-test/t/flush_read_lock_kill.test
+++ b/mysql-test/t/flush_read_lock_kill.test
@@ -34,7 +34,7 @@ send flush tables with read lock;
connection con2;
select ((@id := kill_id) - kill_id) from t1;
---sleep 2; # leave time for FLUSH to block
+--sleep 2 # leave time for FLUSH to block
kill connection @id;
connection con1;
diff --git a/mysql-test/t/kill.test b/mysql-test/t/kill.test
index 37e11e14df5..a40aa7953fe 100644
--- a/mysql-test/t/kill.test
+++ b/mysql-test/t/kill.test
@@ -47,7 +47,7 @@ select get_lock("a", 10);
connection con2;
let $ID= `select connection_id()`;
send select get_lock("a", 10);
---real_sleep 2;
+real_sleep 2;
connection con1;
disable_query_log;
eval kill query $ID;
diff --git a/mysql-test/t/rpl_loaddata.test b/mysql-test/t/rpl_loaddata.test
index baa8dbec09d..1da41bfa913 100644
--- a/mysql-test/t/rpl_loaddata.test
+++ b/mysql-test/t/rpl_loaddata.test
@@ -140,7 +140,7 @@ select * from t2;
alter table t2 drop key day;
connection master;
delete from t2;
---error 1062;
+--error 1062
load data infile '../../std_data/rpl_loaddata2.dat' into table t2 fields
terminated by ',' optionally enclosed by '%' escaped by '@' lines terminated by
'\n##\n' starting by '>' ignore 1 lines;
diff --git a/mysql-test/t/rpl_sp.test b/mysql-test/t/rpl_sp.test
index e2a8982ebaa..5557f7675d5 100644
--- a/mysql-test/t/rpl_sp.test
+++ b/mysql-test/t/rpl_sp.test
@@ -27,7 +27,7 @@ drop function if exists fn1;
--enable_warnings
delimiter |;
---error 1418; # not deterministic
+--error 1418 # not deterministic
create procedure foo()
begin
declare b int;
@@ -85,7 +85,7 @@ call foo2();
--replace_column 2 # 5 #
show binlog events from 605;
---error 1418;
+--error 1418
alter procedure foo2 contains sql;
# SP with definer's right
@@ -106,7 +106,7 @@ grant SELECT, INSERT on mysqltest1.t2 to "zedjzlcsjhd"@127.0.0.1;
connect (con1,127.0.0.1,zedjzlcsjhd,,mysqltest1,$MASTER_MYPORT,);
connection con1;
---error 1419; # only full-global-privs user can create a routine
+--error 1419 # only full-global-privs user can create a routine
create procedure foo4()
deterministic
insert into t1 values (10);
@@ -127,7 +127,7 @@ delimiter ;|
# I add ,0 so that it does not print the error in the test output,
# because this error is hostname-dependent
---error 1142,0;
+--error 1142,0
call foo4(); # invoker has no INSERT grant on table => failure
show warnings;
@@ -136,7 +136,7 @@ call foo3(); # success (definer == root)
show warnings;
--replace_result localhost.localdomain localhost 127.0.0.1 localhost
---error 1142,0;
+--error 1142,0
call foo4(); # definer's rights => failure
show warnings;
@@ -226,7 +226,7 @@ select * from mysql.proc where db='mysqltest1';
# And now triggers
connection con1;
---error 1227;
+--error 1227
create trigger trg before insert on t1 for each row set new.a= 10;
connection master;
diff --git a/mysql-test/t/strict.test b/mysql-test/t/strict.test
index 302acc9bef2..20f0b072bfd 100644
--- a/mysql-test/t/strict.test
+++ b/mysql-test/t/strict.test
@@ -315,7 +315,7 @@ INSERT INTO t1 (col2) VALUES(CAST('0000-00-00' AS DATETIME));
## Test INSERT with CAST AS DATETIME into TIMESTAMP
# All test cases expected to fail should return
# SQLSTATE 22007 <invalid datetime value>
-!$1292
+--error 1292
INSERT INTO t1 (col3) VALUES(CAST('0000-10-31 15:30' AS DATETIME));
-- should return OK
-- We accept this to be a failure
@@ -406,7 +406,7 @@ INSERT INTO t1 (col2) VALUES(CONVERT('0000-00-00',DATETIME));
## Test INSERT with CONVERT to DATETIME into DATETIME
# All test cases expected to fail should return
# SQLSTATE 22007 <invalid datetime value>
-!$1292
+--error 1292
INSERT INTO t1 (col3) VALUES(CONVERT('0000-10-31 15:30',DATETIME));
-- should return OK
-- We accept this to be a failure
diff --git a/mysql-test/t/type_newdecimal.test b/mysql-test/t/type_newdecimal.test
index 55d004b361f..39c5888a1d9 100644
--- a/mysql-test/t/type_newdecimal.test
+++ b/mysql-test/t/type_newdecimal.test
@@ -494,7 +494,7 @@ select 0.8 = 0.7 + 0.1;
#
#drop procedure p1;
#
-delimiter //
+delimiter //;
#
create procedure p1 () begin
declare v1, v2, v3, v4 decimal(16,12); declare v5 int;