This commit is contained in:
Ziver Koc 2015-12-08 16:44:39 +01:00
parent d384209df0
commit bb9bfa89ba
3 changed files with 2 additions and 2 deletions

View file

@ -62,7 +62,7 @@ public class ListSQLResult<T> implements SQLResultHandler<List<T>> {
public List<T> handleQueryResult(Statement stmt, ResultSet result) throws SQLException{
while( result.next() )
list.add((T)result.getObject(0));
list.add((T)result.getObject(1));
return list;
}
}

View file

@ -63,7 +63,7 @@ public class PropertiesSQLResult implements SQLResultHandler<Properties> {
*/
public Properties handleQueryResult(Statement stmt, ResultSet result) throws SQLException{
while( result.next() )
prop.setProperty(result.getString(0), result.getString(1));
prop.setProperty(result.getString(1), result.getString(2));
return prop;
}
}