You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by ha...@apache.org on 2001/11/15 13:17:15 UTC
cvs commit: jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/test Tester.java
hammant 01/11/15 04:17:15
Modified: apps/db/src/java/org/apache/avalon/db/test Tester.java
Log:
start of delete
Revision Changes Path
1.19 +15 -0 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.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- Tester.java 2001/11/15 09:11:15 1.18
+++ Tester.java 2001/11/15 12:17:15 1.19
@@ -57,6 +57,11 @@
"<value col=\"surname\">Rubble</value>" +
"<value col=\"age\">39</value>" +
"</row>" +
+ "<row>" +
+ "<value col=\"forename\">I am going</value>" +
+ "<value col=\"surname\">to be deleted</value>" +
+ "<value col=\"age\">999</value>" +
+ "</row>" +
"</rows>" +
"</insert-into>";
st.executeUpdate(insertInto);
@@ -111,6 +116,16 @@
st.execute(view);
st.close();
+
+ System.err.println("DELETE 1");
+ st = mCon.createStatement();
+ String delt = "<delete-rows from=\"Flintstones\">" +
+ "<where>" +
+ "<condition expr=\"age>100\"/>" +
+ "</where>" +
+ "</delete-rows>";
+ st.execute(delt);
+
/*
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>