GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — fix: 分页包装SQL的结果列无法解析物理表字段导致列权限失效 by xlorne · Pull Request #213 · codingapi/springboot-framework Conversation
Contributor
查询引擎将业务SQL包装为 SELECT 裸列 FROM (...) AS base 形态后, 结果集元数据的表名为派生表别名或空串,无法映射回物理表字段, 修复方式:遍历AST时为派生表(FROM/JOIN子查询)构建"输出列→物理表字段" Closes #212 Describe what this PR does / why we need itDoes this pull request fix one issue?Describe how you did itDescribe how to verify itSpecial notes for reviews
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions查询引擎将业务SQL包装为 SELECT 裸列 FROM (...) AS __base__ 形态后, 结果集元数据的表名为派生表别名或空串,无法映射回物理表字段, DataAuthorizationFilter.supportColumnAuthorization 收到错误表名, 列权限/脱敏失效。 修复方式:遍历AST时为派生表(FROM/JOIN子查询)构建"输出列→物理表字段" 投影映射(DerivedTableProjection),支持多层派生链归因与单 * 展开归因; 列权限解析改为联合解析 resolveTableNameAndColumn,命中派生表别名或 表名为空/未知时沿投影归因,已知物理表及歧义场景保持原有行为不变。 Closes #212 Co-Authored-By: Claude <[email protected]> Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. 如下SQL无法正常的提取到表名和字段数据信息Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. | |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |