This commit is contained in:
Dmitry Zuikov 2024-06-03 10:56:10 +03:00
parent a1ed4e3633
commit d7263ebe95
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ genPredQ tbl what = go what
AttrLike name val -> do
let x = val <> "%"
let binds = [Bound x]
([qc|(json_extract(json, '$."{name}"') like ?)|], binds)
([qc|(json_extract({tbl}.json, '$."{name}"') like ?)|], binds)
Not a -> do
let (sql, bound) = go a