ResultSet#each and Statement#each should splat record passed to block #18

Open
wants to merge 1 commit into
from
Commits on Jan 23, 2013
  1. Record should be splatted when passing to block in ResultSet#each and…

    Jonathan Stewmon committed Jan 23, 2013
    … Stmt#each
    
    If the record is not splatted, a block that processes a result set that
    contains a single column receives the column as an array with a single value.
    
    The problem is demonstrated by many of the tests that already existed, so no
    new tests are provided with this commit. Instead, all of the tests that
    demonstrated this problem have been updated so that queries returning a single
    column use the value of that column without wrapping it in an array.