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 AbstractDatabaseAction.java
Date Wed, 07 Mar 2001 20:44:25 GMT
bloritsch    01/03/07 12:44:25

  Modified:    src/org/apache/cocoon/acting Tag: xml-cocoon2
                        AbstractDatabaseAction.java
  Log:
  Corrected Null handling
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.13  +5 -2      xml-cocoon/src/org/apache/cocoon/acting/Attic/AbstractDatabaseAction.java
  
  Index: AbstractDatabaseAction.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/acting/Attic/AbstractDatabaseAction.java,v
  retrieving revision 1.1.2.12
  retrieving revision 1.1.2.13
  diff -u -r1.1.2.12 -r1.1.2.13
  --- AbstractDatabaseAction.java	2001/03/07 20:30:55	1.1.2.12
  +++ AbstractDatabaseAction.java	2001/03/07 20:44:22	1.1.2.13
  @@ -168,7 +168,7 @@
    * </table>
    *
    * @author <a href="mailto:bloritsch@apache.org">Berin Loritsch</a>
  - * @version CVS $Revision: 1.1.2.12 $ $Date: 2001/03/07 20:30:55 $
  + * @version CVS $Revision: 1.1.2.13 $ $Date: 2001/03/07 20:44:22 $
    */
   public abstract class AbstractDatabaseAction extends AbstractComplimentaryConfigurableAction
implements Configurable {
       protected Map files = new HashMap();
  @@ -230,7 +230,7 @@
           String attribute = entry.getAttribute("param", "");
           String value = request.getParameter(attribute);
   
  -        if (value == null) {
  +        if ("".equals(value.trim())) {
               switch (typeObject.intValue()) {
                   case Types.DISTINCT:
                       statement.setNull(position, Types.BINARY);
  @@ -242,6 +242,9 @@
                       if (imageFile == null) {
                           statement.setNull(position, Types.INTEGER);
                       }
  +                    break;
  +                case Types.CLOB:
  +                case Types.VARCHAR:
                       break;
                   default:
                       statement.setNull(position, typeObject.intValue());
  
  
  

Mime
View raw message