Skip to content

Commit

Permalink
Resolve the issue returning tuple
Browse files Browse the repository at this point in the history
This issue only happens with binary output format, executing query like:

    select ((insert A), true);

The fix is simply applying the returns_record fix to tuples:

070d74c#diff-d2fc37bc724ef58ac44d52da73c773483ba90dd9818f3acede2664abd700e850R1925-R1951
  • Loading branch information
fantix committed Jul 5, 2024
1 parent 87062ad commit 46fa7d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions edb/server/compiler/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -2028,6 +2028,8 @@ def _build_cache_function(
return_type = pg_types.pg_type_from_ir_typeref(
ir.expr.typeref.base_type or ir.expr.typeref
)
if ir.stype.is_tuple(ir.schema):
returns_record = True

case enums.OutputFormat.JSON:
return_type = ("json",)
Expand Down

0 comments on commit 46fa7d5

Please sign in to comment.