diff options
author | monty@donna.mysql.com <> | 2001-01-15 22:56:44 +0200 |
---|---|---|
committer | monty@donna.mysql.com <> | 2001-01-15 22:56:44 +0200 |
commit | 12d0f179cdeb6747683dfd5d4c8c27d32885c199 (patch) | |
tree | efab60ad01bef9812e6926f3759f8814900a4e4a /mysql-test | |
parent | 432adefd31b861419d0d8590c20cbba10d8b9d03 (diff) | |
download | mariadb-git-12d0f179cdeb6747683dfd5d4c8c27d32885c199.tar.gz |
Fixes for mysqltest
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/mysql-test-run.sh | 10 | ||||
-rw-r--r-- | mysql-test/t/bdb.test | 12 |
2 files changed, 16 insertions, 6 deletions
diff --git a/mysql-test/mysql-test-run.sh b/mysql-test/mysql-test-run.sh index 0af315e9774..670f45420c8 100644 --- a/mysql-test/mysql-test-run.sh +++ b/mysql-test/mysql-test-run.sh @@ -588,11 +588,17 @@ run_testcase () if [ x$FORCE != x1 ] ; then $ECHO "Aborting. To continue, re-run with '--force'." $ECHO - mysql_stop + if [ -z "$DO_GDB" ] && [ -z "$USE_RUNNING_SERVER" ] && [ -z "$DO_DDD" ] + then + mysql_stop + fi exit 1 fi - mysql_restart + if [ -z "$DO_GDB" ] && [ -z "$USE_RUNNING_SERVER" ] && [ -z "$DO_DDD" ] + then + mysql_restart + fi $ECHO "Resuming Tests" $ECHO "" else diff --git a/mysql-test/t/bdb.test b/mysql-test/t/bdb.test index 48fd2736284..ae341aa5155 100644 --- a/mysql-test/t/bdb.test +++ b/mysql-test/t/bdb.test @@ -33,7 +33,8 @@ INSERT INTO t1 VALUES (1,0,0),(3,1,1),(4,1,1),(8,2,2),(9,2,2),(17,3,2),(22,4,2), update t1 set parent_id=parent_id+100; select * from t1 where parent_id=102; update t1 set id=id+1000; -!$1062 update t1 set id=1024 where id=1009; +-- error 1062 +update t1 set id=1024 where id=1009; select * from t1; update ignore t1 set id=id+1; # This will change all rows select * from t1; @@ -100,12 +101,14 @@ commit; select n, "after commit" from t1; commit; insert into t1 values (5); -!$1062 insert into t1 values (4); +-- error 1062 +insert into t1 values (4); commit; select n, "after commit" from t1; set autocommit=1; insert into t1 values (6); -!$1062 insert into t1 values (4); +-- error 1062 +insert into t1 values (4); select n from t1; # nop rollback; @@ -135,7 +138,8 @@ drop table t1; CREATE TABLE t1 (id char(8) not null primary key, val int not null) type=bdb; insert into t1 values ('pippo', 12); -!$1062 insert into t1 values ('pippo', 12); # Gives error +-- error 1062 +insert into t1 values ('pippo', 12); # Gives error delete from t1; delete from t1 where id = 'pippo'; select * from t1; |