-
Notifications
You must be signed in to change notification settings - Fork 405
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
Domain basetypes aren't loaded as encoders/decoders to the client cache #886
Comments
QuantumTM
pushed a commit
to QuantumTM/asyncpg
that referenced
this issue
Feb 9, 2022
Domain encoding/decoding is handled by its basetype. This change forces those basetypes to be inspected and loaded to the client cache avoiding the issue where base types weren't encodable/decodable.
I've created a pull request #887 which fixes the issue. In the interim, if other hit this issue, casting to the base type in the sql forces asynpg to load the missing encoders/decoders which fixes the issue. eg/. changing the above insert sql to |
QuantumTM
pushed a commit
to QuantumTM/asyncpg
that referenced
this issue
Feb 17, 2022
Add test for domain basetype introspections and loading
elprans
pushed a commit
that referenced
this issue
Mar 25, 2022
Yes. Closing. |
elprans
added a commit
that referenced
this issue
Jul 7, 2022
Changes ------- * Add support to use awaitable object in password function. (#889) (by @kwarunek in fb3b6bf for #889) * Support direct TLS connections (i.e. no STARTTLS) (#923) (by @jackwotherspoon in f2a937d for #923) Fixes ----- * Fix invalid `pyproject.toml` (#900) (by @Rongronggg9 in eddb649 for #900) * Add record_class parameter Pool.fetch and Pool.fetchrow (#896) (by @baltitenger in 2519cf3 for #896) * Domain basetypes are introspected (#886) (#887) (by @QuantumTM in cca4a2d for #886) * Properly handle exceptions raised while handling server auth messages (#862) (by @elprans in bd19262 for #862)
elprans
added a commit
that referenced
this issue
Jul 7, 2022
Changes ------- * Add support to use awaitable object in password function. (#889) (by @kwarunek in fb3b6bf for #889) * Support direct TLS connections (i.e. no STARTTLS) (#923) (by @jackwotherspoon in f2a937d for #923) Fixes ----- * Fix invalid `pyproject.toml` (#900) (by @Rongronggg9 in eddb649 for #900) * Add record_class parameter Pool.fetch and Pool.fetchrow (#896) (by @baltitenger in 2519cf3 for #896) * Domain basetypes are introspected (#886) (#887) (by @QuantumTM in cca4a2d for #886) * Properly handle exceptions raised while handling server auth messages (#862) (by @elprans in bd19262 for #862)
elprans
added a commit
that referenced
this issue
Jul 7, 2022
Changes ------- * Add support to use awaitable object in password function. (#889) (by @kwarunek in fb3b6bf for #889) * Support direct TLS connections (i.e. no STARTTLS) (#923) (by @jackwotherspoon in f2a937d for #923) Fixes ----- * Fix invalid `pyproject.toml` (#900) (by @Rongronggg9 in eddb649 for #900) * Add record_class parameter Pool.fetch and Pool.fetchrow (#896) (by @baltitenger in 2519cf3 for #896) * Domain basetypes are introspected (#886) (#887) (by @QuantumTM in cca4a2d for #886) * Properly handle exceptions raised while handling server auth messages (#862) (by @elprans in bd19262 for #862)
Merged
rohitsanj
pushed a commit
to noteable-io/asyncpg-crdb-noteable
that referenced
this issue
May 8, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the issue with a local PostgreSQL install?: N/A
uvloop?: Not tested
When attempting an insert on a domain type I hit an issue where asyncpg was unable to handle the
numeric[]
type;On analysis this error can occure for any, none
str
, array type.A minimal replication case is given below
The text was updated successfully, but these errors were encountered: