Scarab commit: svn commit: r10127 - trunk/src/java/org/tigris/scarab/util/word/IssueSearch.java

[email protected]
Newsgroups gmane.comp.java.scarab.cvs
Message-ID <[email protected]>
Author: pledbrook
Date: 2006-05-31 07:36:14-0700
New Revision: 10127

Modified:
   trunk/src/java/org/tigris/scarab/util/word/IssueSearch.java

Log:
This change (patch supplied by Steve James - thanks!) fixes a problem
with some versions of the JRE and MySQL. Basically, java.sql.ResultSet
was unable to convert a java.sql.Timestamp object to a java.util.Date,
thus causing problems when querying for issues.

This fix simply replaces the offending ResultSet.getDate() call with
ResultSet.getTimestamp().


Modified: trunk/src/java/org/tigris/scarab/util/word/IssueSearch.java
Url: http://scarab.tigris.org/source/browse/scarab/trunk/src/java/org/tigris/scarab/util/word/IssueSearch.java?view=diff&rev=10127&p1=trunk/src/java/org/tigris/scarab/util/word/IssueSearch.java&p2=trunk/src/java/org/tigris/scarab/util/word/IssueSearch.java&r1=10126&r2=10127
==============================================================================
--- trunk/src/java/org/tigris/scarab/util/word/IssueSearch.java	(original)
+++ trunk/src/java/org/tigris/scarab/util/word/IssueSearch.java	2006-05-31 07:36:14-0700
@@ -2861,7 +2861,7 @@
                         qr.setModuleId(new Integer(searchRS.getInt(4)));
                         qr.setIssueTypeId(new Integer(searchRS.getInt(5)));
                         qr.setCreatedBy(new Integer(searchRS.getInt(6)));
-                        qr.setCreatedDate(searchRS.getDate(7));
+                        qr.setCreatedDate(searchRS.getTimestamp(7));
                         qr.setModifiedBy(new Integer(searchRS.getInt(8)));
                         qr.setModifiedDate(searchRS.getDate(9));
                         cachedQRs[count++] = qr;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.