Hi, Thanks for the responses. I was using an older version (2.04) of the mm mysql JDBC driver. Upgrading to the latest (2.14) driver did the trick. I spent a long time on this since the actual error that I was getting was a NoSuchElementException in RsIterator (from the stack trace). I finally had to step through the code to figure out that the root cause was an UnImplemented Exception I was getting in the getBigDecimal code. I wonder if there is a better way to surface this issue more directly.
As far as Thomas' response is concerned, is it not true that FieldConversion happens after the result set has processed the data. In other words, once the ResultSet has returned the field value, the FieldConversion kicks in and converts the native JDBC converted data (DECIMAL to BigDecimal in this case) to any other format. If that is the case, this would not have solved my problem right, since the problem is in the conversion of Decimal data to BigDecimal. Thanks for the responses. Raghavan > Date: Tue, 10 Sep 2002 16:33:05 +0200 (MEST) > From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> > Subject: AW: MySQL and BigDecimal > Content-Type: text/plain; charset="iso-8859-1" > > hi raghavan, > > which jdbc-driver do you use. > > jakob > > > Please see the section FieldConversions: > > http://jakarta.apache.org/ojb/jdbc-types.html > > > -----Urspr�ngliche Nachricht----- > > Von: Raghavan Kollivakam [mailto:[EMAIL PROTECTED]] > > Gesendet: Dienstag, 10. September 2002 05:40 > > An: [EMAIL PROTECTED] > > Betreff: MySQL and BigDecimal > > > > > > I got an exception when using OJB with a table containing a > > Decimal field. > > Upon stepping through the code, I found that the problem was > > that I was > > getting a NotImplementedException when the result set was > > trying to do a > > rs.getBigDecimal(colName). Is there a way around this? How > > can I (for > > instance) make the Decimal field map to a Double? > > > > Thanks > > Raghavan > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> ---------------------------------------------------------------------------- ---- -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
