#include <sql_udf.h>
◆ udf_handler() [1/3]
| udf_handler::udf_handler |
( |
udf_func * |
udf_arg | ) |
|
◆ udf_handler() [2/3]
◆ udf_handler() [3/3]
◆ add()
| void udf_handler::add |
( |
bool * |
null_value | ) |
|
◆ call_init_func()
| bool udf_handler::call_init_func |
( |
| ) |
|
◆ clean_buffers()
| void udf_handler::clean_buffers |
( |
| ) |
|
◆ cleanup()
| void udf_handler::cleanup |
( |
void |
| ) |
|
◆ clear()
| void udf_handler::clear |
( |
| ) |
|
◆ fix_fields()
◆ free_handler()
| void udf_handler::free_handler |
( |
| ) |
|
◆ get_and_convert_string()
| bool udf_handler::get_and_convert_string |
( |
uint |
index | ) |
|
|
private |
Get the details of the input String argument.
If the charset of the input argument is not same as specified by the user then convert the String.
- Parameters
-
| [in] | index | of the argument to be looked in the arguments array |
- Return values
-
| false | Able to fetch the argument details |
| true | Otherwise |
◆ get_arguments()
| bool udf_handler::get_arguments |
( |
| ) |
|
|
private |
◆ get_string()
| void udf_handler::get_string |
( |
uint |
index | ) |
|
|
private |
Get the details of the input String arguments.
- Parameters
-
| [in] | index | of the argument to be looked in the arguments array |
◆ is_initialized()
| bool udf_handler::is_initialized |
( |
| ) |
const |
|
inline |
◆ name()
| const char * udf_handler::name |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ result_string()
| String * udf_handler::result_string |
( |
const char * |
res, |
|
|
size_t |
res_length, |
|
|
String * |
str, |
|
|
String * |
save_str |
|
) |
| |
|
private |
Process the result string returned by the udf() method.
The charset info might have changed therefore updates the same String. If user used the input String as result string then return the same.
- Parameters
-
| [in] | res | the result string returned by the udf() method. |
| [in] | res_length | length of the string |
| [out] | str | The input result string passed to the udf() method |
| [out] | save_str | Keeps copy of the returned String |
- Returns
- A pointer to either the str or save_str that points to final result String
◆ result_type()
◆ val_decimal()
◆ val_int()
| longlong udf_handler::val_int |
( |
bool * |
null_value | ) |
|
◆ val_real()
| double udf_handler::val_real |
( |
bool * |
null_value | ) |
|
◆ val_str()
- Returns
- (String*)NULL in case of NULL values
◆ args
◆ buffers
◆ error
| uchar udf_handler::error {0} |
|
protected |
◆ f_args
◆ initid
◆ is_null
| uchar udf_handler::is_null {0} |
|
protected |
◆ m_args_extension
A struct that holds the extension arguments for each UDF argument.
◆ m_init_func_called
| bool udf_handler::m_init_func_called {false} |
|
protected |
True when init function has been called.
◆ m_initialized
| bool udf_handler::m_initialized {false} |
|
protected |
True when handler has been initialized and use count incremented.
◆ m_original
| bool udf_handler::m_original {true} |
◆ m_return_value_extension
A struct that holds the extension arguments for return value.
◆ num_buffer
| char* udf_handler::num_buffer {nullptr} |
|
protected |
◆ u_d
◆ used_tables_cache
The documentation for this class was generated from the following files: