Repository navigation
Type Overrides in Column Names and Bind Arguments - #397
Conversation
4c9e9ef to
c43e169
Compare
a7e2bfd to
dd49a06
Compare
|
Testing this out in my project and it seems to be working pretty well! The only trouble I ran into was a nullable bind param. I'm not sure if that falls into the WIP nullable override. If I do Edit: Oh, the other issue is arrays of custom types. I expected |
|
Can you give the error message you're getting in the second case? |
|
@abonander for |
|
Hmm, that's coming from the protocol layer in core: https://github.com/launchbadge/sqlx/blob/8a83c98ee848a9bb9460d1824cf0150f64f557fd/sqlx-core/src/postgres/connection/describe.rs#L137 Unfortunately there's no comment here explaining why they're currently unsupported cough@mehcodecough |
|
I think we just never really discussed how to represent arrays of user-defined types in the output of |
|
Custom types in arrays is orthogonal to this pull request. The complicated part is how to do this with We currently have We need like Once we figure out how we're doing that, actually making this work is a 5 line addition to the |
|
While poking at this today, I noticed that Postgres provides another column in the types table called |
5e99f0f to
4cf09ba
Compare
|
@phated sorry try your |
767c89d to
5ecf81b
Compare
|
@abonander Sorry for the delay here. I was just able to test |
|
Hi there, is there a way to use the Ie. I want to avoid having to do |
BASED ON #399
closes #339
TODO:
foo as "foo?"override (forgot this one)