hammant     02/01/02 16:14:05

  Modified:    apps/db/src/java/org/apache/avalon/db/functions/impl
                        YearIntegerFunction.java
  Log:
  Fix from Larry McCay
  
  Revision  Changes    Path
  1.3       +2 -2      
jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/functions/impl/YearIntegerFunction.java
  
  Index: YearIntegerFunction.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/functions/impl/YearIntegerFunction.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- YearIntegerFunction.java  29 Dec 2001 14:48:43 -0000      1.2
  +++ YearIntegerFunction.java  3 Jan 2002 00:14:05 -0000       1.3
  @@ -18,7 +18,7 @@
    * Class SecondIntegerFunction
    *
    * @author Paul Hammant <a href="mailto:[EMAIL PROTECTED]">[EMAIL 
PROTECTED]</a>
  - * @version $Revision: 1.2 $
  + * @version $Revision: 1.3 $
    */
   public class YearIntegerFunction extends AbstractTemporalIntegerFunction {
   
  @@ -30,7 +30,7 @@
           TemporalColumn tc = (TemporalColumn) mColumns[0];
           Date date = (Date) tc.getValue(row);
           mGregorianCalendar.setTime(date);
  -        return new Integer(mGregorianCalendar.get(Calendar.SECOND));
  +        return new Integer(mGregorianCalendar.get(Calendar.YEAR));
       }
   
       public String getStringValue(Row row) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to