froehlich 01/11/09 15:31:56 Modified: apps/db/src/java/org/apache/avalon/db/test Tester.java Log: some changes to get the <simple-select> enabled Revision Changes Path 1.10 +8 -3 jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/test/Tester.java Index: Tester.java =================================================================== RCS file: /home/cvs/jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/test/Tester.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- Tester.java 2001/11/09 17:42:28 1.9 +++ Tester.java 2001/11/09 23:31:56 1.10 @@ -1,4 +1,3 @@ - /* * Copyright (C) The Apache Software Foundation. All rights reserved. * @@ -11,6 +10,7 @@ import java.sql.DriverManager; import java.sql.Connection; import java.sql.Statement; +import java.sql.ResultSet; import java.io.File; public class Tester { @@ -65,9 +65,14 @@ "<from><table name=\"Flintstones\"/></from>" + "</simple-select>"; - st.executeQuery(select); + ResultSet rs = st.executeQuery(select); st.close(); + while (rs.next()) { + System.out.println("Result col1 = " + rs.getString(1)); + System.out.println("Result col2 = " + rs.getString(2)); + } + /* System.err.println("SELECT 2"); //TODO st = mCon.createStatement(); String select2 = "<simple-select>" + @@ -78,7 +83,7 @@ st.executeQuery(select2); st.close(); - + */ }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>