ProcessInfo can't get SQL when using go-sql-driver to prepare and execute SQL. #41156
Closed
Description
Enhancement
ProcessInfo can't get SQL when using go-sql-driver to prepare and execute SQL.
For example, the Info is NULL when Execute
tidb> show processlist;
+---------------+------+-----------------+------+---------+------+------------+------------------+
| Id | User | Host | db | Command | Time | State | Info |
+---------------+------+-----------------+------+---------+------+------------+------------------+
| 2199023255955 | root | 127.0.0.1:36760 | NULL | Query | 0 | autocommit | show processlist |
| 2199023255957 | root | 127.0.0.1:36770 | test | Execute | 5 | autocommit | NULL |
+---------------+------+-----------------+------+---------+------+------------+------------------+
2 rows in set (0.001 sec)