title: Multiple ResultSets were returned by the query Exception
body: <p><strong>Note</strong></p>
  
  <p>When I use the following dependencies (i.e., use an older version of Anorm) the below works as expected (no exception is thrown).</p>
  
  <pre><code> addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.3.8")
   "org.postgresql" % "postgresql" % "9.4-1202-jdbc42"
  </code></pre>
  
  <p><strong>Issue</strong></p>
  
  <p>In PostgreSQL I have a user defined function</p>
  
  <pre><code>    CREATE OR REPLACE FUNCTION pPersonGet(p_personId bigint)
  RETURNS TABLE (
      id bigint,
      shortname character varying,
      longname  character varying,
      avatarURL character varying,
      isActive boolean) AS
  $$
  BEGIN
  
  return QUERY
  select p.id, p.shortname, p.longname, p.avatarURL, p.isActive
   From person p
   where p_personId is null or p.id = p_personId;
  
  END
  $$ LANGUAGE plpgsql;
  </code></pre>
  
  <p>When executing the following <code>find</code> function with Anorm 2.4</p>
  
  <pre><code>  val selectStmt =
      """
        select id, shortname, longname, avatarURL, isActive from pPersonGet({id});
      """
    ....
    ....
    val simple = {
      get[PersonID]("id") ~
        str("shortname") ~
        str("longname") ~
        str("avatarurl") ~
        get[Boolean]("isActive") map {
        case id~shortname~longname~avatarurl~isActive
        =&gt; Person(Some(id),
          Name(short, long),
          avatarurl,
          isActive)
      }
    }
    ....
    ....
    def find(id:Option[PersonID]) : List[Person] = {
      DB.withConnection { implicit conn =&gt;
        anorm.SQL(selectStmt).on("id" -&gt; id).as(simple *)
      }
    }
  </code></pre>
  
  <p>I get the following exception</p>
  
  <pre><code>[PSQLException: Multiple ResultSets were returned by the query.]
  </code></pre>
  
  <p>Dependencies:</p>
  
  <pre><code> addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.0")
   "org.postgresql" % "postgresql" % "9.4-1202-jdbc42"
   "com.typesafe.play" %% "anorm" % "2.4.0"
  </code></pre>
  
  <p>Scala Version</p>
  
  <pre><code>scala-sdk-2.11.2
  </code></pre>