avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/test Tester.java
Date Thu, 29 Nov 2001 23:21:46 GMT
hammant     01/11/29 15:21:46

  Modified:    apps/db/src/java/org/apache/avalon/db/test Tester.java
  Log:
  Tester is capable of handling sql and lxsql now.
  
  Revision  Changes    Path
  1.35      +1 -1      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.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- Tester.java	2001/11/29 23:08:59	1.34
  +++ Tester.java	2001/11/29 23:21:46	1.35
  @@ -61,7 +61,7 @@
               lxSQL = mLxsql.substring(msgEnd+3,end);
               Statement st = mCon.createStatement();
   
  -            if (lxSQL.indexOf("<simple-select") > 0) {
  +            if (lxSQL.indexOf("<simple-select") > 0 | lxSQL.startsWith("SELECT"))
{
                   ResultSet rs = st.executeQuery(lxSQL.trim());
                   System.out.println("Results:");
                   while (rs.next()) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message