forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitee4ddcb
committed
Fix targetRelation initializiation in prepsecurity
In6f9bd50, we modifiedexpand_security_quals() to tell expand_security_qual() about when thecurrent RTE was the targetRelation. Unfortunately, that commitinitialized the targetRelation variable used outside of the loop overthe RTEs instead of at the start of it.This patch moves the variable and the initialization of it into theloop, where it should have been to begin with.Pointed out by Dean Rasheed.Back-patch to 9.4 as the original commit was.1 parent8abb3cd commitee4ddcb
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
66 |
| - | |
67 | 66 |
| |
68 | 67 |
| |
69 | 68 |
| |
| |||
74 | 73 |
| |
75 | 74 |
| |
76 | 75 |
| |
77 |
| - | |
| 76 | + | |
| 77 | + | |
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
|
0 commit comments
Comments
(0)