forked from stoneatom/stonedb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add_comlumn test failed stoneatom#648
[summary] 1. rm `Deprecate integer display` warnings as --nowarnings does not take effect in 8.0. For more details, see: https://dev.mysql.com/worklog/task/?id=13127 2. port missing std_data and files in mysql-test from stonedb-5.7-dev. 3. fix uncorrect result of concat test.
- Loading branch information
Showing
9 changed files
with
57 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ CMakeFiles | |
tags | ||
TAGS | ||
TAGS_sorted_by_file | ||
build | ||
|
||
# googletest files | ||
source_downloads | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
if (`SELECT COUNT(*) = 0 FROM INFORMATION_SCHEMA.ENGINES WHERE engine = 'tianmu' AND support IN ('YES', 'DEFAULT', 'ENABLED')`) | ||
{ | ||
--skip Test requires Tianmu. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,83 @@ | ||
DROP TABLE IF EXISTS t_test; | ||
CREATE TABLE `t_test` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`first_name` varchar(10), | ||
`last_name` varchar(10), | ||
`sex` varchar(5), | ||
`score` int(11), | ||
`copy_id` int(11), | ||
`score` int, | ||
`copy_id` int, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=TIANMU DEFAULT CHARSET=utf8; | ||
alter table t_test modify sex char(5); | ||
show create table t_test; | ||
Table Create Table | ||
t_test CREATE TABLE `t_test` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`first_name` varchar(10) DEFAULT NULL, | ||
`last_name` varchar(10) DEFAULT NULL, | ||
`sex` char(5) DEFAULT NULL, | ||
`score` int(11) DEFAULT NULL, | ||
`copy_id` int(11) DEFAULT NULL, | ||
`score` int DEFAULT NULL, | ||
`copy_id` int DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=TIANMU DEFAULT CHARSET=utf8 | ||
alter table t_test modify first_name varchar(20); | ||
show create table t_test; | ||
Table Create Table | ||
t_test CREATE TABLE `t_test` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`first_name` varchar(20) DEFAULT NULL, | ||
`last_name` varchar(10) DEFAULT NULL, | ||
`sex` char(5) DEFAULT NULL, | ||
`score` int(11) DEFAULT NULL, | ||
`copy_id` int(11) DEFAULT NULL, | ||
`score` int DEFAULT NULL, | ||
`copy_id` int DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=TIANMU DEFAULT CHARSET=utf8 | ||
alter table t_test modify first_name varchar(5); | ||
show create table t_test; | ||
Table Create Table | ||
t_test CREATE TABLE `t_test` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`first_name` varchar(5) DEFAULT NULL, | ||
`last_name` varchar(10) DEFAULT NULL, | ||
`sex` char(5) DEFAULT NULL, | ||
`score` int(11) DEFAULT NULL, | ||
`copy_id` int(11) DEFAULT NULL, | ||
`score` int DEFAULT NULL, | ||
`copy_id` int DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=TIANMU DEFAULT CHARSET=utf8 | ||
set sql_mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"; | ||
alter table t_test modify first_name char(20); | ||
show create table t_test; | ||
Table Create Table | ||
t_test CREATE TABLE `t_test` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`first_name` char(20) DEFAULT NULL, | ||
`last_name` varchar(10) DEFAULT NULL, | ||
`sex` char(5) DEFAULT NULL, | ||
`score` int(11) DEFAULT NULL, | ||
`copy_id` int(11) DEFAULT NULL, | ||
`score` int DEFAULT NULL, | ||
`copy_id` int DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=TIANMU DEFAULT CHARSET=utf8 | ||
alter table t_test modify first_name char(5); | ||
show create table t_test; | ||
Table Create Table | ||
t_test CREATE TABLE `t_test` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`first_name` char(5) DEFAULT NULL, | ||
`last_name` varchar(10) DEFAULT NULL, | ||
`sex` char(5) DEFAULT NULL, | ||
`score` int(11) DEFAULT NULL, | ||
`copy_id` int(11) DEFAULT NULL, | ||
`score` int DEFAULT NULL, | ||
`copy_id` int DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=TIANMU DEFAULT CHARSET=utf8 | ||
alter table t_test modify sex smallint(5); | ||
alter table t_test modify sex smallint; | ||
show create table t_test; | ||
Table Create Table | ||
t_test CREATE TABLE `t_test` ( | ||
`id` int(11) NOT NULL AUTO_INCREMENT, | ||
`id` int NOT NULL AUTO_INCREMENT, | ||
`first_name` char(5) DEFAULT NULL, | ||
`last_name` varchar(10) DEFAULT NULL, | ||
`sex` smallint(5) DEFAULT NULL, | ||
`score` int(11) DEFAULT NULL, | ||
`copy_id` int(11) DEFAULT NULL, | ||
`sex` smallint DEFAULT NULL, | ||
`score` int DEFAULT NULL, | ||
`copy_id` int DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=TIANMU DEFAULT CHARSET=utf8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
use test; | ||
CREATE TABLE `test_case` ( | ||
`id` int(11) DEFAULT NULL, | ||
`id` int DEFAULT NULL, | ||
`name` text | ||
) ENGINE=TIANMU; | ||
Warnings: | ||
Warning 1681 Integer display width is deprecated and will be removed in a future release. | ||
insert into test_case values(1,'test'); | ||
insert into test_case (name) values('test2'); | ||
insert into test_case values(3,'test3'); | ||
select concat(id,name) from test_case; | ||
concat(id,name) | ||
1test | ||
NULL | ||
3test3 | ||
drop table test_case; |
10 changes: 5 additions & 5 deletions
10
mysql-test/suite/tianmu/t/add_column.testbak → mysql-test/suite/tianmu/t/add_column.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters