Skip to content

Commit

Permalink
fix: fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
newborn22 committed Dec 3, 2024
1 parent 3e91354 commit c49a1ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions go/vt/sqlparser/testdata/select_cases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7865,10 +7865,10 @@ OUTPUT
select 5 % 3, 5 % -3, -5 % 3, -5 % -3 from dual
END
INPUT
select branch, count(*)/max(id) from t1 group by branch having (branch<>'mumbai' OR count(*)<2) order by id desc,branch desc limit 100;
select `branch`, count(*)/max(id) from t1 group by `branch` having (`branch`<>'mumbai' OR count(*)<2) order by id desc,`branch` desc limit 100;
END
OUTPUT
select branch, count(*) / max(id) from t1 group by branch having branch != 'mumbai' or count(*) < 2 order by id desc, branch desc limit 100
select `branch`, count(*) / max(id) from t1 group by `branch` having `branch` != 'mumbai' or count(*) < 2 order by id desc, `branch` desc limit 100
END
INPUT
select ST_astext(ST_Intersection(ST_GeomFromText('POLYGON((0 0, 50 45, 40 50, 0 0))'), ST_GeomFromText('LINESTRING(-10 -10, 200 200, 199 201, -11 -9)')));
Expand Down Expand Up @@ -19439,10 +19439,10 @@ OUTPUT
select * from t1 where i = 2
END
INPUT
select count(*) from t1 group by branch having branch<>'mumbai' order by id desc,branch desc limit 100;
select count(*) from t1 group by `branch` having `branch`<>'mumbai' order by id desc,`branch` desc limit 100;
END
OUTPUT
select count(*) from t1 group by branch having branch != 'mumbai' order by id desc, branch desc limit 100
select count(*) from t1 group by `branch` having `branch` != 'mumbai' order by id desc, `branch` desc limit 100
END
INPUT
select (select d from t2 where d > a) as 'x', t1.* as 'with_alias' from t1;
Expand Down

0 comments on commit c49a1ff

Please sign in to comment.