Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lance6716 committed Dec 22, 2021
1 parent 57da556 commit 263478c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion tests/dailytest/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,12 @@ func genColumnData(table *table, column *column) (string, error) {
isUnsigned := mysql.HasUnsignedFlag(tp.Flag)

switch tp.Tp {
case mysql.TypeTiny, mysql.TypeBit:
case mysql.TypeBit:
if randInt(0, 1) == 0 {
return "b'0'", nil
}
return "b'1'", nil
case mysql.TypeTiny:
var data int64
if isUnique {
data = uniqInt64Value(column, 0, math.MaxUint8)
Expand Down
4 changes: 3 additions & 1 deletion tests/reparo/binlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ func main() {
`
create table ntest2(
a int,
b bit(20),
b double NOT NULL DEFAULT 2.0,
c varchar(10) NOT NULL,
d bit(20)
);
`}

Expand Down

0 comments on commit 263478c

Please sign in to comment.