Bart Verstraete wrote:
>
> But I still get that exception thrown with the
> coversion from DECIMAL to DOUBLE.
Well, since your original message, I changed the svn version of MySQL++
to change one of its sample database columns to use DECIMAL. It still
works.
Maybe you could check out the svn version, or wait for the imminent
3.0.0 beta 2 tarball and try the examples in it. Again, if the MySQL++
examples work and your program doesn't, the problem's almost certainly
in your program, not in MySQL++.
> I also have another problem, when a table with VARCHAR returns fields
> with 1, 2, 4, 5, ... chars it got displayed well in my wxWidgets app.
> But when it returns a varchar with 3 chars it don't get displayed but
> when I output it to the console via std::cerr, the output is correct. I
> convert the mysqlpp::cchar* to a wxString
Sounds like you need to spend some quality time with valgrind.
| Thread |
|---|
| • Troubles wit DECIMAL(12,4) | Bart Verstraete | 23 Dec |
| • Re: Troubles wit DECIMAL(12,4) | Warren Young | 26 Dec |
| • Re: Troubles wit DECIMAL(12,4) | Bart Verstraete | 4 Jan |
| • Re: Troubles wit DECIMAL(12,4) | Bart Verstraete | 4 Jan |
| • RE: Troubles wit DECIMAL(12,4) | Joel Fielder | 4 Jan |
| • Re: Troubles wit DECIMAL(12,4) | Bart Verstraete | 4 Jan |
| • RE: Troubles wit DECIMAL(12,4) | Joel Fielder | 4 Jan |
| • Re: Troubles wit DECIMAL(12,4) | Bart Verstraete | 4 Jan |
| • Re: Troubles wit DECIMAL(12,4) | Warren Young | 4 Jan |
| • Re: Troubles wit DECIMAL(12,4) | Bart Verstraete | 4 Jan |
| • Re: Troubles wit DECIMAL(12,4) | Warren Young | 4 Jan |
| • Re: Troubles wit DECIMAL(12,4) | Bart Verstraete | 5 Jan |
| • Re: Troubles wit DECIMAL(12,4) | Jonathan Wakely | 5 Jan |
| • Re: Troubles wit DECIMAL(12,4) | Warren Young | 4 Jan |