Skip to content

Commit 56eff77

Browse files
committed
fix: properly cast calculations in all sub-expressions
1 parent fdec9da commit 56eff77

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/expr.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1960,6 +1960,8 @@ defmodule AshSql.Expr do
19601960
updated_bindings =
19611961
bindings
19621962
|> set_location(:sub_expr)
1963+
|> Map.delete(:no_cast?)
1964+
|> Map.delete(:skip_cast_for_ref?)
19631965
|> then(fn bindings ->
19641966
if Enum.empty?(relationship_path) do
19651967
bindings

0 commit comments

Comments
 (0)