You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by bl...@apache.org on 2001/03/12 19:16:23 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/acting OraAddAction.java
bloritsch 01/03/12 10:16:22
Modified: src/org/apache/cocoon/acting Tag: xml-cocoon2
OraAddAction.java
Log:
Fixed indexing error with AddAction
Revision Changes Path
No revision
No revision
1.1.2.2 +5 -2 xml-cocoon/src/org/apache/cocoon/acting/Attic/OraAddAction.java
Index: OraAddAction.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/acting/Attic/OraAddAction.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- OraAddAction.java 2001/03/12 15:52:44 1.1.2.1
+++ OraAddAction.java 2001/03/12 18:16:22 1.1.2.2
@@ -41,7 +41,7 @@
* only one table at a time to update.
*
* @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
- * @version CVS $Revision: 1.1.2.1 $ $Date: 2001/03/12 15:52:44 $
+ * @version CVS $Revision: 1.1.2.2 $ $Date: 2001/03/12 18:16:22 $
*/
public class OraAddAction extends DatabaseAddAction {
private static final Map selectLOBStatements = new HashMap();
@@ -69,12 +69,13 @@
}
PreparedStatement statement = conn.prepareStatement(query);
+ getLogger().info(query);
Configuration[] keys = conf.getChild("table").getChild("keys").getChildren("key");
Configuration[] values = conf.getChild("table").getChild("values").getChildren("value");
currentIndex = 1;
- for (int i = 0; i < keys.length; i++, currentIndex++) {
+ for (int i = 0; i < keys.length; i++) {
if ("manual".equals(keys[i].getAttribute("mode", "automatic"))) {
String selectQuery = this.getSelectQuery(keys[i]);
@@ -88,6 +89,7 @@
set.close();
set.getStatement().close();
+ currentIndex++;
}
}
@@ -104,6 +106,7 @@
if ("".equals(query) == false) {
PreparedStatement LOBstatement = conn.prepareStatement(query);
+ getLogger().info(query);
currentIndex = 1;
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org