Julien Chavanton wrote:
> Thank you, I do not find the C API mailing list in
There is no separate list. C API issues are handled on the main MySQL list.
> Also the same "problem" exists while using Mysql++ how shall we deal
> with connection lost exactly?
Presumably you're using 5.0, which apparently has a feature to drop idle
connections. (This question has been coming up a lot lately....) If
so, turn on the connection retry option. Search the list...it's come up
I don't know how the library could deal with this any better than it
already does. That's not to say that it's nice...it's just that a
network connection failure is a pretty serious thing. MySQL++ itself
doesn't have the knowledge to do anything more than just ask the C API
to retry the connection, and throwing an exception is probably
excessive. Ideas solicited.