avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/datasource/ids/test TableIdGeneratorJdbcTestCase.java
Date Tue, 12 Feb 2002 06:26:23 GMT
leif        02/02/11 22:26:23

  Modified:    src/scratchpad/org/apache/avalon/excalibur/datasource/ids/test
                        TableIdGeneratorJdbcTestCase.java
  Log:
  Make the IdGenerator test work correctly on a PostgreSQL database.
  
  Revision  Changes    Path
  1.3       +3 -3      jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/datasource/ids/test/TableIdGeneratorJdbcTestCase.java
  
  Index: TableIdGeneratorJdbcTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-excalibur/src/scratchpad/org/apache/avalon/excalibur/datasource/ids/test/TableIdGeneratorJdbcTestCase.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TableIdGeneratorJdbcTestCase.java	8 Feb 2002 17:38:09 -0000	1.2
  +++ TableIdGeneratorJdbcTestCase.java	12 Feb 2002 06:26:23 -0000	1.3
  @@ -488,13 +488,13 @@
           }
           catch ( SQLException e )
           {
  -            if ( e.toString().indexOf( "NotImplemented" ) > 0 )
  +            if ( e.toString().toLowerCase().indexOf( "implemented" ) > 0 )
               {
                   // Not implemented
                   return false;
               }
  -            getLogger().error( "Unable to peek next_id.", e );
  -            fail( "Unable to peek next_id. " + e );
  +            getLogEnabledLogger().error( "Unable to test for BigDecimal support.", e );
  +            fail( "Unable to test for BigDecimal support. " + e );
               return false; // for compiler
           }
       }
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message