mirror of
https://github.com/astaxie/beego.git
synced 2024-11-23 20:30:54 +00:00
use 'BINARY' key word for exact operator for mysql db
This commit is contained in:
parent
f946a35acd
commit
8736ffaf6f
@ -22,7 +22,7 @@ import (
|
|||||||
|
|
||||||
// mysql operators.
|
// mysql operators.
|
||||||
var mysqlOperators = map[string]string{
|
var mysqlOperators = map[string]string{
|
||||||
"exact": "= ?",
|
"exact": "= BINARY ?",
|
||||||
"iexact": "LIKE ?",
|
"iexact": "LIKE ?",
|
||||||
"contains": "LIKE BINARY ?",
|
"contains": "LIKE BINARY ?",
|
||||||
"icontains": "LIKE ?",
|
"icontains": "LIKE ?",
|
||||||
|
Loading…
Reference in New Issue
Block a user