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

注释oracle.py文件中filter_sql函数内容,以修复该部分引入的错误ORA-00918 #2796

Closed
wants to merge 0 commits into from

Conversation

hhw007
Copy link
Contributor

@hhw007 hhw007 commented Sep 9, 2024

1、oracle.py的646行filter_sql函数作用是限制查询返回的行数。如果查询SQL的查询字段列表包含同名列,经过filter_sql函数处理之后的SQL,因为查询字段列表sql_audit.中存在相同名称的列,在数据库中执行会报错ORA-00918。原查询SQL的查询字段列表虽然存在同名列,但有不同的表别名来区分,因此在数据库中执行不会报错。例如sql:select a.,b.* from a,b where a.custid=b.custid;
该SQL可以在数据库中正常执行,但在archery平台上执行会报错ORA-00918。
2、oracle.py中689行cursor.fetchmany(int(limit_num))已经有限制查询返回行数的作用,所以不必通过filter_sql函数来再次限制查询返回行数。

@LeoQuote
Copy link
Collaborator

LeoQuote commented Sep 9, 2024

你好, 如果这些代码没有作用, 请直接删除, 如果整个方法不做操作, 可以直接删除整个方法

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