MySQL 8.0.32
Source Code Documentation
query_attributes.cc File Reference

Functions

static REQUIRES_SERVICE_PLACEHOLDER (udf_registration)
 
static REQUIRES_SERVICE_PLACEHOLDER (mysql_query_attributes_iterator)
 
static REQUIRES_SERVICE_PLACEHOLDER (mysql_query_attribute_string)
 
static REQUIRES_SERVICE_PLACEHOLDER (mysql_query_attribute_isnull)
 
static REQUIRES_SERVICE_PLACEHOLDER (mysql_string_converter)
 
static REQUIRES_SERVICE_PLACEHOLDER (mysql_udf_metadata)
 
static REQUIRES_SERVICE_PLACEHOLDER (mysql_string_factory)
 
static char * mysql_query_attribute_string (UDF_INIT *initid, UDF_ARGS *args, char *result, unsigned long *length, unsigned char *is_null, unsigned char *error)
 
static bool mysql_query_attribute_string_init (UDF_INIT *initid, UDF_ARGS *args, char *message)
 
static void mysql_query_attribute_string_deinit (UDF_INIT *initid)
 
static mysql_service_status_t init ()
 
static mysql_service_status_t deinit ()
 
 END_COMPONENT_PROVIDES ()
 
 REQUIRES_SERVICE (udf_registration)
 
 REQUIRES_SERVICE (mysql_query_attributes_iterator)
 
 REQUIRES_SERVICE (mysql_query_attribute_string)
 
 REQUIRES_SERVICE (mysql_query_attribute_isnull)
 
 REQUIRES_SERVICE (mysql_string_converter)
 
 REQUIRES_SERVICE (mysql_string_factory)
 
 REQUIRES_SERVICE (mysql_udf_metadata)
 
 END_COMPONENT_REQUIRES ()
 
 METADATA ("mysql.author", "Oracle Corporation")
 
 METADATA ("mysql.license", "GPL")
 
 METADATA ("query_attributes", "1")
 
 END_COMPONENT_METADATA ()
 

Variables

 REQUIRES_PSI_MEMORY_SERVICE_PLACEHOLDER
 
static const size_t query_attribute_value_max_length = 1024
 
static const char * query_attribute_return_charset = "utf8mb4"
 
static PSI_memory_key KEY_memory
 
 REQUIRES_PSI_MEMORY_SERVICE
 
mysql_component_t mysql_component_query_attributes
 

Function Documentation

◆ deinit()

static mysql_service_status_t deinit ( )
static

◆ END_COMPONENT_METADATA()

END_COMPONENT_METADATA ( )

◆ END_COMPONENT_PROVIDES()

END_COMPONENT_PROVIDES ( )

◆ END_COMPONENT_REQUIRES()

END_COMPONENT_REQUIRES ( )

◆ init()

static mysql_service_status_t init ( )
static

◆ METADATA() [1/3]

METADATA ( "mysql.author"  ,
"Oracle Corporation"   
)

◆ METADATA() [2/3]

METADATA ( "mysql.license"  ,
"GPL"   
)

◆ METADATA() [3/3]

METADATA ( "query_attributes"  ,
"1"   
)

◆ mysql_query_attribute_string()

static char * mysql_query_attribute_string ( UDF_INIT initid,
UDF_ARGS args,
char *  result,
unsigned long *  length,
unsigned char *  is_null,
unsigned char *  error 
)
static

◆ mysql_query_attribute_string_deinit()

static void mysql_query_attribute_string_deinit ( UDF_INIT initid)
static

◆ mysql_query_attribute_string_init()

static bool mysql_query_attribute_string_init ( UDF_INIT initid,
UDF_ARGS args,
char *  message 
)
static

◆ REQUIRES_SERVICE() [1/7]

REQUIRES_SERVICE ( mysql_query_attribute_isnull  )

◆ REQUIRES_SERVICE() [2/7]

REQUIRES_SERVICE ( mysql_query_attribute_string  )

◆ REQUIRES_SERVICE() [3/7]

REQUIRES_SERVICE ( mysql_query_attributes_iterator  )

◆ REQUIRES_SERVICE() [4/7]

REQUIRES_SERVICE ( mysql_string_converter  )

◆ REQUIRES_SERVICE() [5/7]

REQUIRES_SERVICE ( mysql_string_factory  )

◆ REQUIRES_SERVICE() [6/7]

REQUIRES_SERVICE ( mysql_udf_metadata  )

◆ REQUIRES_SERVICE() [7/7]

REQUIRES_SERVICE ( udf_registration  )

◆ REQUIRES_SERVICE_PLACEHOLDER() [1/7]

static REQUIRES_SERVICE_PLACEHOLDER ( mysql_query_attribute_isnull  )
static

◆ REQUIRES_SERVICE_PLACEHOLDER() [2/7]

static REQUIRES_SERVICE_PLACEHOLDER ( mysql_query_attribute_string  )
static

◆ REQUIRES_SERVICE_PLACEHOLDER() [3/7]

static REQUIRES_SERVICE_PLACEHOLDER ( mysql_query_attributes_iterator  )
static

◆ REQUIRES_SERVICE_PLACEHOLDER() [4/7]

static REQUIRES_SERVICE_PLACEHOLDER ( mysql_string_converter  )
static

◆ REQUIRES_SERVICE_PLACEHOLDER() [5/7]

static REQUIRES_SERVICE_PLACEHOLDER ( mysql_string_factory  )
static

◆ REQUIRES_SERVICE_PLACEHOLDER() [6/7]

static REQUIRES_SERVICE_PLACEHOLDER ( mysql_udf_metadata  )
static

◆ REQUIRES_SERVICE_PLACEHOLDER() [7/7]

static REQUIRES_SERVICE_PLACEHOLDER ( udf_registration  )
static

Variable Documentation

◆ KEY_memory

PSI_memory_key KEY_memory
static

◆ mysql_component_query_attributes

mysql_component_t mysql_component_query_attributes
Initial value:
= { "mysql:query_attributes" , __query_attributes_provides, __query_attributes_requires, __query_attributes_metadata,
static mysql_service_status_t deinit()
Definition: query_attributes.cc:146
static mysql_service_status_t init()
Definition: query_attributes.cc:130

◆ query_attribute_return_charset

const char* query_attribute_return_charset = "utf8mb4"
static

◆ query_attribute_value_max_length

const size_t query_attribute_value_max_length = 1024
static

◆ REQUIRES_PSI_MEMORY_SERVICE

REQUIRES_PSI_MEMORY_SERVICE

◆ REQUIRES_PSI_MEMORY_SERVICE_PLACEHOLDER

REQUIRES_PSI_MEMORY_SERVICE_PLACEHOLDER