dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.5k stars 664 forks source link

Correct version parsing of TiDB #1114

Closed dveeden closed 1 year ago

dveeden commented 1 year ago

Description

Update the version reporting for TiDB.

Examples:

Without this change this would parse as 5.7.25 and 8.0.11.

With this change this parses as 7.0.0 and 7.2.0.

The first version in the version string (5.7.25, 8.0.11) is the version of MySQL that TiDB claims to be compatible with. The second version is the actual version of TiDB.

Checklist

amjith commented 1 year ago

Thank you!