You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by ha...@apache.org on 2002/01/03 01:14:05 UTC
cvs commit: jakarta-avalon-cornerstone/apps/db/src/java/org/apache/avalon/db/functions/impl YearIntegerFunction.java
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:Paul_Hammant@yahoo.com">Paul_Hammant@yahoo.com</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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>