File: upgrade.result

package info (click to toggle)
mariadb 1%3A11.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 772,520 kB
  • sloc: ansic: 2,414,714; cpp: 1,791,394; asm: 381,336; perl: 62,905; sh: 49,647; pascal: 40,897; java: 39,363; python: 20,791; yacc: 20,432; sql: 17,907; xml: 12,344; ruby: 8,544; cs: 6,542; makefile: 6,145; ada: 1,879; lex: 1,193; javascript: 996; objc: 80; tcl: 73; awk: 46; php: 22
file content (34 lines) | stat: -rw-r--r-- 1,228 bytes parent folder | download | duplicates (5)
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
check table vcol_autoinc for upgrade;
Table	Op	Msg_type	Msg_text
test.vcol_autoinc	check	Warning	Function or expression 'AUTO_INCREMENT' cannot be used in the GENERATED ALWAYS AS clause of `pk`
test.vcol_autoinc	check	status	OK
show create table vcol_autoinc;
Table	Create Table
vcol_autoinc	CREATE TABLE `vcol_autoinc` (
  `pk` int(11) NOT NULL AUTO_INCREMENT,
  `v3` int(11) GENERATED ALWAYS AS (`pk`) STORED,
  PRIMARY KEY (`pk`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
select * from vcol_autoinc;
pk	v3
insert vcol_autoinc (pk) values (1);
select * from vcol_autoinc;
pk	v3
1	1
drop table vcol_autoinc;
check table t1  for upgrade;
Table	Op	Msg_type	Msg_text
test.t1	check	status	OK
flush tables;
show create table t1;
Table	Create Table
t1	CREATE TABLE `t1` (
  `Date` datetime(6) NOT NULL,
  `Data` varbinary(2000) NOT NULL,
  `a` varchar(100) GENERATED ALWAYS AS (column_get(`Data`,1 as char(100) charset latin1)) VIRTUAL,
  PRIMARY KEY (`Date`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
 PARTITION BY RANGE (to_days(`Date`))
(PARTITION `p20181029` VALUES LESS THAN (737361) ENGINE = MyISAM,
 PARTITION `p20181128` VALUES LESS THAN (737391) ENGINE = MyISAM)
drop table t1;