title: Unable to infer SQL type for my user-defined function which return BigInt
body: <p>My code:</p>
  
  <pre><code>def function1(userId: Long) = DB withConnection {
    implicit con =&gt;
      val res = SQL(
        """
        SELECT my_custom_function({userId}, {param2}) as "my_title"
        """
      ).on('userId -&gt; userId,
        'param2 -&gt; Array(Statuses.paid.id, Statuses.pending.id))
       .as(SqlParser.get[Option[Long]]("my_title").single) //error
  
      if (res.isDefined) res.get
      else 0L
  }
  </code></pre>
  
  <p><code>my_custom_function</code> return <code>Long</code> or <code>BigInt</code>.</p>
  
  <p>This code throws the error [<code>PSQLException: Can't infer the SQL type to use for an instance of [I. Use setObject() with an explicit Types value to specify the type to use.]</code></p>
  
  <p>What's up with that? </p>