| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | Drew Vogel | Date: | December 11 2005 6:15pm |
| Subject: | BadConverion::what()=Tried to convert "0.00P\uffffI" to a "d | ||
| View as plain text | |||
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?
Drew Vogel
| Thread | ||
|---|---|---|
| • BadConverion::what()=Tried to convert "0.00P\uffffI" to a "d | Drew Vogel | 11 Dec |
| • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "d | Drew Vogel | 11 Dec |
| • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "d | Warren Young | 12 Dec |
| • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "d | Drew Vogel | 12 Dec |
| • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "d | Warren Young | 12 Dec |
| • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "d | Drew Vogel | 12 Dec |
| • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "d | Warren Young | 12 Dec |
| • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "d | Drew Vogel | 12 Dec |
| • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "d | Drew Vogel | 16 Dec |
| • Re: BadConverion::what()=Tried to convert "0.00P\uffffI" to a "d | Chris Frey | 19 Dec |
