[NGRAMS-TABLE] Attempt at fixing updateNodeNgrams query

parent 923c4bdf
......@@ -126,8 +126,8 @@ updateNodeNgrams' input = map (\(PGS.Only a) -> a) <$>
from (?) as new(node_id,terms,typeList)
JOIN ngrams ON ngrams.terms = new.terms
WHERE old.node_id = new.node_id
AND old.ngram_id = ngrams.id;
-- RETURNING new.ngram_id
AND old.ngram_id = ngrams.id
RETURNING old.ngram_id;
|]
data NodeNgramsUpdate = NodeNgramsUpdate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment