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 OraAddAction.java
Date Mon, 12 Mar 2001 18:54:47 GMT
bloritsch    01/03/12 10:54:45

  Modified:    src/org/apache/cocoon/acting Tag: xml-cocoon2
                        OraAddAction.java
  Log:
  Fixed more index errors.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.5   +7 -5      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.4
  retrieving revision 1.1.2.5
  diff -u -r1.1.2.4 -r1.1.2.5
  --- OraAddAction.java	2001/03/12 18:44:28	1.1.2.4
  +++ OraAddAction.java	2001/03/12 18:54:40	1.1.2.5
  @@ -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.4 $ $Date: 2001/03/12 18:44:28 $
  + * @version CVS $Revision: 1.1.2.5 $ $Date: 2001/03/12 18:54:40 $
    */
   public class OraAddAction extends DatabaseAddAction {
       private static final Map selectLOBStatements = new HashMap();
  @@ -94,10 +94,7 @@
               }
   
               for (int i = 0; i < values.length; i++) {
  -                if (this.isLargeObject(values[i].getAttribute("type")) == false) {
  -                    this.setColumn(statement, currentIndex, request, values[i]);
  -                    currentIndex++;
  -                } else if (values[i].getAttribute("type").equals("image")) {
  +                if (values[i].getAttribute("type").equals("image")) {
                       File binaryFile = (File) request.get(values[i].getAttribute("param"));
                       Parameters iparam = new Parameters();
   
  @@ -110,6 +107,11 @@
                       synchronized (this.files) {
                           this.files.put(binaryFile, param);
                       }
  +                }
  +
  +                if (this.isLargeObject(values[i].getAttribute("type")) == false) {
  +                    this.setColumn(statement, currentIndex, request, values[i]);
  +                    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