Skip to content

Commit

Permalink
try unsigned int .
Browse files Browse the repository at this point in the history
  • Loading branch information
3AceShowHand committed Dec 14, 2021
1 parent ea91910 commit 3873d39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/mq_protocol_tests/cases/case_many_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func (s *ManyTypesCase) Run(ctx *framework.TaskContext) error {
PRIMARY KEY (id)
)`
case *canal.SingleTableTask:
// t_year YEAR,
createDBQuery = `create table test (
id INT,
t_boolean BOOLEAN,
Expand All @@ -84,7 +85,6 @@ func (s *ManyTypesCase) Run(ctx *framework.TaskContext) error {
t_datetime DATETIME,
t_timestamp TIMESTAMP NULL,
t_time TIME,
t_year YEAR,
t_tinytext TINYTEXT,
t_mediumtext MEDIUMTEXT,
t_text TEXT,
Expand Down Expand Up @@ -179,7 +179,7 @@ func (s *ManyTypesCase) Run(ctx *framework.TaskContext) error {
data["t_mediumint"] = 8388607
data["t_int"] = 2147483647

data["t_year"] = 2021
// data["t_year"] = 2021
data["t_binary"] = []byte{0x1, 0x2, 0x0, 0x3}
data["t_varbinary"] = []byte{0x1, 0x2, 0x0, 0x3}

Expand Down
2 changes: 1 addition & 1 deletion tests/mq_protocol_tests/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func testCanalJSON() {
cases.NewSimpleCase(task),
cases.NewDeleteCase(task),
cases.NewManyTypesCase(task),
// cases.NewUnsignedCase(task), //now canal adapter can not deal with unsigned int greater than int max
cases.NewUnsignedCase(task), //now canal adapter can not deal with unsigned int greater than int max
cases.NewCompositePKeyCase(task),
cases.NewAlterCase(task),
}
Expand Down

0 comments on commit 3873d39

Please sign in to comment.