Skip to content

Commit

Permalink
fixed: fix data comapre random, close #34
Browse files Browse the repository at this point in the history
  • Loading branch information
wentaojin committed Jul 25, 2024
1 parent 27ad6f4 commit d1c53a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions database/mysql/data_compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ func (d *Database) GetDatabaseTableRandomValues(schemaNameS, tableNameS string,
columnNames = append(columnNames, fmt.Sprintf("`%s`", col))
if !strings.EqualFold(collations[i], "") {
columnOrders = append(columnOrders, fmt.Sprintf("`%s` COLLATE '%s'", col, collations[i]))
} else {
columnOrders = append(columnOrders, fmt.Sprintf("`%s`", col))
}
}

Expand Down

0 comments on commit d1c53a4

Please sign in to comment.