commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ebo...@apache.org
Subject cvs commit: jakarta-commons/configuration/src/java/org/apache/commons/configuration DatabaseConfiguration.java
Date Thu, 21 Oct 2004 18:02:09 GMT
ebourg      2004/10/21 11:02:09

  Modified:    configuration/xdocs changes.xml
               configuration/src/java/org/apache/commons/configuration
                        DatabaseConfiguration.java
  Log:
  DatabaseConfiguration.isEmpty() now returns true if an SQLException occurs.
  This is consistent with JNDIConfiguration.isEmpty() and the empty iterator returned by getKeys()
in this case.
  
  Revision  Changes    Path
  1.67      +3 -0      jakarta-commons/configuration/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/configuration/xdocs/changes.xml,v
  retrieving revision 1.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- changes.xml	19 Oct 2004 13:41:44 -0000	1.66
  +++ changes.xml	21 Oct 2004 18:02:09 -0000	1.67
  @@ -8,6 +8,9 @@
     <body>
   
       <release version="1.1-dev" date="in CVS">
  +      <action dev="ebourg" type="fix">
  +        DatabaseConfiguration.isEmpty() now returns true if an SQLException occurs.
  +      </action>
         <action dev="ebourg" type="add">
           Added two methods copy(Configuration, Configuration) and
           append(Configuration, Configuration) in ConfigurationUtils to copy
  
  
  
  1.12      +2 -2      jakarta-commons/configuration/src/java/org/apache/commons/configuration/DatabaseConfiguration.java
  
  Index: DatabaseConfiguration.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/configuration/src/java/org/apache/commons/configuration/DatabaseConfiguration.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- DatabaseConfiguration.java	18 Oct 2004 14:05:23 -0000	1.11
  +++ DatabaseConfiguration.java	21 Oct 2004 18:02:09 -0000	1.12
  @@ -208,7 +208,7 @@
        */
       public boolean isEmpty()
       {
  -        boolean empty = false;
  +        boolean empty = true;
   
           // build the query
           StringBuffer query = new StringBuffer("SELECT count(*) FROM " + table);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message