Replies: 1 comment 4 replies
-
先升最新版再试试 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
重现步骤
1、一个非dba角色用户(主要是不能有查询所有库权限)申请了相关库的权限
2、在相关库执行类似SQL
select term,assist_institution_code,pr_m_amonunt,pr_m_amonunt_total
FROM
(
)t_rn
where rn = 1
预期外的结果
Error
无法校验查询语句权限,请联系管理员,错误信息:line 7 column 40 near "(partition by term order by pr_m_amonunt desc) as rn, sum(pr_m_amonunt) over (partition by term) pr_m_amonunt_total FROM ( select term,replace(assist_institution_code,'_YKB','')assist_institution_code,SUM(loan_amount)pr_m_amonunt from t_order_day where 1=1 and stat_date >= DATE_FORMAT('2022-10-21','%Y-%m-01') and stat_date <= '2022-10-21' and DATE_FORMAT('2022-10-21','%Y-%m') = DATE_FORMAT('2022-10-21','%Y-%m') group by term,replace(assist_institution_code,'_YKB','') )t_amount )t_rn where rn = 1"
日志文本
版本
1.8.5
部署方式
Docker
是否还有其他可以辅助定位问题的信息?比如数据库版本等
mysql8
Beta Was this translation helpful? Give feedback.
All reactions