code: @Override
     protected boolean isFunctionExists(Connection conn, String functionName) throws SQLException
     {
        ResultSet resultSet = null;
        try
        {
           resultSet = conn.getMetaData().getFunctions(
              conn.getCatalog(), null, "%");
           while (resultSet.next())
           {
              if (functionName.equals(resultSet.getString("FUNCTION_NAME")))
              {
                 return true;
              }
           }
        }
        catch (SQLException e)
        {
           if (LOG.isDebugEnabled())
           {
              LOG.debug("SQLException occurs while checking the function " + functionName, e);
           }
           return false;
        }
        finally
        {
           JDBCUtils.freeResources(resultSet, null, null);
        }
  
        return false;
     }
docs: {@inheritDoc}