forked from laurenz/oracle_fdw
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use correct user mapping for views on foreign tables
Commit 31b0a51 tried to fix that problem for SECURITY DEFINER functions, but forgot the case of views on foreign tables, which should use the user mapping of the owner of the view. Revert 31b0a51 and fix the problem by using the user ID associated with the RangeTable for the foreign table (the "checkAsUser" attribute) when it is set, otherwise the current user ID. This fixes laurenz#498 reported by "JSilex".
- Loading branch information
Showing
4 changed files
with
139 additions
and
32 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