What problem does it solve? LLMs frequently generate CREATE PROCEDURE statements that fail on MariaDB — combining OR REPLACE with IF NOT EXISTS, relying on DETERMINISTIC for procedures, or misusing parameter modes — because they apply generic or MySQL/Oracle assumptions instead of MariaDB's actual syntax and privilege behavior. ## Core Features & Use Cases - Syntax Delta Reference: Covers OR REPLACE vs IF NOT EXISTS mutual exclusion, DEFINER and SQL SECURITY DEFINER/INVOKER, IN/OUT/INOUT parameter modes, and parameter DEFAULT values (11.8+). - LLM Trap Table: Maps common incorrect outputs (e.g., two-word IN OUT outside Oracle mode, expecting advisory characteristics to be enforced) to the correct MariaDB forms. - Privilege & Invocation Guidance: Explains CREATE ROUTINE and SET USER requirements, automatic ALTER ROUTINE/EXECUTE grants, CALL-based invocation, and the client-side DELIMITER convention. - Use Case: When asked to write a stored procedure with an OUT parameter and a default-valued IN parameter for MariaDB 11.8, produce valid syntax on the first attempt without illegal clause combinations. ## Quick Start Ask the AI to write a MariaDB CREATE PROCEDURE statement with OUT and IN parameters, and it will apply the correct MariaDB-specific syntax and privilege rules.