From d7263ebe9586e981b6c1d4ff09ac3b07b57519f6 Mon Sep 17 00:00:00 2001 From: Dmitry Zuikov Date: Mon, 3 Jun 2024 10:56:10 +0300 Subject: [PATCH] wip --- fixme-new/lib/Fixme/State.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fixme-new/lib/Fixme/State.hs b/fixme-new/lib/Fixme/State.hs index ca4f0c8c..5245e778 100644 --- a/fixme-new/lib/Fixme/State.hs +++ b/fixme-new/lib/Fixme/State.hs @@ -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