回答編集履歴
3
パラメータをuserに修正
test
CHANGED
@@ -2,4 +2,4 @@
|
|
2
2
|
|
3
3
|
イコールでなくてlike binaryでどうでしょう。
|
4
4
|
|
5
|
-
`db.Where(fmt.Sprintf("authenticate_digest like binary '%s%%'", converted)).Find(
|
5
|
+
`db.Where(fmt.Sprintf("authenticate_digest like binary '%s%%'", converted)).Find(user)`
|
2
更に修正
test
CHANGED
@@ -2,4 +2,4 @@
|
|
2
2
|
|
3
3
|
イコールでなくてlike binaryでどうでしょう。
|
4
4
|
|
5
|
-
`db.Where(fmt.Sprintf("authenticate_digest like binary '%s%%'", converted)).Fi
|
5
|
+
`db.Where(fmt.Sprintf("authenticate_digest like binary '%s%%'", converted)).Find(suser)`
|
1
修正
test
CHANGED
@@ -2,8 +2,4 @@
|
|
2
2
|
|
3
3
|
イコールでなくてlike binaryでどうでしょう。
|
4
4
|
|
5
|
-
`
|
6
|
-
|
7
|
-
db.Where(fmt.Sprintf("t
|
5
|
+
`db.Where(fmt.Sprintf("authenticate_digest like binary '%s%%'", converted)).First(suser)`
|
8
|
-
|
9
|
-
`
|