Skip to content

Commit 2e4d372

Browse files
committed
Merge branch 'statement_privs' of https://github.com/dveeden/docs into pr/21815
2 parents 1fdb4c6 + 141d57c commit 2e4d372

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+
## Permissions
315+
316+
The `CREATE BINDING` statement requires the `SUPER` privilege.
317+
=======
314318
## SQL statement truncation
315319

316320
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`.

0 commit comments

Comments
 (0)