-
Notifications
You must be signed in to change notification settings - Fork 162
test(c/driver/postgresql): add test for composite type behavior #3196
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
base: main
Are you sure you want to change the base?
Conversation
|
Still working on this, currently this fails with, |
|
Hmm, maybe it isn't actually supported then...Or maybe you have to reconnect after creating the type to reload the type mapping |
763605b to
3e2eb6e
Compare
|
I added what I think was a mid-test reconnect in 3e2eb6e. The new test still fails, |
|
Sorry this is on my backlog to poke |
|
No problem at all. Thanks. |
lidavidm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I gave it a test in Python, creating the type beforehand in psql, and it worked. I think the AdbcDatabase needs to be recreated as that's what caches the type info. I think elsewhere someone requested a way to drop and recreate the type cache and maybe we should consider that
|
|
Very interesting, thanks for figuring it out. I pushed a fixed test which uses a test helper you may or may not like. I thought about making a new fixture but just adding a |
237a0b0 to
ab421cb
Compare
|
Rebased. |
|
Hmm, ASAN is unhappy about something. |
|
I'll take a look later this week. |
|
@amoeba do you think you want to do this for the next release? |
|
Hey @lidavidm, I won't be able to get this in for the release. I'll try for the next one. |
No description provided.