MySQL 9.1.0
Source Code Documentation
|
Class representing a warning. More...
#include <warning.h>
Public Member Functions | |
Warning (std::uint32_t warning_code, const char *warning_name, bool once) | |
bool | expired () |
Check if a warning is disabled/enabled for next statement only. More... | |
bool | ignore_warning () |
Return ignore_warning flag value. More... | |
const char * | warning_name () |
Return a symbolic name representing a warning. More... | |
std::uint32_t | warning_code () |
Return a warning code. More... | |
void | set_ignore_warning (bool value) |
Set ignore_warning flag. More... | |
Warning (const uint32 level, const uint32_t code, LEX_CSTRING message) | |
Public Attributes | |
uint32_t | m_level |
uint32_t | m_code |
LEX_CSTRING | m_message |
Private Attributes | |
bool | m_ignore_warning |
bool | m_once_property |
std::string | m_warning_name |
std::uint32_t | m_warning_code |
Class representing a warning.
A structure to store all information about a warning/error.
Contains following information
|
inline |
|
inline |
|
inline |
Check if a warning is disabled/enabled for next statement only.
True | if the warning is disabled or enabled for next statement only, false otherwise. |
|
inline |
Return ignore_warning flag value.
True | if ignore_warning flag is set, false otherwise. |
|
inline |
Set ignore_warning flag.
value | Boolean value for ignore_warning flag |
|
inline |
Return a warning code.
Warning | code |
|
inline |
Return a symbolic name representing a warning.
Symbolic | name for a warning. |
uint32_t Warning::m_code |
|
private |
uint32_t Warning::m_level |
LEX_CSTRING Warning::m_message |
|
private |
|
private |
|
private |