mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
add version variables
This commit is contained in:
parent
987f0a91cb
commit
7d9342be70
2 changed files with 16 additions and 1 deletions
|
|
@ -13,6 +13,9 @@
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
|
||||||
|
|
||||||
|
#define SPIDER_DETAIL_VERSION "3.1.7"
|
||||||
|
#define SPIDER_HEX_VERSION 0x0301
|
||||||
|
|
||||||
#if MYSQL_VERSION_ID < 50500
|
#if MYSQL_VERSION_ID < 50500
|
||||||
#else
|
#else
|
||||||
#define my_free(A,B) my_free(A)
|
#define my_free(A,B) my_free(A)
|
||||||
|
|
|
||||||
|
|
@ -2827,6 +2827,17 @@ uint spider_param_log_result_errors()
|
||||||
DBUG_RETURN(spider_log_result_errors);
|
DBUG_RETURN(spider_log_result_errors);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static char *spider_version = (char *) SPIDER_DETAIL_VERSION;
|
||||||
|
static MYSQL_SYSVAR_STR(
|
||||||
|
version,
|
||||||
|
spider_version,
|
||||||
|
PLUGIN_VAR_NOCMDOPT | PLUGIN_VAR_READONLY,
|
||||||
|
"The version of Spider",
|
||||||
|
NULL,
|
||||||
|
NULL,
|
||||||
|
SPIDER_DETAIL_VERSION
|
||||||
|
);
|
||||||
|
|
||||||
static struct st_mysql_storage_engine spider_storage_engine =
|
static struct st_mysql_storage_engine spider_storage_engine =
|
||||||
{ MYSQL_HANDLERTON_INTERFACE_VERSION };
|
{ MYSQL_HANDLERTON_INTERFACE_VERSION };
|
||||||
|
|
||||||
|
|
@ -2954,6 +2965,7 @@ static struct st_mysql_sys_var* spider_system_variables[] = {
|
||||||
#endif
|
#endif
|
||||||
MYSQL_SYSVAR(general_log),
|
MYSQL_SYSVAR(general_log),
|
||||||
MYSQL_SYSVAR(log_result_errors),
|
MYSQL_SYSVAR(log_result_errors),
|
||||||
|
MYSQL_SYSVAR(version),
|
||||||
NULL
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -2967,7 +2979,7 @@ mysql_declare_plugin(spider)
|
||||||
PLUGIN_LICENSE_GPL,
|
PLUGIN_LICENSE_GPL,
|
||||||
spider_db_init,
|
spider_db_init,
|
||||||
spider_db_done,
|
spider_db_done,
|
||||||
0x0301,
|
SPIDER_HEX_VERSION,
|
||||||
spider_status_variables,
|
spider_status_variables,
|
||||||
spider_system_variables,
|
spider_system_variables,
|
||||||
NULL,
|
NULL,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue