diff --git a/lib/JsonqlCompiler.js b/lib/JsonqlCompiler.js index 636cefd55..e90f44357 100644 --- a/lib/JsonqlCompiler.js +++ b/lib/JsonqlCompiler.js @@ -435,6 +435,7 @@ module.exports = JsonqlCompiler = /*#__PURE__*/function () { case "->>": case "#>>": case "@>": + case "<@": case '->': case '#>': case 'in': diff --git a/src/JsonqlCompiler.coffee b/src/JsonqlCompiler.coffee index 23cb1c088..95fd4151a 100644 --- a/src/JsonqlCompiler.coffee +++ b/src/JsonqlCompiler.coffee @@ -382,7 +382,7 @@ module.exports = class JsonqlCompiler ] switch expr.op - when ">", "<", ">=", "<=", "=", "<>", "/", "~", "~*", "like", "ilike", "&&", "->>", "#>>", "@>", '->', '#>', 'in', '?|', "?&" + when ">", "<", ">=", "<=", "=", "<>", "/", "~", "~*", "like", "ilike", "&&", "->>", "#>>", "@>", "<@", '->', '#>', 'in', '?|', "?&" frag = new SqlFragment("(") .append(@compileExpr(expr.exprs[0], aliases, ctes)) .append(new SqlFragment(" " + expr.op + " "))