Commit 8f28b3d
committed
fix: allow RLS keywords (LEVEL, POLICY, SECURITY) as aliases
Added K_LEVEL, K_POLICY, and K_SECURITY tokens to RelObjectNameWithoutStart()
production to allow these keywords to be used as column aliases in addition to
table/column names. This resolves the conflict where RLS keywords were breaking
Oracle hierarchical queries and keywords-as-identifiers tests.
The fix maintains RLS functionality while allowing these keywords to work in all
SQL contexts including aliases (e.g., SELECT col AS level).1 parent 10bd173 commit 8f28b3d
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3287 | 3287 | | |
3288 | 3288 | | |
3289 | 3289 | | |
| 3290 | + | |
3290 | 3291 | | |
3291 | 3292 | | |
3292 | 3293 | | |
| |||
3296 | 3297 | | |
3297 | 3298 | | |
3298 | 3299 | | |
3299 | | - | |
| 3300 | + | |
| 3301 | + | |
3300 | 3302 | | |
3301 | 3303 | | |
3302 | 3304 | | |
| |||
0 commit comments