title: Error: Incorrect syntax near the keyword 'RETURN'.SQLState: S0001ErrorCode: 156 when working with Squirrel client
body: <p>Iam trying to write a PL/SQL function in Squirrel client. when Iam tryin to excute a script in squirrel getting this error. Please help me as Im new to this squirrel client.</p>
  
  <p><strong>Script:</strong></p>
  
  <pre><code>CREATE  FUNCTION totalHoliday
  RETURN int IS
     total int:= 0;
  BEGIN
     SELECT count(*) into total
     FROM dbo.HOLIDAY;
     RETURN total;
  END;
  /
  </code></pre>
  
  <p><strong>Error:</strong> Incorrect syntax near the keyword 'RETURN'.
  SQLState:  S0001
  ErrorCode: 156
  Error occured in:
  CREATE  FUNCTION totalHoliday
  RETURN int IS
     total int:= 0</p>
  
  <p>I tried by giving AS Instead of IS but did'nt work..</p>