cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From blorit...@apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/acting DatabaseAddAction.java
Date Mon, 12 Mar 2001 18:16:59 GMT
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 <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  - * @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


Mime
View raw message