-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39785: sql: fix has_column_privilege builtin r=yuzefovich a=yuzefovich Previously, has_column_privilege would treat its second argument (when it is an integer) that specifies the column to check the privileges on as an ordinal index of the column, but when a column is dropped from the table, ordinal indices are adjusted, so ordinal_position of information_schema.columns would contain a different from attnum of pg_catalog.pg_attribute number. Now this is fixed. Fixes: #39703. Release note: None Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information
Showing
2 changed files
with
42 additions
and
5 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