Add MySQL charset configuration support

This commit is contained in:
Yuan Pengfei
2013-07-25 08:19:52 +08:00
parent 8a6768e6a6
commit 1324366974
3 changed files with 15 additions and 0 deletions

View File

@@ -81,6 +81,14 @@ void SessionHandle::options(mysql_option opt, bool b)
throw ConnectionException("mysql_options error", _pHandle);
}
void SessionHandle::options(mysql_option opt, const char* c)
{
if (mysql_options(_pHandle, opt, c) != 0)
throw ConnectionException("mysql_options error", _pHandle);
}
void SessionHandle::options(mysql_option opt, unsigned int i)
{
#if (POCO_MYSQL_VERSION_NUMBER < 0x050108)