Return-Path: Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org Received: (qmail 45809 invoked by uid 500); 12 Mar 2001 18:16:59 -0000 Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk Reply-To: cocoon-dev@xml.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 45797 invoked by uid 1152); 12 Mar 2001 18:16:59 -0000 Date: 12 Mar 2001 18:16:59 -0000 Message-ID: <20010312181659.45796.qmail@apache.org> From: bloritsch@apache.org To: xml-cocoon-cvs@apache.org Subject: cvs commit: xml-cocoon/src/org/apache/cocoon/acting DatabaseAddAction.java bloritsch 01/03/12 10:16:59 Modified: src/org/apache/cocoon/acting Tag: xml-cocoon2 DatabaseAddAction.java Log: Fixed indexing error with AddAction Revision Changes Path No revision No revision 1.1.2.16 +3 -2 xml-cocoon/src/org/apache/cocoon/acting/Attic/DatabaseAddAction.java Index: DatabaseAddAction.java =================================================================== RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/acting/Attic/DatabaseAddAction.java,v retrieving revision 1.1.2.15 retrieving revision 1.1.2.16 diff -u -r1.1.2.15 -r1.1.2.16 --- DatabaseAddAction.java 2001/03/12 15:52:43 1.1.2.15 +++ DatabaseAddAction.java 2001/03/12 18:16:58 1.1.2.16 @@ -40,7 +40,7 @@ * only one table at a time to update. * * @author Berin Loritsch - * @version CVS $Revision: 1.1.2.15 $ $Date: 2001/03/12 15:52:43 $ + * @version CVS $Revision: 1.1.2.16 $ $Date: 2001/03/12 18:16:58 $ */ public class DatabaseAddAction extends AbstractDatabaseAction { protected static final Map addStatements = new HashMap(); @@ -74,7 +74,7 @@ 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]); @@ -86,6 +86,7 @@ set.close(); set.getStatement().close(); + currentIndex++; } } ---------------------------------------------------------------------- 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