diff --git a/Zutil.jar b/Zutil.jar index 19342f5..918aec7 100755 Binary files a/Zutil.jar and b/Zutil.jar differ diff --git a/src/zutil/db/handler/ListSQLResult.java b/src/zutil/db/handler/ListSQLResult.java index a6aee59..c0aec6c 100755 --- a/src/zutil/db/handler/ListSQLResult.java +++ b/src/zutil/db/handler/ListSQLResult.java @@ -62,7 +62,7 @@ public class ListSQLResult implements SQLResultHandler> { public List handleQueryResult(Statement stmt, ResultSet result) throws SQLException{ while( result.next() ) - list.add((T)result.getObject(0)); + list.add((T)result.getObject(1)); return list; } } diff --git a/src/zutil/db/handler/PropertiesSQLResult.java b/src/zutil/db/handler/PropertiesSQLResult.java index a0548ee..28f5005 100755 --- a/src/zutil/db/handler/PropertiesSQLResult.java +++ b/src/zutil/db/handler/PropertiesSQLResult.java @@ -63,7 +63,7 @@ public class PropertiesSQLResult implements SQLResultHandler { */ 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; } }