Fix IndexOutOfBoundsException in ResultSetMetaData

Previously this had an off-by-one error.
Merge pull request #26 from maginatics/index-out-of-bounds-exception

Fix IndexOutOfBoundsException in ResultSetMetaData