summaryrefslogtreecommitdiff
path: root/include/mysql
diff options
context:
space:
mode:
authorunknown <brian@zim.(none)>2007-01-26 15:36:39 -0800
committerunknown <brian@zim.(none)>2007-01-26 15:36:39 -0800
commit5b8985cfb90a8a897c496a65e5e554382cdf21e6 (patch)
treeb0e32a887732c37610abf9ab54835020305b97d7 /include/mysql
parentc95bc8dcdbe50614bcd00051424d388fed42f999 (diff)
downloadmariadb-git-5b8985cfb90a8a897c496a65e5e554382cdf21e6.tar.gz
Two things:
1) Two small windows cleanups for Archive. 2) Patch from Calvin for Falcon to be able to have its own I_S loaded. One example added for this, does hello world. include/mysql/plugin.h: Added new I_S type. mysql-test/r/archive.result: Fixed not dropped table. mysql-test/t/archive.test: Added additional drop table sql/sql_plugin.cc: Adding support in for the I_S. sql/sql_show.cc: Added schema type for plugin I_S. Additional loops were added to pop these on to the end of requests. storage/archive/ha_archive.cc: Windwos typo
Diffstat (limited to 'include/mysql')
-rw-r--r--include/mysql/plugin.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/include/mysql/plugin.h b/include/mysql/plugin.h
index a98aeb25a47..660ce49d7ee 100644
--- a/include/mysql/plugin.h
+++ b/include/mysql/plugin.h
@@ -29,7 +29,8 @@
#define MYSQL_STORAGE_ENGINE_PLUGIN 1 /* Storage Engine */
#define MYSQL_FTPARSER_PLUGIN 2 /* Full-text parser plugin */
#define MYSQL_DAEMON_PLUGIN 3 /* The daemon/raw plugin type */
-#define MYSQL_MAX_PLUGIN_TYPE_NUM 4 /* The number of plugin types */
+#define MYSQL_INFORMATION_SCHEMA_PLUGIN 4 /* The I_S plugin type */
+#define MYSQL_MAX_PLUGIN_TYPE_NUM 5 /* The number of plugin types */
/* We use the following strings to define licenses for plugins */
#define PLUGIN_LICENSE_PROPRIETARY 0
@@ -303,6 +304,13 @@ struct st_mysql_ftparser
#define MYSQL_DAEMON_INTERFACE_VERSION (MYSQL_VERSION_ID << 8)
/*************************************************************************
+ API for I_S plugin. (MYSQL_INFORMATION_SCHEMA_PLUGIN)
+*/
+
+/* handlertons of different MySQL releases are incompatible */
+#define MYSQL_INFORMATION_SCHEMA_INTERFACE_VERSION (MYSQL_VERSION_ID << 8)
+
+/*************************************************************************
API for Storage Engine plugin. (MYSQL_STORAGE_ENGINE_PLUGIN)
*/
@@ -330,5 +338,15 @@ struct st_mysql_daemon
int interface_version;
};
+/*
+ Here we define only the descriptor structure, that is referred from
+ st_mysql_plugin.
+*/
+
+struct st_mysql_information_schema
+{
+ int interface_version;
+};
+
#endif