请问,execute状态的info信息是null,这种怎么查看当前执行的sql是什么呢。
尝试用
select tidb_decode_sql_digests( concat(‘'["’,digest,‘"]'’) ) from information_schema.cluster_processlist limit 1;
不过报错
MySQL> select tidb_decode_sql_digests( concat(‘'["’,digest,‘"]'’) ) from information_schema.cluster_processlist limit 1;
±--------------------------------------------------------+
| tidb_decode_sql_digests( concat(‘'["’,digest,‘"]'’) ) |
±--------------------------------------------------------+
| NULL |
±--------------------------------------------------------+
1 row in set, 1 warning (0.003 sec)
MySQL > show warnings;
±--------±-----±----------------------------------------------------------------------------------------+
| Level | Code | Message |
±--------±-----±----------------------------------------------------------------------------------------+
| Warning | 1210 | The argument can’t be unmarshalled as JSON array: ‘’["f1808cf7433c3641b0b4d6bfc44ae…’ |
±--------±-----±----------------------------------------------------------------------------------------+