lava-oushudb-dt-sql-parser/test/parser/mysql/syntax/fixtures/alterFunction.sql
琉易 428d851913
feat: #190 improve mysql grammer (#196)
* refactor: generic rename to mysql

* refactor: g4 with mysql syntax

* test: mysql syntax

* refactor: remove useless keywords

* refactor: remove nonReserved keywords

* refactor: lint specificFunction

---------

Co-authored-by: liuyi <liuyi@dtstack.com>
2023-11-27 15:25:40 +08:00

24 lines
786 B
SQL

-- https://dev.mysql.com/doc/refman/8.0/en/alter-function.html
/* ALTER FUNCTION func_name [characteristic ...]
characteristic: {
COMMENT 'string'
| LANGUAGE SQL
| { CONTAINS SQL | NO SQL | READS SQL DATA | MODIFIES SQL DATA }
| SQL SECURITY { DEFINER | INVOKER }
} */
ALTER FUNCTION function_name;
ALTER FUNCTION function_name COMMENT 'get id';
ALTER FUNCTION function_name COMMENT 'get id' LANGUAGE SQL;
ALTER FUNCTION function_name LANGUAGE SQL;
ALTER FUNCTION function_name NOT DETERMINISTIC;
ALTER FUNCTION function_name CONTAINS SQL;
ALTER FUNCTION function_name NO SQL;
ALTER FUNCTION function_name READS SQL DATA;
ALTER FUNCTION function_name MODIFIES SQL DATA;
ALTER FUNCTION function_name SQL SECURITY DEFINER;
ALTER FUNCTION function_name SQL SECURITY INVOKER;