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

修复mongo查询语句中解析';'异常 #1198

Closed
wants to merge 1 commit into from
Closed

Conversation

txmzzl
Copy link

@txmzzl txmzzl commented Oct 19, 2021

修复mongo查询语句中解析';'异常

@txmzzl
Copy link
Author

txmzzl commented Oct 19, 2021

修复前:
企业微信截图_16346095132767
修复后:
企业微信截图_16346286464784

@codecov
Copy link

codecov bot commented Oct 19, 2021

Codecov Report

Merging #1198 (78c7fba) into master (ae58fbd) will increase coverage by 0.00%.
The diff coverage is 66.66%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1198   +/-   ##
=======================================
  Coverage   77.95%   77.96%           
=======================================
  Files          76       76           
  Lines       11963    11967    +4     
=======================================
+ Hits         9326     9330    +4     
  Misses       2637     2637           
Impacted Files Coverage Δ
sql/engines/mongo.py 48.60% <66.66%> (+0.32%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b8eabf9...78c7fba. Read the comment docs.

@LeoQuote
Copy link
Collaborator

更新一下代码吧

result['msg'] += f"\n错误: {collection_name} 文档不存在!"
sql = sql.strip()
# 以;作为语句结束
q_sql = sql.split(";")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

split对语句内本身包含;的不太友好啊

@hhyo
Copy link
Owner

hhyo commented Dec 1, 2021

#1253 已处理

@hhyo hhyo closed this Dec 31, 2021
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.

3 participants