-
Notifications
You must be signed in to change notification settings - Fork 32
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
Parameters don't line up with the names properly #111
Comments
Woah. Thanks for the report. |
fwiw this test would be written the same as CREATE OR REPLACE FUNCTION test(a int, b int)
RETURNS int AS
$$
a
$$ LANGUAGE plrust; I have reproduced the error as a test and while my initial hypothesis was a problem in pgx, it seems to be unique to PL/Rust and the equivalent test in pgx passes fine. |
...This appears to be a "Heisenbug", which may explain why we have not seen it before. That is, it does not seem to happen consistently, and the ordering that happens somehow can change when the functions are rebuilt and retested. It also seems to be exacerbated by simultaneously submitting multiple PL/Rust functions at once, but is not exclusive to that. |
Ah. The lesson here is to never use |
When 2 of the same data type are passed in, the names don't match the ordinal number correctly.
The text was updated successfully, but these errors were encountered: