Skip to content

Commit

Permalink
use 'BINARY' key word for exact operator for mysql db
Browse files Browse the repository at this point in the history
  • Loading branch information
CadenGuo committed Aug 30, 2020
1 parent f946a35 commit 8736ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orm/db_mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

// mysql operators.
var mysqlOperators = map[string]string{
"exact": "= ?",
"exact": "= BINARY ?",
"iexact": "LIKE ?",
"contains": "LIKE BINARY ?",
"icontains": "LIKE ?",
Expand Down

0 comments on commit 8736ffa

Please sign in to comment.