mirror of https://github.com/voidlizard/hbs2
wip
This commit is contained in:
parent
a1ed4e3633
commit
d7263ebe95
|
@ -451,7 +451,7 @@ genPredQ tbl what = go what
|
||||||
AttrLike name val -> do
|
AttrLike name val -> do
|
||||||
let x = val <> "%"
|
let x = val <> "%"
|
||||||
let binds = [Bound x]
|
let binds = [Bound x]
|
||||||
([qc|(json_extract(json, '$."{name}"') like ?)|], binds)
|
([qc|(json_extract({tbl}.json, '$."{name}"') like ?)|], binds)
|
||||||
|
|
||||||
Not a -> do
|
Not a -> do
|
||||||
let (sql, bound) = go a
|
let (sql, bound) = go a
|
||||||
|
|
Loading…
Reference in New Issue