-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: resolve inferred types in prepare using appropriate planner
Before this change we'd resolve user-defined types into placeholder hints using a planner which may not be in a valid state. This could result in a nil-pointer panic. I don't actually know how to trigger this from a driver but there's evidence that it's possible. It's easy enough to hit using SQL if the previous commit were not here. Fixes #64975 Release note (bug fix): Fixed a bug which could cause a panic when issuing a query referencing a user-defined type as a placeholder.
- Loading branch information
Showing
3 changed files
with
70 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters