shatteredsilicon / ssm-submodules

GNU Affero General Public License v3.0
0 stars 2 forks source link

Statements Ineligible for EXPLAIN #182

Closed gordan-bobic closed 11 months ago

gordan-bobic commented 11 months ago

Statements like:

SET STATEMENT max_statement_time=3600 FOR SELECT [...]

Come up as ineligible for EXPLAIN:

This type of query is not supported for EXPLAIN

This case needs to be detected, and handled by removing:

/SET STATEMENT max_statement_time=[0-9]+ FOR /

from the front of the statement before sending it to EXPLAIN.