From 6b5b356d4c0019114da2ec68a3b082121a973b59 Mon Sep 17 00:00:00 2001 From: Harish Kumar Date: Wed, 4 Nov 2026 10:03:59 +0530 Subject: [PATCH] fix: harden SQL classification for the tool CLI and MCP server Refuses more writes that would run as reads, and blocks more ways of writing DROP DATABASE, DROP SCHEMA or TRUNCATE. - sql_explain explains one statement and refuses EXPLAIN options in its input (ANALYZE, VERBOSE, an option list), since some drivers run every statement after EXPLAIN and EXPLAIN ANALYZE executes it; a parenthesized query is still explained. - Writes that ran as reads: Snowflake ->> statement chains; dbt Jinja anywhere in the SQL on the dbt route; Spark TRANSFORM ... USING