List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:January 4 2008 1:40pm
Subject:Re: Troubles wit DECIMAL(12,4)
View as plain text  
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 Verstraete23 Dec
  • Re: Troubles wit DECIMAL(12,4)Warren Young26 Dec
    • Re: Troubles wit DECIMAL(12,4)Bart Verstraete4 Jan
      • Re: Troubles wit DECIMAL(12,4)Bart Verstraete4 Jan
        • RE: Troubles wit DECIMAL(12,4)Joel Fielder4 Jan
          • Re: Troubles wit DECIMAL(12,4)Bart Verstraete4 Jan
            • RE: Troubles wit DECIMAL(12,4)Joel Fielder4 Jan
              • Re: Troubles wit DECIMAL(12,4)Bart Verstraete4 Jan
        • Re: Troubles wit DECIMAL(12,4)Warren Young4 Jan
          • Re: Troubles wit DECIMAL(12,4)Bart Verstraete4 Jan
            • Re: Troubles wit DECIMAL(12,4)Warren Young4 Jan
              • Re: Troubles wit DECIMAL(12,4)Bart Verstraete5 Jan
                • Re: Troubles wit DECIMAL(12,4)Jonathan Wakely5 Jan
      • Re: Troubles wit DECIMAL(12,4)Warren Young4 Jan