bloritsch    01/03/12 10:23:33

  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.3   +3 -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.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- OraAddAction.java 2001/03/12 18:16:22     1.1.2.2
  +++ OraAddAction.java 2001/03/12 18:23:32     1.1.2.3
  @@ -41,7 +41,7 @@
    * only one table at a time to update.
    *
    * @author <a href="mailto:[EMAIL PROTECTED]">Berin Loritsch</a>
  - * @version CVS $Revision: 1.1.2.2 $ $Date: 2001/03/12 18:16:22 $
  + * @version CVS $Revision: 1.1.2.3 $ $Date: 2001/03/12 18:23:32 $
    */
   public class OraAddAction extends DatabaseAddAction {
       private static final Map selectLOBStatements = new HashMap();
  @@ -93,9 +93,10 @@
                   }
               }
   
  -            for (int i = 0; i < values.length; i++, currentIndex++) {
  +            for (int i = 0; i < values.length; i++) {
                   if (this.isLargeObject(values[i].getAttribute("type")) == 
false) {
                       this.setColumn(statement, currentIndex, request, 
values[i]);
  +                    currentIndex++;
                   }
               }
   
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to