db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/util/sequence AbstractSequenceManager.java
Date Mon, 12 May 2003 08:57:37 GMT
arminw      2003/05/12 01:57:37

  Modified:    src/java/org/apache/ojb/broker/util/sequence
                        AbstractSequenceManager.java
  Log:
  fix #166, patch by Oliver Matz
  
  Revision  Changes    Path
  1.9       +4 -3      db-ojb/src/java/org/apache/ojb/broker/util/sequence/AbstractSequenceManager.java
  
  Index: AbstractSequenceManager.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/util/sequence/AbstractSequenceManager.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- AbstractSequenceManager.java	11 Apr 2003 21:59:49 -0000	1.8
  +++ AbstractSequenceManager.java	12 May 2003 08:57:37 -0000	1.9
  @@ -10,6 +10,7 @@
   import org.apache.ojb.broker.util.logging.LoggerFactory;
   
   import java.math.BigDecimal;
  +import java.math.BigInteger;
   import java.sql.Date;
   import java.sql.Time;
   import java.sql.Timestamp;
  @@ -149,7 +150,7 @@
                   }
               case Types.DECIMAL:
                   {
  -                    result = new BigDecimal(getUniqueLong(field));
  +                    result = new BigDecimal(BigInteger.valueOf(getUniqueLong(field)));
                       break;
                   }
               case Types.DOUBLE:
  @@ -184,7 +185,7 @@
                   }
               case Types.NUMERIC:
                   {
  -                    result = new BigDecimal(getUniqueLong(field));
  +                    result = new BigDecimal(BigInteger.valueOf(getUniqueLong(field)));
                       break;
                   }
               case Types.REAL:
  
  
  

Mime
View raw message