<?xml version='1.0' encoding='UTF-8'?>
<!--
  ~ Copyright (c) DbVis Software AB. All Rights Reserved.
  -->
<sql:Dialect xmlns:sql="http://dbvis.com/sql-dialect.xsd" tag="nuodb" references="
   Create Function:  https://doc.nuodb.com/nuodb/latest/sql-development/scalar-engine/sql-reference-information/sql-statements/create-function/
   Alter Function:   https://doc.nuodb.com/nuodb/latest/reference-information/sql-reference-information/sql-statements/alter-function/
   Create Procedure: https://doc.nuodb.com/nuodb/latest/reference-information/sql-reference-information/sql-statements/create-procedure/
   Alter Procedure:  https://doc.nuodb.com/nuodb/latest/reference-information/sql-reference-information/sql-statements/alter-procedure/
   Create Trigger:   https://doc.nuodb.com/nuodb/latest/sql-development/scalar-engine/sql-reference-information/sql-statements/create-trigger/
   Alter Trigger:    https://doc.nuodb.com/nuodb/latest/reference-information/sql-reference-information/sql-statements/alter-trigger/
   ">
   
   <sql:ComplexStatement begin="{ALTER | CREATE | CREATE OR REPLACE} FUNCTION" end="" end.override="false">
      <sql:InnerStatement begin="RETURNS" end="END_FUNCTION" comment="Function can end with [EXTERNAL 'name'] or [AS ... END_FUNCTION]"/>
   </sql:ComplexStatement>
   <sql:ComplexStatement begin="{ALTER | CREATE | CREATE OR REPLACE} PROCEDURE" end="" end.override="false">
      <sql:InnerStatement begin="AS" end="END_PROCEDURE"/>
   </sql:ComplexStatement>
   <sql:ComplexStatement begin="{ALTER | CREATE | CREATE OR REPLACE} TRIGGER" end="" end.override="false">
      <sql:InnerStatement begin="AS" end="END_TRIGGER"/>
   </sql:ComplexStatement>

</sql:Dialect>