Added SQL_SetCharset native to (re)set character set (bug 5999, r=ds).

This commit is contained in:
Arkshine
2014-04-18 22:04:32 +02:00
parent 19e160117f
commit 3d732bbbb6
12 changed files with 94 additions and 1 deletions

View File

@@ -83,4 +83,7 @@ int MysqlDatabase::QuoteString(const char *str, char buffer[], size_t maxlen, si
return 0;
}
bool MysqlDatabase::SetCharacterSet(const char *characterset)
{
return mysql_set_character_set(m_pMysql, characterset) == 0 ? true : false;
}