Skip to content

Fix query analyzers base context / suppress keys

Grzegorz Bizon requested to merge fix/gb/fix-query-analyzer-context-name into master

What does this MR do and why?

This merge request fixes a bug in SQL query analyzers base class that was preventing us from adding new analyzer. Previously an analyzer Thread.current key was set to Class_context / Class_suppressed as calling self.class.name in a class method returns Class.

This bug was making it impossible to add a new query analyzer since the same context key would be used.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Grzegorz Bizon

Merge request reports