Skip to content

Conversation

stephenh
Copy link
Contributor

I believe this was always broken, because the oid of a boolean[] is not the same as the oid of a boolean, and AFAICT inferType was resolving "boolean[] --> the oid of a boolean" without any attempt to translate over to the boolean[] oid.

There's talk of removing inferType entirely, which would have to wait until v4, but I think if this array-based support has always been broken (afaiu?), we can just remove it immediately in a v3 bug fix release.

Fixes #471

I believe this was always broken, because the oid of a boolean[]
is not the same as the oid of a boolean, and AFAICT inferType
was resolving "boolean[] --> the oid of a boolean" without any
attempt to translate over to the `boolean[]` oid.

There's talk of removing `inferType` entirely, which would have to
wait until v4, but I think if this array-based support has always
been broken (afaiu?), we can just remove it immediately in a v3
bug fix release.

Fixes porsager#471
@stephenh stephenh marked this pull request as ready for review March 23, 2025 13:10
@stephenh
Copy link
Contributor Author

Disclaimer I haven't run the tests, b/c am waiting for the workflow to be approved (i.e. I haven't looked into getting the tests to run locally--would be great to have a CONTRIBUTING.md tldr).

@porsager porsager force-pushed the master branch 2 times, most recently from 4fd011e to a92f470 Compare May 20, 2025 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Boolean array type inference error
1 participant