Open zeadhani opened 2 hours ago
What specific ash, ash_postgres and ash_sql versions are you using?
Also ash_money
Please make sure you're on the latest of all of them.
I am using the following versions, all of which are updated:
• ash_postgres: ~> 2.4.12
• ash_sql: ~> 0.2.38
• ash_double_entry: ~> 1.0.6
• ash_money: ~> 0.1.13
• ex_money_sql: ~> 1.11
I've made a small change in main
that may help, but if not I will have to look into this next week. Please try it out and let me know.
Issue Summary
When creating a transfer after upgrading from version 0.2.4 to 1.0.6, an error occurs during the operation. The PostgreSQL error ambiguous_function appears, indicating that an operator is not unique, with the hint suggesting the need for explicit type casts.
Steps to Reproduce
[debug] QUERY ERROR source="balances" db=0.0ms UPDATE "balances" AS b0 SET "balance" = (CASE ... ) WHERE ... ** (Postgrex.Error) operator is not unique: - unknown Hint: Could not choose a best candidate operator. You might need to add explicit type casts.
Observed Behavior
The transfer creation fails with an ambiguous_function error in PostgreSQL.
Expected Behavior
The transfer should be created without any errors, and the balances table should update correctly.
Additional Details
Troubleshooting Done