title: Boolean parameter in Oracle function
body: <p>This is the signature of my Oracle function</p>
  
  <pre><code> FUNCTION functionName(
       param1 VARCHAR2, 
       param2 VARCHAR2, 
       param3 DATE, 
       param4 DATE, 
       param5 BOOLEAN) 
   RETURN myOwnType;
  </code></pre>
  
  <p>I use it : </p>
  
  <pre><code>myOwnTypeVar := functionName('something', 'some', SYSDATE, SYSDATE, TRUE);
  </code></pre>
  
  <p>I have this error :</p>
  
  <pre><code>PLS-00382 expression is of wrong type.
  </code></pre>
  
  <p>All the types seem to be respected. I wonder if I can use Boolean parameter in function (there was no problem using it in procedures).</p>
  
  <p>Thank you.</p>
  
  <p>Note : Declaration of myOwnTypeVar </p>
  
  <pre><code>myOwnTypeVar myOwnType; 
  </code></pre>