We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 537ae62 commit 0a9212fCopy full SHA for 0a9212f
store/db/mysql/memo.go
@@ -91,7 +91,7 @@ func (d *DB) ListMemos(ctx context.Context, find *store.FindMemo) ([]*store.Memo
91
where, args = append(where, "`memo`.`payload` = ?"), append(args, *v.Raw)
92
}
93
if v.Tag != nil {
94
- where, args = append(where, "JSON_CONTAINS(JSON_EXTRACT(payload, '$.property.tags[*]'), ?, '$')"), append(args, *v.Tag)
+ where, args = append(where, "JSON_CONTAINS(JSON_EXTRACT(`memo`.`payload`, '$.property.tags'), ?)"), append(args, fmt.Sprintf(`["%s"]`, *v.Tag))
95
96
97
if find.ExcludeComments {
0 commit comments