MySQL 8.4.2
Source Code Documentation
|
Service to get and change the stored program's external language handle. More...
#include <mysql_stored_program.h>
Public Attributes | |
mysql_service_status_t(* | get )(stored_program_handle sp, external_program_handle *value) |
Obtain the currently attached Language Component's Stored Program from the server object. More... | |
mysql_service_status_t(* | set )(stored_program_handle sp, external_program_handle value) |
Attach or detach the Language Component's Stored Program from the server object. More... | |
Service to get and change the stored program's external language handle.
In general, the server stored program object does handle the lifetime of the external language objects. It initiates the creation, parsing, execution and destruction of such objects. But, in rare cases, the external language component may request the server to change its external language object. Example of such cases are: The stored program is aborted. The external language object needs to be destroyed and detached from the server object. The session was reset. Either by explicit user demand, or when incompatible changes happen such as timezone change. All of its objects need to be destroyed and detached. The limit of external language objects is reached. The oldest objects may be destroyed and detached. The limit of external language sessions is reached. The oldest sessions may be destroyed, together with their language objects. The external language object is changed. The new object needs to replace the existing one.
Used approximately as follows:
mysql_service_status_t(* s_mysql_mysql_stored_program_external_program_handle::get) (stored_program_handle sp, external_program_handle *value) |
Obtain the currently attached Language Component's Stored Program from the server object.
[in] | sp | stored_program_handle |
[out] | value | Language Component's Stored Program. |
false | Success |
true | Error |
mysql_service_status_t(* s_mysql_mysql_stored_program_external_program_handle::set) (stored_program_handle sp, external_program_handle value) |
Attach or detach the Language Component's Stored Program from the server object.
In order to detach the current Stored Program from the server
[in] | sp | stored_program_handle |
[in] | value | Language Component's Stored Program. Use nullptr to detach the current value from the server. |
false | Success |
true | Error |