When trying to set password using my own update I get Postgres type error in AshAuthentication
This boils down to that Postgres can't find the correct type for a parameter. Is that something I can take care of or is it somewhere else?
<former gist-link, replaced by many messages below>
11 Replies
I just realized that I could split the question into many messages! Here goes!
Here's my bespoke action in the User resource:
When I run it from the console, like this:
I get this error message:
Here's the actual query:
Are you on all the latest versions?
Maybe... let me check and get back to you!
Now I'm running the latest versions of everything, and I'm still getting the same error.
...that looks weird
Can you create a reproduction?
Sure thing! Just new Ash project and put as little code as possible into it to reproduce the error?
Yes please 😍
And open an issue
Sounds good. I'll do it!
Issue opened! https://github.com/ash-project/ash/issues/2338
GitHub
Trying to update password throws "ERROR 42P18 (indeterminate_dataty...
Code of Conduct I agree to follow this project's Code of Conduct AI Policy I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue. Versions .....
I have no idea if this is a good bug report, so I'm happy to get feedback on it.
I just copied that action into my Tunez app (without the
atomic_update
) and it works 🤔 the SQL I get is a bit different though
ooooo no I got the same error (once I made hashed_password
non-nullable)
so fun question. in @Andreas Ekeroot @ work 's error, why are $3
and $5
in the SQL different values?
so its something to do with the action being atomic I think - when adding require_atomic? false
its fine - and the HashPasswordChange
change$3
and $5
are the same I think it's starting with 1 not 0
if it's not done atomically, it does the null check before instead of in the sql I think
ah no, they are slightly different
that's interesting