~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/r/alter_table.result

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
298
298
t1      0       a       2       b       A       300     NULL    NULL    YES     BTREE           
299
299
t1      1       b       1       b       A       100     NULL    NULL    YES     BTREE           
300
300
drop table t1;
301
 
CREATE TABLE t1 (i int(10), index(i) );
 
301
CREATE TABLE t1 (i int(10), index(i) ) ENGINE=MyISAM;
302
302
ALTER TABLE t1 DISABLE KEYS;
303
303
INSERT DELAYED INTO t1 VALUES(1),(2),(3);
304
304
ALTER TABLE t1 ENABLE KEYS;
1184
1184
Table   Op      Msg_type        Msg_text
1185
1185
test.t1 check   status  OK
1186
1186
drop table t1;
 
1187
DROP TABLE IF EXISTS t1;
 
1188
CREATE TABLE t1 (id int, c int) character set latin1;
 
1189
INSERT INTO t1 VALUES (1,1);
 
1190
ALTER TABLE t1 CHANGE c d int;
 
1191
affected rows: 0
 
1192
info: Records: 0  Duplicates: 0  Warnings: 0
 
1193
ALTER TABLE t1 CHANGE d c int;
 
1194
affected rows: 0
 
1195
info: Records: 0  Duplicates: 0  Warnings: 0
 
1196
ALTER TABLE t1 MODIFY c VARCHAR(10);
 
1197
affected rows: 1
 
1198
info: Records: 1  Duplicates: 0  Warnings: 0
 
1199
ALTER TABLE t1 CHANGE c d varchar(10);
 
1200
affected rows: 0
 
1201
info: Records: 0  Duplicates: 0  Warnings: 0
 
1202
ALTER TABLE t1 CHANGE d c varchar(10);
 
1203
affected rows: 0
 
1204
info: Records: 0  Duplicates: 0  Warnings: 0
 
1205
DROP TABLE t1;
 
1206
DROP TABLE IF EXISTS t1;
 
1207
CREATE TABLE t1 (id int, c int) character set utf8;
 
1208
INSERT INTO t1 VALUES (1,1);
 
1209
ALTER TABLE t1 CHANGE c d int;
 
1210
affected rows: 0
 
1211
info: Records: 0  Duplicates: 0  Warnings: 0
 
1212
ALTER TABLE t1 CHANGE d c int;
 
1213
affected rows: 0
 
1214
info: Records: 0  Duplicates: 0  Warnings: 0
 
1215
ALTER TABLE t1 MODIFY c VARCHAR(10);
 
1216
affected rows: 1
 
1217
info: Records: 1  Duplicates: 0  Warnings: 0
 
1218
ALTER TABLE t1 CHANGE c d varchar(10);
 
1219
affected rows: 0
 
1220
info: Records: 0  Duplicates: 0  Warnings: 0
 
1221
ALTER TABLE t1 CHANGE d c varchar(10);
 
1222
affected rows: 0
 
1223
info: Records: 0  Duplicates: 0  Warnings: 0
 
1224
DROP TABLE t1;
 
1225
End of 5.1 tests