-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: improve the column info for client #4770
Conversation
/run-all-tests |
LGTM |
fix #4773 |
/run-integration-common-test |
/run-all-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
executor/executor_test.go
Outdated
@@ -1644,6 +1644,22 @@ func (s *testSuite) TestColumnName(c *C) { | |||
c.Check(len(fields), Equals, 2) | |||
c.Check(fields[0].Column.Name.L, Equals, "d") | |||
c.Check(fields[1].Column.Name.L, Equals, "c") | |||
rs, err = tk.Exec("select c as a from t as t2") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment for your test case to explain the purpose of the test.
expression/schema.go
Outdated
@@ -115,7 +115,9 @@ func (s *Schema) FindColumnAndIndex(astCol *ast.ColumnName) (*Column, int, error | |||
if idx == -1 { | |||
idx = i | |||
} else { | |||
return nil, -1, errors.Errorf("Column %s is ambiguous", col.String()) | |||
if !col.IsAggOrSubq { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment here.
PTAL @shenli |
LGTM |
/run-all-tests |
fix #4660
PTAL @coocood @hanfei1991 @breeswish