-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot call JSONField for static queries #14
Comments
Oh sorry about that, can you post the full invocation to Fetch/FetchAll? Static queries were a recent addition and apply to queries which explicitly specify the fields to be fetched instead of leaving it up to the rowmapper. For query builders
But it should only affect static queries, so if a dynamic query is showing "cannot call XXXX for static queries" that would be considered a bug. |
Hi, sorry for the late reply. As far as I can tell, it's not allowed to call any of the |
It's an unfortunate side effect of the implementation (yeah I know, it's also a breaking change as you found out ☹). May I ask, why not just omit |
Initially we were not aware of the dynamic nature, so out of old habit I just enumerated all the necessary columns. However, it also turns out that not all mappers are fully safe to run on null values. For example, reading a uuid using
to bypass that. Similarly, we'd like to do json queries in postgres, like |
oh god thanks for bringing that up to my attention, I didn't realize UUIDField did not handle NULLs. |
UUIDField should handle NULLs correctly now, if you update to v0.5.1.
Can you show me a snippet of code that is generating |
Latest release fails for us with
cannot call JSONField for static queries
. The query is using a mapper that looks something like this:The text was updated successfully, but these errors were encountered: