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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>