title: Toad error when creating function
body: <p>I'm trying to create this function using Toad, but I keep getting an error.</p>
  
  <pre><code>CREATE OR REPLACE FUNCTION minimum (v1 number, v2 number)
  RETURN number IS
  
  BEGIN
      IF v1 &lt; v2 THEN
          RETURN v1;
      ELSE
          RETURN v2;
      END IF ;
      SHOW ERRORS;
  END;
  
  SELECT minimum(1, 2)
  FROM dual;
  </code></pre>
  
  <p>The error I get is this, but I can't understand what is my mistake.</p>
  
  <pre><code>Warning: Function created with compilation errors
  </code></pre>