[MariaDB discuss] Detect INSERT vs REPLACE in BEFORE INSERT trigger