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

TiDB should return an empty org_name for expression #45145

Closed
YangKeao opened this issue Jul 4, 2023 · 0 comments · Fixed by #45146
Closed

TiDB should return an empty org_name for expression #45145

YangKeao opened this issue Jul 4, 2023 · 0 comments · Fixed by #45146
Labels
severity/minor type/bug This issue is a bug.

Comments

@YangKeao
Copy link
Member

YangKeao commented Jul 4, 2023

For a select statement with SELECT ... as 'xxx' , TiDB always returns the org_name as xxx, but if it's an expression, TiDB should returns an empty org_name as indicated by the MySQL document:

char * org_name
The name of the field, as a null-terminated string. Aliases are ignored. For expressions, the value is an empty string. For a procedure parameter, the parameter name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/minor type/bug This issue is a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant