[SPARK-4292][SQL] Result set iterator bug in JDBC/ODBC

select * from src, get the wrong result set as follows:
```
97	val_97
97	val_97
97	val_97
97	val_97
97	val_97
97	val_97
```