10 messages in com.mysql.lists.plusplusRe: BadConverion::what()=Tried to con...
FromSent OnAttachments
Drew Vogel11 Dec 2005 10:15 
Drew Vogel11 Dec 2005 10:42 
Warren Young12 Dec 2005 06:06.patch
Drew Vogel12 Dec 2005 06:33 
Warren Young12 Dec 2005 07:48 
Drew Vogel12 Dec 2005 10:37 
Warren Young12 Dec 2005 13:51 
Drew Vogel12 Dec 2005 14:01 
Drew Vogel15 Dec 2005 18:21 
Chris Frey19 Dec 2005 12:09 
Subject:Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "d
From:Drew Vogel (dvo@intercarve.net)
Date:12/11/2005 10:42:17 AM
List:com.mysql.lists.plusplus

I should have been more clear in my previous post. When I say "The values print out in my log as expected", I meant that the first three values print out as expected and the fourth prints out as "0.00P\uffffI".

I am selecting 4 columns from a mysql table defined as

double NOT NULL default '0'

On line 4 below, a BadConversion exception is thrown, with the what() message of:

Tried to convert "0.00P\uffffI" to a "d

The \uffff is output as a block font. The conversion to \uffff is done by, I believe, GNOME's copy/paste.

1 double wpc1 = (double)row["wpc_slicing"]; 2 double wpc2 = (double)row["wpc_piercing"]; 3 double wpc3 = (double)row["wpc_chopping"]; 4 double wpc4 = (double)row["wpc_bludgeoning"];

The first three lines are converted fine. The values print out in my log as expected (I've omitted that code), which really puzzles me, because the value in the columns of the third and the fourth row are the same (0.0075). Any ideas what is causing the bad conversion and the (apparently) malformed error message?