-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Closed
Labels
affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.severity/moderatesig/plannerSIG: PlannerSIG: Plannertype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
mysql> prepare stmt from 'select min(2)';
Query OK, 0 rows affected (0.00 sec)
mysql> execute stmt;
+--------+
| min(2) |
+--------+
| 2 |
+--------+
1 row in set (0.01 sec)
mysql> select plan_digest from information_schema.statements_summary where query_sample_text = 'select min(2)';
+------------------------------------------------------------------+
| plan_digest |
+------------------------------------------------------------------+
| 924c7002fe994ab4e2fb723ad30548e3f1aae40ae6186a1c92520a669022d61d |
+------------------------------------------------------------------+
1 row in set (0.01 sec)
mysql> create binding from history using plan digest '924c7002fe994ab4e2fb723ad30548e3f1aae40ae6186a1c92520a669022d61d';
ERROR 1105 (HY000): binding failed: line 1 column 12 near "( ? )"
2. What did you expect to see? (Required)
Binding created success without error
3. What did you see instead (Required)
Error
4. What is your TiDB version? (Required)
master
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
affects-6.5This bug affects the 6.5.x(LTS) versions.This bug affects the 6.5.x(LTS) versions.severity/moderatesig/plannerSIG: PlannerSIG: Plannertype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.