1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-14 03:00:39 +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

View File

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