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
sql: prevent panic when using UDF as EXECUTE argument #108213
Conversation
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.
Reviewable status: complete! 1 of 0 LGTMs obtained
I created #108215 to track allowing UDFs within EXECUTE arguments. |
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.
Reviewed 11 of 11 files at r1, all commit messages.
Reviewable status: complete! 2 of 0 LGTMs obtained (waiting on @mgartner)
-- commits
line 9 at r1:
[nit] introduces
-> introduced
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.
Reviewable status: complete! 2 of 0 LGTMs obtained (waiting on @DrewKimball)
Previously, DrewKimball (Drew Kimball) wrote…
[nit]
introduces
->introduced
Done.
d236963
to
22ba717
Compare
Fixes cockroachdb#99008 Release note (bug fix): A bug has been fixed that caused nodes to crash when attempting to `EXECUTE` a prepared statement with an argument that referenced a user-defined function. This bug was present since user-defined functions were introduced in version 22.2.
22ba717
to
20c43ab
Compare
TFTRs! bors r+ |
Build succeeded: |
Since #99008 was an error from 22.2, is this going to be backported? |
Yes, we should backport it. Thanks for calling that out @rafiss! |
blathers backport 22.2 23.1 |
Encountered an error creating backports. Some common things that can go wrong:
You might need to create your backport manually using the backport tool. error creating merge commit from 20c43ab to blathers/backport-release-22.2-108213: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 22.2 failed. See errors above. error creating merge commit from 20c43ab to blathers/backport-release-23.1-108213: POST https://api.github.com/repos/cockroachdb/cockroach/merges: 409 Merge conflict [] you may need to manually resolve merge conflicts with the backport tool. Backport to branch 23.1 failed. See errors above. 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
Fixes #99008
Release note (bug fix): A bug has been fixed that caused nodes to crash
when attempting to
EXECUTE
a prepared statement with an argument thatreferenced a user-defined function. This bug was present since
user-defined functions were introduced in version 22.2.