pingcap / parser

A MySQL Compatible SQL Parser
Apache License 2.0
1.41k stars 489 forks source link

fix restore for count(*) #1240

Closed XuHuaiyu closed 3 years ago

XuHuaiyu commented 3 years ago

What problem does this PR solve?

Before this commit, select count(*) from t will be restored to select count(1) from t. After this commit, select count(*) from t can be restored to select count(*) from t correctly

What is changed and how it works?

Check List

Tests

Code changes

Side effects

N/A

Related changes