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

排序 ORDER BY NULL 其中 NULL 被转移导致查询错误 #1494

Closed
zxr615 opened this issue Nov 25, 2021 · 0 comments
Closed

排序 ORDER BY NULL 其中 NULL 被转移导致查询错误 #1494

zxr615 opened this issue Nov 25, 2021 · 0 comments

Comments

@zxr615
Copy link
Contributor

zxr615 commented Nov 25, 2021

1. What version of Go and system type/arch are you using?

go version go1.17.2 linux/amd64

2. What version of GoFrame are you using?

github.com/gogf/gf v1.16.6

3. Can this issue be re-produced with the latest release?

4. What did you do?

-- gdb 生成出来的sql NULL 被转义了,导致查询认为 NULL 是一个字段,从而导致 sql 出错
SELECT a, COUNT(*) FROM bar GROUP BY a ORDER BY `NULL`;

image

5. What did you expect to see?

期待 NULL 值不被转义

SELECT a, COUNT(*) FROM bar GROUP BY a ORDER BY NULL;

image

6. What did you see instead?

#1499

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

No branches or pull requests

2 participants