Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

解决平台报错:'NoneType' object is not subscriptable #2132

Merged
merged 3 commits into from
Apr 24, 2023

Conversation

songtao12
Copy link
Contributor

fix:解决从SQL执行计划中获取影响行数,原代码直接从Oracle系统全局临时表SYS.PLAN_TABLE$获取数据在特定情况下(登录的Oracle用户生成了自己的PLAN_TABLE表)可能为空,从而导致Archery平台报错:'NoneType' object is not subscriptable的问题。

fix:解决从SQL执行计划中获取影响行数,原代码直接从Oracle系统全局临时表SYS.PLAN_TABLE$获取数据在特定情况下(登录的Oracle用户生成了自己的PLAN_TABLE表)可能为空,从而导致Archery平台报错:'NoneType' object is not subscriptable的问题。
@songtao12 songtao12 changed the title Update oracle.py 解决平台报错:'NoneType' object is not subscriptable Apr 24, 2023
@codecov
Copy link

codecov bot commented Apr 24, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (7632b3d) 75.44% compared to head (7fae40d) 75.44%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2132   +/-   ##
=======================================
  Coverage   75.44%   75.44%           
=======================================
  Files         103      103           
  Lines       15133    15133           
=======================================
  Hits        11417    11417           
  Misses       3716     3716           
Impacted Files Coverage Δ
sql/engines/oracle.py 50.68% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

调整代码格式
sql/engines/oracle.py Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants