Privilege check is skipped for PREPARE statement #35784
Labels
component/privilege
severity/moderate
sig/sql-infra
SIG: SQL Infra
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
The root creates a user with no privileges:
Login with
u1
:2. What did you expect to see? (Required)
3. What did you see instead (Required)
Although
u1
cannot see the data, he can inspect the table definition through thePREPARE
statement. E.g. he knows that the tabletest.t1
exists, andtest.t1
has columnid
but nox
.4. What is your TiDB version? (Required)
master
The text was updated successfully, but these errors were encountered: