MySQL 9.0.0
Source Code Documentation
query_result.cc File Reference
#include "sql/query_result.h"
#include <fcntl.h>
#include <sys/stat.h>
#include "my_config.h"
#include <unistd.h>
#include <algorithm>
#include <climits>
#include <cstring>
#include "lex_string.h"
#include "my_dbug.h"
#include "my_thread_local.h"
#include "mysql/psi/mysql_file.h"
#include "mysql/strings/m_ctype.h"
#include "mysql/udf_registration_types.h"
#include "mysql_com.h"
#include "nulls.h"
#include "sql/derror.h"
#include "sql/item.h"
#include "sql/item_func.h"
#include "sql/mysqld.h"
#include "sql/parse_tree_nodes.h"
#include "sql/protocol.h"
#include "sql/sp_rcontext.h"
#include "sql/sql_class.h"
#include "sql/sql_const.h"
#include "sql/sql_error.h"
#include "sql/sql_exchange.h"
#include "sql/system_variables.h"
#include "sql/visible_fields.h"
#include "sql_string.h"
#include "strmake.h"
#include "strxnmov.h"
#include "template_utils.h"

Macros

#define NEED_ESCAPING(x)
 

Functions

static File create_file (THD *thd, char *path, sql_exchange *exchange, IO_CACHE *cache)
 

Variables

static const String default_line_term ("\n", default_charset_info)
 
static const String default_escaped ("\\", default_charset_info)
 
static const String default_field_term ("\t", default_charset_info)
 
static const String default_xml_row_term ("<row>", default_charset_info)
 
static const String my_empty_string ("", default_charset_info)
 

Macro Definition Documentation

◆ NEED_ESCAPING

#define NEED_ESCAPING (   x)
Value:
((int)(uchar)(x) == escape_char || \
(enclosed ? (int)(uchar)(x) == field_sep_char \
: (int)(uchar)(x) == field_term_char) || \
(int)(uchar)(x) == line_sep_char || !(x))
unsigned char uchar
Definition: my_inttypes.h:52
static char * enclosed
Definition: mysqldump.cc:151

Function Documentation

◆ create_file()

static File create_file ( THD thd,
char *  path,
sql_exchange exchange,
IO_CACHE cache 
)
static

Variable Documentation

◆ default_escaped

const String default_escaped("\\", default_charset_info) ( "\\"  ,
default_charset_info   
)
static

◆ default_field_term

const String default_field_term("\t", default_charset_info) ( "\t"  ,
default_charset_info   
)
static

◆ default_line_term

const String default_line_term("\n", default_charset_info) ( "\n"  ,
default_charset_info   
)
static

◆ default_xml_row_term

const String default_xml_row_term("<row>", default_charset_info) ( "<row>"  ,
default_charset_info   
)
static

◆ my_empty_string

const String my_empty_string("", default_charset_info) ( ""  ,
default_charset_info   
)
static