ON_CHARSET_CONVERSION_FAILURE Option

Controls the action taken, if an error is encountered during character conversion.

Allowed Values

Character Conversion Error

Action

IGNORE

Errors and warnings do not appear.

WARNING

Substitutions and illegal characters are reported as warnings. Illegal characters are not translated.

ERROR

Substitutions and illegal characters are reported as errors.

Default

IGNORE

Scope

Option can be set at the database (PUBLIC) or user level. When set at the database level, the value becomes the default for any new user, but has no impact on existing users. When set at the user level, overrides the PUBLIC value for that user only. No system privilege is required to set option for self. System privilege is required to set at database level or at user level for any user other than self.

Requires the SET ANY PUBLIC OPTION system privilege to set this option. Can be set temporary for an individual connection or for the PUBLIC role. Takes effect immediately.

Description

ON_CHARSET_CONVERSION_FAILURE controls the action taken, if an error is encountered during character conversion.

Single-byte to single-byte converters are not able to report substitutions and illegal characters, and must be set to IGNORE.