Skip to content

Commit

Permalink
Added operator
Browse files Browse the repository at this point in the history
  • Loading branch information
grassick committed Mar 19, 2021
1 parent 6fc3a28 commit efdbc43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/JsonqlCompiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ module.exports = JsonqlCompiler = /*#__PURE__*/function () {
case "->>":
case "#>>":
case "@>":
case "<@":
case '->':
case '#>':
case 'in':
Expand Down
2 changes: 1 addition & 1 deletion src/JsonqlCompiler.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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 + " "))
Expand Down

0 comments on commit efdbc43

Please sign in to comment.