-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
type inference for ValArg doesn't work for some expressions: CASE, function application #4024
Comments
Can you provide some concrete examples? I recall there are difficulties in doing type inference for |
A function with a single argument which is a ValArg. Normally type check would infer the type of the ValArg from other, non-ValArg function arguments. Or, a function where all arguments are ValArgs. |
In the bank example while using the pgwire protocol the following doesn't work:
I see the error incompatible condition types int, valarg Looking into the code this appears to be the type checker while evaluating the WHEN clause. |
The fix I have for this only fixes CASE statements. Please make single issues for the other kinds of statements with examples for which prepare fails. @vivekmenezes the bank example is now closer to working. Subqueries are failing with prepare. Working on that now. |
No description provided.
The text was updated successfully, but these errors were encountered: