Skip to content

Commit 6436b73

Browse files
authored
sql-statement-create-binding: add note about truncation (#21825)
1 parent 6f1d2cc commit 6436b73

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sql-statements/sql-statement-create-binding.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ Empty set (0.002 sec)
311311
1 row in set (0.002 sec)
312312
```
313313

314+
## SQL statement truncation
315+
316+
When you use `CREATE BINDING ... FROM HISTORY USING PLAN DIGEST`, the binding can fail if the SQL statement stored in [statement summary tables](/statement-summary-tables.md) for that digest is truncated because it is longer than [`tidb_stmt_summary_max_sql_length`](/system-variables.md#tidb_stmt_summary_max_sql_length-new-in-v40). In this case, you need to increase `tidb_stmt_summary_max_sql_length`.
317+
314318
## MySQL compatibility
315319

316320
This statement is a TiDB extension to MySQL syntax.

0 commit comments

Comments
 (0)