mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into neptunus.(none):/home/msvensson/mysql/mysql-5.0 ndb/src/ndbapi/ndberror.c: Auto merged sql/ha_innodb.cc: Auto merged
This commit is contained in:
@ -5020,4 +5020,18 @@ auto fld1 companynr fld3 fld4 fld5 fld6
|
||||
3 011402 37 Romans scholastics jarring
|
||||
4 011403 37 intercepted audiology tinily
|
||||
INSERT DELAYED INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily','');
|
||||
drop table t1, t2;
|
||||
create table t3 engine=archive select * from t2;
|
||||
select * from t3 where fld3='bonfire';
|
||||
auto fld1 companynr fld3 fld4 fld5 fld6
|
||||
1191 068504 00 bonfire corresponds positively
|
||||
select count(*) from t3;
|
||||
count(*)
|
||||
1203
|
||||
rename table t3 to t4;
|
||||
select * from t4 where fld3='bonfire';
|
||||
auto fld1 companynr fld3 fld4 fld5 fld6
|
||||
1191 068504 00 bonfire corresponds positively
|
||||
select count(*) from t4;
|
||||
count(*)
|
||||
1203
|
||||
drop table t1, t2, t4;
|
||||
|
@ -1312,4 +1312,15 @@ INSERT DELAYED INTO t2 VALUES (4,011403,37,'intercepted','audiology','tinily',''
|
||||
#
|
||||
# Cleanup, test is over
|
||||
#
|
||||
drop table t1, t2;
|
||||
|
||||
#
|
||||
# Test rename of table
|
||||
#
|
||||
create table t3 engine=archive select * from t2;
|
||||
select * from t3 where fld3='bonfire';
|
||||
select count(*) from t3;
|
||||
rename table t3 to t4;
|
||||
select * from t4 where fld3='bonfire';
|
||||
select count(*) from t4;
|
||||
|
||||
drop table t1, t2, t4;
|
||||
|
Reference in New Issue
Block a user