1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-30 13:44:12 +00:00

use 'BINARY' key word for exact operator for mysql db

This commit is contained in:
CadenGuo 2020-08-30 23:38:52 +08:00
parent f946a35acd
commit 8736ffaf6f
No known key found for this signature in database
GPG Key ID: 047A2EAA8F2CFF93

View File

@ -22,7 +22,7 @@ import (
// mysql operators.
var mysqlOperators = map[string]string{
"exact": "= ?",
"exact": "= BINARY ?",
"iexact": "LIKE ?",
"contains": "LIKE BINARY ?",
"icontains": "LIKE ?",