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:1337
static mysql_service_status_t set(stored_program_handle sp, external_program_handle value) noexcept
Definition: mysql_stored_program_imp.cc:1349
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:375
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:1085
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:1170
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:1312
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:1272
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:1221
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:1251
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:1242
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:1054
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:1202
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:1292
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:1030
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:627
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:657
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:744
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:515
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:988
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:1012
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:920
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:896
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:798
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:873
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:825
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:864
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:426
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:593
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:777
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:547
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:942
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:966
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:567
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:397
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