mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
This patch does the following:
1) Fixes breakage in embedded server build for XMLPath push. 2) Hides PARTITION engine from view. 3) Add ENGINES information schema (and it should now be clear from this patch on how to turn any show command into an information schema). libmysqld/Makefile.am: Fix for embedded server to build. mysql-test/r/information_schema.result: Fix for additional information_schema mysql-test/r/information_schema_db.result: Fix for adding additional engines information schema. mysql-test/t/information_schema.test: Added test to make sure that engines information schema works. sql/ha_partition.cc: Made PARTITION hidden in information schema. sql/sql_parse.cc: Added additional case for engine information schema. sql/sql_show.cc: Code for ENGINES information schema. sql/sql_yacc.yy: Extended grammer to support new ENGINES information schema sql/table.h: Comment on dependency in information schema. libmysqld/item_xmlfunc.cc: New BitKeeper file ``libmysqld/item_xmlfunc.cc''
This commit is contained in:
@ -41,6 +41,7 @@ COLLATIONS
|
||||
COLLATION_CHARACTER_SET_APPLICABILITY
|
||||
COLUMNS
|
||||
COLUMN_PRIVILEGES
|
||||
ENGINES
|
||||
KEY_COLUMN_USAGE
|
||||
ROUTINES
|
||||
SCHEMATA
|
||||
@ -723,7 +724,7 @@ CREATE TABLE t_crashme ( f1 BIGINT);
|
||||
CREATE VIEW a1 (t_CRASHME) AS SELECT f1 FROM t_crashme GROUP BY f1;
|
||||
CREATE VIEW a2 AS SELECT t_CRASHME FROM a1;
|
||||
count(*)
|
||||
102
|
||||
103
|
||||
drop view a2, a1;
|
||||
drop table t_crashme;
|
||||
select table_schema,table_name, column_name from
|
||||
@ -793,7 +794,7 @@ delete from mysql.db where user='mysqltest_4';
|
||||
flush privileges;
|
||||
SELECT table_schema, count(*) FROM information_schema.TABLES GROUP BY TABLE_SCHEMA;
|
||||
table_schema count(*)
|
||||
information_schema 16
|
||||
information_schema 17
|
||||
mysql 18
|
||||
create table t1 (i int, j int);
|
||||
create trigger trg1 before insert on t1 for each row
|
||||
@ -1056,3 +1057,6 @@ where table_name="v1";
|
||||
table_type
|
||||
VIEW
|
||||
drop view v1;
|
||||
select * from information_schema.engines WHERE ENGINE="MyISAM";
|
||||
ENGINE SUPPORT COMMENT TRANSACTIONS XA SAVEPOINTS
|
||||
MyISAM ENABLED Default engine as of MySQL 3.23 with great performance NO NO NO
|
||||
|
@ -6,6 +6,7 @@ COLLATIONS
|
||||
COLLATION_CHARACTER_SET_APPLICABILITY
|
||||
COLUMNS
|
||||
COLUMN_PRIVILEGES
|
||||
ENGINES
|
||||
KEY_COLUMN_USAGE
|
||||
ROUTINES
|
||||
SCHEMATA
|
||||
|
@ -748,3 +748,9 @@ drop table t1;
|
||||
select table_type from information_schema.tables
|
||||
where table_name="v1";
|
||||
drop view v1;
|
||||
|
||||
#
|
||||
# Show engines
|
||||
#
|
||||
|
||||
select * from information_schema.engines WHERE ENGINE="MyISAM";
|
||||
|
Reference in New Issue
Block a user