diff options
author | unknown <monty@hundin.mysql.fi> | 2002-01-31 04:36:58 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-01-31 04:36:58 +0200 |
commit | 83c83a0223664b2937e9522afb47e7c78e6b425f (patch) | |
tree | f5fa2405fe86664ded2345a4330fe4b8a31e8666 /mysql-test/t/innodb.test | |
parent | 85278245af45fc301dc7940bec9a3434003285a6 (diff) | |
download | mariadb-git-83c83a0223664b2937e9522afb47e7c78e6b425f.tar.gz |
Fixes for new getopt
Bug fix when using --no-deaults
Sets ref_length to right value (faster rnd_pos() handling in InnoDB).
Fixed problem with multi-table-delete and InnoDB
Fixed problem with truncate table, which required a COMMIT before.
Fixed multi-table-delete bug with InnoDB.
Remove not used index from EXPLAIN
Docs/manual.texi:
ChangeLog
include/my_getopt.h:
Removed compiler warnings
myisam/myisamchk.c:
Fixes for new getopt
mysql-test/r/explain.result:
Updated test results
mysql-test/r/innodb.result:
Updated test results
mysql-test/r/join.result:
Updated test results
mysql-test/t/innodb.test:
Updated test results
mysys/default.c:
Bug fix when using --no-defaults
mysys/my_getopt.c:
Fixes for new getopt
sql/ha_innodb.cc:
Sets ref_length to right value (faster rnd_pos() handling).
Fixed problem with multi-table-delete.
Fixed problem with truncate table, which required a COMMIT before.
sql/opt_sum.cc:
Remove not used index from EXPLAIN
sql/sql_cache.cc:
Fixed core dump bug when not using query cache
sql/sql_select.cc:
Remove not used index from EXPLAIN
Diffstat (limited to 'mysql-test/t/innodb.test')
-rw-r--r-- | mysql-test/t/innodb.test | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/mysql-test/t/innodb.test b/mysql-test/t/innodb.test index a26049fcd83..1b7ee99e15a 100644 --- a/mysql-test/t/innodb.test +++ b/mysql-test/t/innodb.test @@ -532,9 +532,10 @@ drop database mysqltest; show tables from mysqltest; # -# Test truncate table +# Test truncate table with and without auto_commit # +set autocommit=0; create table t1 (a int not null) type= innodb; insert into t1 values(1),(2); --error 1192 @@ -547,6 +548,18 @@ delete from t1; select * from t1; commit; drop table t1; +set autocommit=1; + +create table t1 (a int not null) type= innodb; +insert into t1 values(1),(2); +truncate table t1; +insert into t1 values(1),(2); +select * from t1; +truncate table t1; +insert into t1 values(1),(2); +delete from t1; +select * from t1; +drop table t1; # # Test of how ORDER BY works when doing it on the whole table |