I propose committing this patch to mysqlcppapi/Connection.cc
It introduces two inline utility functions that simplify the rest of the
file by making std::string to const char* conversions where an empty
string becomes a null pointer and vice versa.
Also adds the mysql_error() msg to the exception thrown when connection
fails.
I'll commit soon, after waiting for any comments.
jon
--
"Strange how potent cheap music is."
- Noël Coward
|