Bugfix
This commit is contained in:
parent
d384209df0
commit
bb9bfa89ba
3 changed files with 2 additions and 2 deletions
BIN
Zutil.jar
BIN
Zutil.jar
Binary file not shown.
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue