-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
新增sql执行行数限制 #2366
新增sql执行行数限制 #2366
Conversation
格式化代码
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2366 +/- ##
==========================================
- Coverage 75.99% 75.99% -0.01%
==========================================
Files 111 111
Lines 15749 15752 +3
==========================================
+ Hits 11968 11970 +2
- Misses 3781 3782 +1
☔ View full report in Codecov by Sentry. |
@@ -69,6 +69,11 @@ def post(self, request): | |||
check_result = check_engine.execute_check( | |||
db_name=db_name, sql=request.data["full_sql"].strip() | |||
) | |||
max_sql_length = SysConfig().get("max_sql_length", default_value=10000) | |||
if len(check_result.rows) > int(max_sql_length): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该允许设置为 0 , 也就是不做限制
建议默认配置0不做限制,新加参数都尽量不改变前序版本的逻辑 其实30m左右的语句应该都没什么影响,卡死可以找找其他原因 |
好的,已经修改 |
* 新增cas登录 * 新增cas登录 * 新增cas登录 * 新增cas登录 * 新增cas登录 * black格式化 * 修改模块引用错误 * 修改模块引用错误 * 修改模块引用错误 * 新增最大SQL提交数 * Update mssql.py 格式化代码 * black 代码 --------- Co-authored-by: lanjiaxuan <lanjiaxuan@e6yun.com>
#2365
新增sql执行行数限制