From 8736ffaf6ff87334153ed38591af30136fadd76c Mon Sep 17 00:00:00 2001 From: CadenGuo <411189077@qq.com> Date: Sun, 30 Aug 2020 23:38:52 +0800 Subject: [PATCH] use 'BINARY' key word for exact operator for mysql db --- orm/db_mysql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orm/db_mysql.go b/orm/db_mysql.go index 6e99058e..ff6516b7 100644 --- a/orm/db_mysql.go +++ b/orm/db_mysql.go @@ -22,7 +22,7 @@ import ( // mysql operators. var mysqlOperators = map[string]string{ - "exact": "= ?", + "exact": "= BINARY ?", "iexact": "LIKE ?", "contains": "LIKE BINARY ?", "icontains": "LIKE ?",