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

mysql8 .0 OVER() function not support #175

Closed
night2049 opened this issue Dec 15, 2021 · 3 comments
Closed

mysql8 .0 OVER() function not support #175

night2049 opened this issue Dec 15, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@night2049
Copy link

SELECT row_number() OVER ( ORDER BY id ), id FROM xxx;

Compatibility and Syntax tips: "Syntax error"

@night2049 night2049 added the bug Something isn't working label Dec 15, 2021
@tianzhou
Copy link
Collaborator

Looks like we are using an old pingcap/parser version. github.com/pingcap/parser v0.0.0-20200623164729-3a18f1e5dceb

Upgrading to a new version including pingcap/parser#959 should fix this.

Will try to upgrade.

@tianzhou
Copy link
Collaborator

The only newer release is https://github.com/pingcap/parser/releases/tag/v5.2.0-alpha. Though it's alpha, we just use it for syntax check and can take a try.

Hopefully we just need to update the github.com/pingcap/parser dependency in our go.mod file

@night2049
Copy link
Author

看起来我们正在使用旧的pingcap/解析器版本。github.com/pingcap/parser v0.0.0-20200623164729-3a18f1e5dceb

升级到包含pingcap/parser#959的新版本应该可以解决这个问题。

将尝试升级。

hello,i think need add feature for enforce run Issues,or check for example mysql to EXPLAIN ${sql} to backup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants