File: alter.result

package info (click to toggle)
mariadb-10.0 10.0.16-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 416,512 kB
  • sloc: cpp: 1,351,103; ansic: 803,086; perl: 59,621; pascal: 32,136; sh: 25,156; yacc: 14,897; xml: 5,194; sql: 4,651; cs: 4,647; makefile: 4,113; python: 2,526; ruby: 2,496; lex: 1,427; asm: 295; awk: 54; php: 22; sed: 16
file content (35 lines) | stat: -rw-r--r-- 906 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
create table t1 (i int) engine=TokuDB;
insert t1 values (1);
alter table t1 add column j int default '0';
select * from t1;
i	j
1	0
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `i` int(11) DEFAULT NULL,
  `j` int(11) DEFAULT '0'
) ENGINE=TokuDB DEFAULT CHARSET=latin1 `compression`='tokudb_zlib'
alter table t1 modify i int default '1';
select * from t1;
i	j
1	0
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `i` int(11) DEFAULT '1',
  `j` int(11) DEFAULT '0'
) ENGINE=TokuDB DEFAULT CHARSET=latin1 `compression`='tokudb_zlib'
alter table t1 modify j int default '2', rename t2;
select * from t1;
ERROR 42S02: Table 'test.t1' doesn't exist
select * from t2;
i	j
1	0
show create table t2;
Table	Create Table
t2	CREATE TABLE `t2` (
  `i` int(11) DEFAULT '1',
  `j` int(11) DEFAULT '2'
) ENGINE=TokuDB DEFAULT CHARSET=latin1 `compression`='tokudb_zlib'
drop table t2;