MySQL Internals Manual  /  Plugins  /  Additional Accessors for Plugins

5.6 Additional Accessors for Plugins

Starting with MySQL 5.1.21 the following additional accessors are made available to all plug-ins:

  • Full definition of MYSQL_LEX_STRING (identical to LEX_STRING from m_string.h)

  • Full definition of MYSQL_XID (binary compatible with XID from handler.h)

  • mysql_tmpfile(), creates a temporary file in mysqld's tmpdir

  • thd_killed(), to check killed state of connection

  • thd_alloc() and similar allocation functions

  • thd_get_xid(), to get XID of connection's transaction

  • mysql_query_cache_invalidate4(), to invalidate a table's query cache entries