geotools/geotools — pull request #281 by benjamincburns (2013-10-01 02:57:51+00:00)
Title: Fix off-by-one bug in JDBCJoiningFeatureReader

Prior to this commit, JDBCJoiningFeatureReader had an off-by-one bug its column cursor management for joins on DataStores with exposed primary keys. See [GEOS-5149](https://jira.codehaus.org/browse/GEOS-5149) for an example of the kind of behavior this bug was causing.

Also added logic to exercise primary key exposition in JDBCFeatureReaderTest, and extended JDBCFeatureReaderTest to exercise JDBCJoiningFeatureReader.