MySQL 9.0.0
Source Code Documentation
dd_sp.cc File Reference
#include "sql/dd_sp.h"
#include <string.h>
#include <sys/types.h>
#include <memory>
#include <ostream>
#include <string>
#include "lex_string.h"
#include "m_string.h"
#include "my_alloc.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_sys.h"
#include "mysql/strings/dtoa.h"
#include "mysql/strings/m_ctype.h"
#include "mysql_com.h"
#include "sql/dd/collection.h"
#include "sql/dd/properties.h"
#include "sql/dd/string_type.h"
#include "sql/dd/types/column.h"
#include "sql/dd/types/parameter.h"
#include "sql/dd/types/parameter_type_element.h"
#include "sql/dd/types/view.h"
#include "sql/dd_table_share.h"
#include "sql/field.h"
#include "sql/gis/srid.h"
#include "sql/sp.h"
#include "sql/sql_class.h"
#include "sql/sql_lex.h"
#include "sql/sql_show.h"
#include "sql/system_variables.h"
#include "sql/table.h"
#include "sql_string.h"
#include "string_with_len.h"
#include "typelib.h"

Functions

void prepare_sp_chistics_from_dd_routine (const dd::Routine *routine, st_sp_chistics *sp_chistics)
 Method to prepare sp_chistics object using the dd::Routine object read from the Data Dictionary. More...
 
static Fieldmake_field (const dd::Parameter &param, TABLE_SHARE *share, Field::geometry_type geom_type, TYPELIB *interval)
 
static void prepare_type_string_from_dd_param (THD *thd, const dd::Parameter *param, String *type_str)
 Helper method to prepare type in string format from the dd::Parameter's object. More...
 
void prepare_return_type_string_from_dd_routine (THD *thd, const dd::Routine *routine, dd::String_type *return_type_str)
 Helper method to prepare stored routine type in string format using the Routine object read from the Data Dictionary. More...
 
void prepare_params_string_from_dd_routine (THD *thd, const dd::Routine *routine, dd::String_type *params_str)
 Method to prepare stored routine's parameter string using the Routine object read from the Data Dictionary. More...
 

Function Documentation

◆ make_field()

static Field * make_field ( const dd::Parameter param,
TABLE_SHARE share,
Field::geometry_type  geom_type,
TYPELIB interval 
)
static

◆ prepare_params_string_from_dd_routine()

void prepare_params_string_from_dd_routine ( THD thd,
const dd::Routine routine,
dd::String_type params_str 
)

Method to prepare stored routine's parameter string using the Routine object read from the Data Dictionary.

Parameters
[in]thdThread handle.
[in]routinedd::Routine type object read from the Data Dictionary.
[out]params_strString prepared from the all the parameters of stored routine.

◆ prepare_return_type_string_from_dd_routine()

void prepare_return_type_string_from_dd_routine ( THD thd,
const dd::Routine routine,
dd::String_type return_type_str 
)

Helper method to prepare stored routine type in string format using the Routine object read from the Data Dictionary.

Parameters
[in]thdThread handle.
[in]routinedd::Routine type object read from the Data Dictionary.
[out]return_type_strStored routine return type in string format.

◆ prepare_sp_chistics_from_dd_routine()

void prepare_sp_chistics_from_dd_routine ( const dd::Routine routine,
st_sp_chistics sp_chistics 
)

Method to prepare sp_chistics object using the dd::Routine object read from the Data Dictionary.

Parameters
[in]routineRoutine object read from the Data Dictionary.
[out]sp_chisticsst_sp_chistics type's object to be prepared from the routine param.

◆ prepare_type_string_from_dd_param()

static void prepare_type_string_from_dd_param ( THD thd,
const dd::Parameter param,
String type_str 
)
static

Helper method to prepare type in string format from the dd::Parameter's object.

This method is called from the prepare_return_type_string_from_dd_routine() and prepare_params_string_from_dd_routine().

Parameters
[in]thdThread handle.
[in]paramdd::Parameter's object.
[out]type_strSQL type string prepared from the dd::Parameter's object.