Skip to content

Commit

Permalink
Fix function cache of *input* box2d (#8115)
Browse files Browse the repository at this point in the history
Input side equivalent of #8101, which fixed the output side.

Fixes #8114.
  • Loading branch information
msullivan authored Dec 12, 2024
1 parent 1ed9171 commit 0e5d785
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion edb/pgsql/compiler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,13 @@ def compile_ir_to_sql_tree(
detached_params_idx = {
ctx.argmap[param.name].index: (
pgtypes.pg_type_from_ir_typeref(
param.ir_type.base_type or param.ir_type))
param.ir_type.base_type or param.ir_type,
# Needs serialized=True so types without their own
# binary encodings (like postgis::box2d) get mapped
# to the real underlying type.
serialized=True,
)
)
for param in ctx.env.query_params
if not param.sub_params
}
Expand Down

0 comments on commit 0e5d785

Please sign in to comment.