Skip to content

MySQL规则00108优化 #2989

New issue

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

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

Already on GitHub? # to your account

Open
waterdrink opened this issue Mar 24, 2025 · 0 comments
Open

MySQL规则00108优化 #2989

waterdrink opened this issue Mar 24, 2025 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@waterdrink
Copy link
Collaborator

版本信息(Version)

v4.25.02

问题描述(Describe)

以下sql期望触发MySQL规则,实际没有
SELECT postid AS Post_Link, mdi.numimages AS numMarkdownImages, hi.numimages AS NumHtmlImages, hi.viewcount AS ViewCount, hi.score AS Score, hi.creationdate AS CreationDate FROM ( SELECT postid, LENGTH(markdown) - LENGTH(REPLACE(markdown, '![', 'X')) AS numimages FROM ( SELECT postid, markdown FROM ( SELECT ph.postid AS postid, ph.text AS markdown FROM posthistory AS ph WHERE ph.postid IN ( SELECT postid FROM ( SELECT postid FROM posthistory WHERE posthistorytypeid IN (2,5,8) ) AS sub1 ) ) AS sub2 ) AS sub3 ) AS mdi JOIN ( SELECT id, creationdate, score, viewcount, LENGTH(body) - LENGTH(REPLACE(body, '<img src', '<img sr')) AS numimages FROM ( SELECT * FROM posts ) AS sub4 ) AS hi ON mdi.postid = hi.id WHERE mdi.numimages > 0 AND mdi.numimages > hi.numimages

截图或日志(Log)

如何复现(To Reproduce)

问题原因

解决方案

变更影响面

受影响的模块或功能

外部引用的潜在问题或风险

版本兼容性

测试建议

@waterdrink waterdrink added the bug Something isn't working label Mar 24, 2025
@ColdWaterLW ColdWaterLW added this to the v4.2503.0 milestone Mar 24, 2025
@ColdWaterLW ColdWaterLW modified the milestones: v4.2503.0, 4.2504.0 Mar 26, 2025
@ColdWaterLW ColdWaterLW modified the milestones: v4.2504.0, v4.2505.0 Apr 21, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants