MySQL 9.0.0
Source Code Documentation
sql_state.cc File Reference
#include <mysqld_error.h>
#include <sys/types.h>
#include "m_string.h"
#include "my_inttypes.h"
#include "mysql_com.h"
#include "mysys_err.h"
#include "sql/derror.h"
#include "storage/perfschema/pfs_error.h"

Functions

static const char * builtin_get_sqlstate (int i)
 
const char * mysql_errno_to_sqlstate (uint mysql_errno)
 
static const char * builtin_get_symbol (int i)
 
const char * mysql_errno_to_symbol (int mysql_errno)
 
int mysql_symbol_to_errno (const char *error_symbol)
 

Variables

server_error error_names_array []
 Names of all errors defined in err_msg.txt. More...
 
static server_errorsqlstate_map = &error_names_array[1]
 

Function Documentation

◆ builtin_get_sqlstate()

static const char * builtin_get_sqlstate ( int  i)
static

◆ builtin_get_symbol()

static const char * builtin_get_symbol ( int  i)
static

◆ mysql_errno_to_sqlstate()

const char * mysql_errno_to_sqlstate ( uint  mysql_errno)

◆ mysql_errno_to_symbol()

const char * mysql_errno_to_symbol ( int  mysql_errno)

◆ mysql_symbol_to_errno()

int mysql_symbol_to_errno ( const char *  error_symbol)

Variable Documentation

◆ error_names_array

server_error error_names_array[]
extern

Names of all errors defined in err_msg.txt.

This includes all names, instrumented or not.

◆ sqlstate_map

server_error* sqlstate_map = &error_names_array[1]
static