Skip to content

ProcessInfo can't get SQL when using go-sql-driver to prepare and execute SQL. #41156

Closed
@wshwsh12

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)

Metadata

Assignees

Labels

affects-6.5This bug affects the 6.5.x(LTS) versions.sig/sql-infraSIG: SQL Infratype/bugThe issue is confirmed as a bug.type/enhancementThe issue or PR belongs to an enhancement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions