...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Returns whether backslashes are being treated as escape sequences.
bool backslash_escapes() const;
By default, the server treats backslashes in string values as escape characters.
This behavior can be disabled by activating the NO_BACKSLASH_ESCAPES
SQL mode.
Every time an operation involving server communication completes, the server reports whether this mode was activated or not as part of the response. Connections store this information and make it available through this function.
true
.
NO_BACKSLASH_ESCAPES
has been activated, returns false
.
true
.
true
or false
.
This function does not involve server communication.
No-throw guarantee.