Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext
connect_params::server_default_charset

The character set that the server uses as its default.

Synopsis
character_set server_default_charset {};
Description

Set this value if you know the character set that your server is configured to use by default, as an optimization. It affects how the connection tracks its current character set (see any_connection::current_character_set):

Leave it value-initialized (the default) if you don't know the server's default character set, in which case the above operations leave the current character set unknown.

When you set this value, you are promising the library that your server is configured to use this character set as its default. This is not checked at runtime, and failing to fulfill this promise can lead to vulnerabilities. Use it only as an optimization if you know what you are doing.


PrevUpHomeNext