Skip to content

Commit b2e32bc

Browse files
authored
Add error test for ambiguous column name query (#1965)
1 parent 1aac383 commit b2e32bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

enginetest/queries/queries.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8524,6 +8524,10 @@ type QueryErrorTest struct {
85248524
}
85258525

85268526
var ErrorQueries = []QueryErrorTest{
8527+
{
8528+
Query: "select i from (select * from mytable a join mytable b on a.i = b.i) dt",
8529+
ExpectedErr: sql.ErrAmbiguousColumnName,
8530+
},
85278531
{
85288532
Query: "select table_name from information_schema.statistics AS OF '2023-08-31' WHERE table_schema='mydb'",
85298533
ExpectedErr: sql.ErrAsOfNotSupported,

0 commit comments

Comments
 (0)