Skip to content

duplicated column name validation #7247

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

Closed
sundy-li opened this issue Aug 23, 2022 · 0 comments · Fixed by #7307
Closed

duplicated column name validation #7247

sundy-li opened this issue Aug 23, 2022 · 0 comments · Fixed by #7307
Assignees

Comments

@sundy-li
Copy link
Member

Summary

databend > create table a3( a varchar(200), A int );
Query OK, 0 rows affected (0.004 sec)

databend > desc a3;
+-------+---------+------+---------+-------+
| Field | Type    | Null | Default | Extra |
+-------+---------+------+---------+-------+
| a     | VARCHAR | NO   |         |       |
| a     | INT     | NO   | 0       |       |
+-------+---------+------+---------+-------+
2 rows in set (0.004 sec)

databend > select * from a3;
ERROR 1105 (HY000): Code: 1006, displayText = Unable to get field named "1". Valid fields: ["0"].
databend >
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 a pull request may close this issue.

2 participants