Kbase 19077: OPEN CLIENT: Problem W/InputResultSet getDate(int) Method
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  9/1/1999 |
|
OPEN CLIENT: Problem W/InputResultSet getDate(int) Method
Title: OPEN CLIENT: Problem W/InputResultSet getDate(int) Method
KnowledgeBase Number: 19077
Creation Date: 01-SEP-99
Modified Date:
This document applies to: Progress 9.0A and higher
Version and Release Number: 9.0B
Summary:
The getDate(int) method in com.progress.open4gl.InputResultSet extends
java.sql.Date and in Sun's JDK 1.1 the java.sql.Date method has a
problem where it will muck up the date by adding 1900 to the year and
1 to the month.
This bug in the JDK causes the getDate(int) method to return invalid
information.
The workaround for this problem (until Sun fixes java.sql.Date) is
to use getObject() and cast it to a java.util.GregorianCalendar
object.