Skip to content

Commit

Permalink
Merge pull request #612 from hustjieke/feature_add_support_to_record_…
Browse files Browse the repository at this point in the history
…error_msg_in_intergration_#611
  • Loading branch information
BohuTANG authored Apr 15, 2020
2 parents 708dde9 + 264c828 commit b39f2b9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion intergration/radon-test/mtr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ do
# record every sql executed to tmp file
echo $sqlWithoutSemi";" >> $tmpFile
# execute and record result to tmp file
mysql -uroot -P3308 -h127.0.0.1 -e "$sqlWithoutSemi" >> $tmpFile
mysql --line-numbers=0 -uroot -P3308 -h127.0.0.1 -e "$sqlWithoutSemi" >> $tmpFile 2>&1
else
echo "empty sql, skip and continue"
fi
Expand Down
6 changes: 6 additions & 0 deletions intergration/radon-test/r/ddl.result
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,10 @@ t CREATE TABLE `t` (\n `a` int(11) DEFAULT NULL,\n `b` int(11) DEFAULT NULL,\n
drop table integrate_test.t;


create table integrate_test.t(
a int,
b int key) ENGINE=InnoDB DEFAULT CHARSET=utf8 PARTITION BY HASH(a);
ERROR 1105 (HY000): The unique/primary constraint should be only defined on the sharding key column[a]


drop database integrate_test;
3 changes: 3 additions & 0 deletions intergration/radon-test/r/select.result
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ a c
2 3
0 1

select c from integrate_test.t;
ERROR 1054 (42S22): Unknown column 'c' in 'field list'

drop table integrate_test.t;


Expand Down
4 changes: 4 additions & 0 deletions intergration/radon-test/t/ddl.test
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,8 @@ create FULLTEXT index c_idx on integrate_test.t(c) WITH PARSER ngram comment 'fu
show create table integrate_test.t;
drop table integrate_test.t;

create table integrate_test.t(
a int,
b int key) ENGINE=InnoDB DEFAULT CHARSET=utf8 PARTITION BY HASH(a);

drop database integrate_test;
1 change: 1 addition & 0 deletions intergration/radon-test/t/select.test
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ create database integrate_test DEFAULT CHARSET=utf8;
create table integrate_test.t(a int key, b int) ENGINE=InnoDB DEFAULT CHARSET=utf8;
insert into integrate_test.t(a, b) values(0,1), (2,3);
select a, b c from integrate_test.t where a in (0,1,2) order by a desc;
select c from integrate_test.t;
drop table integrate_test.t;

drop database integrate_test;

0 comments on commit b39f2b9

Please sign in to comment.