From: Thomas D. M. <tho...@se...> - 2003-03-28 13:09:25
|
Hi, I am getting a segmentation fault when trying to do the following: Result_Store result = query.store(); double d = result[0][0]; where the result is a float in the database. I have also tried casting to float (just in case), and outputting via a stream operator with the same result. I started to look at ColData.h, but thought I would report it in case it is a known issue and there is already a fix (probably a new macro definition) available. I am using mysqlcppapi-1.7 (though everything is installed as 1.9??) on Linux with the new mysql-4.0.12. Everything else works fine. (It would probably be a good idea to regression test against all possible MySQL column types for these sorts of things.) I might add that I find it a very useful library, that behaves exactly as I expect it should, with minimal overhead. Good job, and thanks! --thomas -- Please use an explicit test - I know gcc suggest just an extra set of parenthesis, but I'm personally convinced that is just because some gcc people have been damaged by too much LISP. - Linus Torvalds discussing gcc requirements on linux-kernel |