24#ifndef MYSQL_STORED_PROGRAM_IMP_H
25#define MYSQL_STORED_PROGRAM_IMP_H
39 const char *
key,
void *value));
50 const char *
key,
void *value));
56 const char *
key,
void *value));
70 uint16_t index, uint32_t *year,
bool *is_null));
73 uint16_t index, uint32_t year));
80 uint16_t index, uint32_t *hour, uint32_t *minute,
81 uint32_t *second, uint64_t *micro,
bool *negative,
85 uint16_t index, uint32_t hour, uint32_t minute,
86 uint32_t second, uint64_t micro,
bool negative,
94 uint16_t index, uint32_t *year, uint32_t *month,
95 uint32_t *day,
bool *is_null));
98 uint16_t index, uint32_t year, uint32_t month,
106 uint16_t index, uint32_t *year, uint32_t *month,
107 uint32_t *day, uint32_t *hour, uint32_t *minute,
108 uint32_t *second, uint64_t *micro,
bool *negative,
109 int32_t *time_zone_offset,
bool *is_null));
112 uint32_t year, uint32_t month, uint32_t day, uint32_t hour,
113 uint32_t minute, uint32_t second, uint64_t micro,
bool negative,
114 uint32_t decimals, int32_t time_zone_offset,
bool time_zone_aware));
121 uint16_t index, uint32_t *year, uint32_t *month,
122 uint32_t *day, uint32_t *hour, uint32_t *minute,
123 uint32_t *second, uint64_t *micro,
bool *negative,
124 int32_t *time_zone_offset,
bool *is_null));
127 uint32_t year, uint32_t month, uint32_t day, uint32_t hour,
128 uint32_t minute, uint32_t second, uint64_t micro,
bool negative,
129 uint32_t decimals, int32_t time_zone_offset,
bool time_zone_aware));
143 uint16_t index,
char const **
buffer,
144 size_t *out_len,
bool *is_null));
147 uint16_t index,
char const *
string,
155 uint16_t index,
char const *
string,
size_t length,
163 uint16_t index, int64_t *
result,
bool *is_null));
166 uint16_t index, int64_t value));
173 uint16_t index, uint64_t *
result,
bool *is_null));
176 uint16_t index, uint64_t value));
183 uint16_t index,
double *
result,
bool *is_null));
186 uint16_t index,
double value));
200 uint32_t hour, uint32_t minute, uint32_t second,
201 uint64_t micro,
bool negative, uint8_t decimals));
208 uint32_t year, uint32_t month, uint32_t day));
215 uint32_t year, uint32_t month, uint32_t day,
216 uint32_t hour, uint32_t minute, uint32_t second,
217 uint64_t micro,
bool negative, uint32_t decimals,
218 int32_t time_zone_offset,
bool time_zone_aware));
225 uint32_t year, uint32_t month, uint32_t day,
226 uint32_t hour, uint32_t minute, uint32_t second,
227 uint64_t micro,
bool negative, uint32_t decimals,
228 int32_t time_zone_offset,
bool time_zone_aware));
241 char const *
string,
size_t length));
248 char const *
string,
size_t length,
Definition: mysql_stored_program_imp.h:273
static mysql_service_status_t get(stored_program_handle sp, external_program_handle *value) noexcept
Definition: mysql_stored_program_imp.cc:1341
static mysql_service_status_t set(stored_program_handle sp, external_program_handle value) noexcept
Definition: mysql_stored_program_imp.cc:1353
Definition: mysql_stored_program_imp.h:59
static mysql_service_status_t get_name(stored_program_runtime_context sp_runtime_context, char const **value) noexcept
Returns the field name of the return value.
Definition: mysql_stored_program_imp.cc:379
Definition: mysql_stored_program_imp.h:204
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint32_t year, uint32_t month, uint32_t day) noexcept
Definition: mysql_stored_program_imp.cc:1089
Definition: mysql_stored_program_imp.h:211
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint32_t year, uint32_t month, uint32_t day, uint32_t hour, uint32_t minute, uint32_t second, uint64_t micro, bool negative, uint32_t decimals, int32_t time_zone_offset, bool time_zone_aware) noexcept
Definition: mysql_stored_program_imp.cc:1174
Definition: mysql_stored_program_imp.h:266
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, double value) noexcept
Set value of a float return value.
Definition: mysql_stored_program_imp.cc:1316
Definition: mysql_stored_program_imp.h:252
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, int64_t value) noexcept
Set value of an int return value.
Definition: mysql_stored_program_imp.cc:1276
Definition: mysql_stored_program_imp.h:231
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context) noexcept
Set null value.
Definition: mysql_stored_program_imp.cc:1225
Definition: mysql_stored_program_imp.h:244
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, char const *string, size_t length, CHARSET_INFO_h charset) noexcept
Definition: mysql_stored_program_imp.cc:1255
Definition: mysql_stored_program_imp.h:237
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, char const *string, size_t length) noexcept
Set value of a string return value.
Definition: mysql_stored_program_imp.cc:1246
Definition: mysql_stored_program_imp.h:196
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint32_t hour, uint32_t minute, uint32_t second, uint64_t micro, bool negative, uint8_t decimals) noexcept
Definition: mysql_stored_program_imp.cc:1058
Definition: mysql_stored_program_imp.h:221
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint32_t year, uint32_t month, uint32_t day, uint32_t hour, uint32_t minute, uint32_t second, uint64_t micro, bool negative, uint32_t decimals, int32_t time_zone_offset, bool time_zone_aware) noexcept
Definition: mysql_stored_program_imp.cc:1206
Definition: mysql_stored_program_imp.h:259
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint64_t value) noexcept
Set value of an unsigned int return value.
Definition: mysql_stored_program_imp.cc:1296
Definition: mysql_stored_program_imp.h:189
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint32_t year) noexcept
Definition: mysql_stored_program_imp.cc:1034
Definition: mysql_stored_program_imp.h:90
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t *year, uint32_t *month, uint32_t *day, bool *is_null) noexcept
Definition: mysql_stored_program_imp.cc:631
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t year, uint32_t month, uint32_t day) noexcept
Definition: mysql_stored_program_imp.cc:661
Definition: mysql_stored_program_imp.h:102
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t year, uint32_t month, uint32_t day, uint32_t hour, uint32_t minute, uint32_t second, uint64_t micro, bool negative, uint32_t decimals, int32_t time_zone_offset, bool time_zone_aware) noexcept
Definition: mysql_stored_program_imp.cc:748
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t *year, uint32_t *month, uint32_t *day, uint32_t *hour, uint32_t *minute, uint32_t *second, uint64_t *micro, bool *negative, int32_t *time_zone_offset, bool *is_null) noexcept
Definition: mysql_stored_program_imp.cc:519
Definition: mysql_stored_program_imp.h:179
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, double *result, bool *is_null) noexcept
Get a float time value.
Definition: mysql_stored_program_imp.cc:992
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, double value) noexcept
Set value of a float argument.
Definition: mysql_stored_program_imp.cc:1016
Definition: mysql_stored_program_imp.h:159
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, int64_t value) noexcept
Set value of an int argument.
Definition: mysql_stored_program_imp.cc:924
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, int64_t *result, bool *is_null) noexcept
Get value of an int argument.
Definition: mysql_stored_program_imp.cc:900
Definition: mysql_stored_program_imp.h:132
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index) noexcept
Set null value.
Definition: mysql_stored_program_imp.cc:802
Definition: mysql_stored_program_imp.h:151
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, char const *string, size_t length, CHARSET_INFO_h charset) noexcept
Definition: mysql_stored_program_imp.cc:877
Definition: mysql_stored_program_imp.h:139
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, char const **buffer, size_t *out_len, bool *is_null) noexcept
Get value of a string argument.
Definition: mysql_stored_program_imp.cc:829
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, char const *string, size_t length) noexcept
Set value of a string argument.
Definition: mysql_stored_program_imp.cc:868
Definition: mysql_stored_program_imp.h:76
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t *hour, uint32_t *minute, uint32_t *second, uint64_t *micro, bool *negative, bool *is_null) noexcept
Definition: mysql_stored_program_imp.cc:430
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t hour, uint32_t minute, uint32_t second, uint64_t micro, bool negative, uint8_t decimals) noexcept
Definition: mysql_stored_program_imp.cc:597
Definition: mysql_stored_program_imp.h:117
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t year, uint32_t month, uint32_t day, uint32_t hour, uint32_t minute, uint32_t second, uint64_t micro, bool negative, uint32_t decimals, int32_t time_zone_offset, bool time_zone_aware) noexcept
Definition: mysql_stored_program_imp.cc:781
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t *year, uint32_t *month, uint32_t *day, uint32_t *hour, uint32_t *minute, uint32_t *second, uint64_t *micro, bool *negative, int32_t *time_zone_offset, bool *is_null) noexcept
Definition: mysql_stored_program_imp.cc:551
Definition: mysql_stored_program_imp.h:169
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, uint64_t *result, bool *is_null) noexcept
Get value of an unsigned int argument.
Definition: mysql_stored_program_imp.cc:946
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, uint64_t value) noexcept
Set value of an unsigned int argument.
Definition: mysql_stored_program_imp.cc:970
Definition: mysql_stored_program_imp.h:66
static mysql_service_status_t set(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t year) noexcept
Definition: mysql_stored_program_imp.cc:571
static mysql_service_status_t get(stored_program_runtime_context sp_runtime_context, uint16_t index, uint32_t *year, bool *is_null) noexcept
Definition: mysql_stored_program_imp.cc:401
struct external_program_handle_imp * external_program_handle
The handle is created by the caller of external_program_execution service.
Definition: language_service.h:37
struct stored_program_handle_imp * stored_program_handle
The handle is an opaque pointer to a sp_head item.
Definition: language_service.h:42
Services for reading and storing various stored program properties of the server stored program's obj...
struct stored_program_runtime_context_imp * stored_program_runtime_context
Definition: mysql_stored_program.h:35
struct CHARSET_INFO_h_imp * CHARSET_INFO_h
Definition: mysql_string.h:41
const std::string charset("charset")
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:418
required string key
Definition: replication_asynchronous_connection_failover.proto:60
Specifies macros to define Service Implementations.
#define DEFINE_BOOL_METHOD(name, args)
A short macro to define method that returns bool, which is the most common case.
Definition: service_implementation.h:88