Bug Report
The mysql.ComFieldList returns default values for columns. However this isn't fully implemented in TiDB, so it won't send the actual defaults and it also seems to violate the protocol.
1. Minimal reproduce step (Required)
Send a field list query, e.g. by connecting without database and running use test in the MySQL Client.
Dump and inspect traffic with Wireshark
2. What did you expect to see? (Required)
Proper column defaults
3. What did you see instead (Required)
Too many zeros being written.
4. What is your TiDB version? (Required)
$ ./bin/tidb-server -V
Release Version: v6.6.0-alpha-274-g1e0956d5b
Edition: Community
Git Commit Hash: 1e0956d5ba41182e603295e02ae8f767d62979e4
Git Branch: master
UTC Build Time: 2023-01-22 23:13:24
GoVersion: go1.19.5
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: unistore
Bug Report
The
mysql.ComFieldListreturns default values for columns. However this isn't fully implemented in TiDB, so it won't send the actual defaults and it also seems to violate the protocol.1. Minimal reproduce step (Required)
Send a field list query, e.g. by connecting without database and running
use testin the MySQL Client.Dump and inspect traffic with Wireshark
2. What did you expect to see? (Required)
Proper column defaults
3. What did you see instead (Required)
Too many zeros being written.
4. What is your TiDB version? (Required)