Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

616 B
Raw Blame
- statement: CREATE TABLE t(a int);
- statement: |-
    CREATE FUNCTION add_two_numbers(a INT, b INT)
    RETURNS INT
    BEGIN
      DECLARE result INT;
      SET result = a + b;
      RETURN result;
    END;
  want:
    - status: 2
      code: 1701
      title: SYSTEM_FUNCTION_DISALLOW_CREATE
      content: |-
        Function is forbidden, but "CREATE FUNCTION add_two_numbers(a INT, b INT)
        RETURNS INT
        BEGIN
          DECLARE result INT;
          SET result = a + b;
          RETURN result;
        END;" creates
      startposition:
        line: 1
        column: 0
      endposition: null