MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
derror.cc File Reference

Read language depeneded messagefile. More...

#include "sql_priv.h"
#include "unireg.h"
#include "derror.h"
#include "mysys_err.h"
#include "mysqld.h"
#include "sql_class.h"
Include dependency graph for derror.cc:

Go to the source code of this file.

Functions

C_MODE_END bool init_errmessage (void)
bool read_texts (const char *file_name, const char *language, const char ***point, uint error_messages)

Detailed Description

Read language depeneded messagefile.

Definition in file derror.cc.

Function Documentation

C_MODE_END bool init_errmessage ( void  )

Read messages from errorfile.

This function can be called multiple times to reload the messages. If it fails to load the messages, it will fail softly by initializing the errmesg pointer to an array of empty strings or by keeping the old array if it exists.

Return values
FALSEOK
TRUEError

Definition at line 58 of file derror.cc.

Here is the call graph for this function:

bool read_texts ( const char *  file_name,
const char *  language,
const char ***  point,
uint  error_messages 
)

Read text from packed textfile in language-directory.

If we can't read messagefile then it's panic- we can't continue.

Definition at line 100 of file derror.cc.

Here is the caller graph for this function: