Details
-
Bug
-
Status: Open (View Workflow)
-
Minor
-
Resolution: Unresolved
-
11.4, 13.2, 13.3
-
None
Description
Discovered this while working on MDEV-42044:
Try to get optimizer trace for a query that uses a sequence:
create sequence s1; |
select setval(s1, 10); |
set optimizer_trace=1; |
select nextval(s1) as nv; |
select insufficient_privileges from information_schema.optimizer_trace; |
It will print
insufficient_privileges
|
1
|
even if one does have access to the sequence.
Analysis
Optimizer Trace code calls opt_trace_disable_if_no_tables_access() to check if one would have "appropriate access" to tables