-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: make builtin function oids deterministic
Previously, oids were assigned to functions in the order they were registered, so adding an alphabetically-earlier function, overload, or file would change the oid. This was mainly inconvenient for a few tests but also made it unsafe to do things like serialize a function oid on a database descriptor. This commit hardcodes all builtin function oids to what they were as of its immediate ancestor commit, and enforces that newly-added overloads also get hardcoded. The only reason this isn't a generator is that right now running a generator is about equally onerous as adding one line to fixed_oids.go. If that changes, this should be a generator. Release justification: Low-impact refactor. Release note: None
- Loading branch information
Showing
6 changed files
with
2,049 additions
and
27 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
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
Oops, something went wrong.