Skip to content

Commit

Permalink
Add compile_ConstantSet.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnwpark committed Mar 15, 2024
1 parent 3c8ba43 commit 0a0d2b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions edb/pgsql/compiler/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,15 @@ def compile_TypeCheckOp(
return result


@dispatch.compile.register(irast.ConstantSet)
def compile_ConstantSet(
expr: irast.ConstantSet, *,
ctx: context.CompilerContextLevel) -> pgast.BaseExpr:
raise errors.UnsupportedFeatureError(
"Constant sets not allowed in singleton mode",
hint="Are you passing a set into a variadic function?")


@dispatch.compile.register(irast.Array)
def compile_Array(
expr: irast.Array, *,
Expand Down

0 comments on commit 0a0d2b6

Please sign in to comment.