diff options
author | unknown <mleich@five.local.lan> | 2008-03-07 20:18:14 +0100 |
---|---|---|
committer | unknown <mleich@five.local.lan> | 2008-03-07 20:18:14 +0100 |
commit | 633cc34ca7349e2f77dec460db081bf8ba469e87 (patch) | |
tree | 80b4a90193dc261a5a4fd593a61c7e2cd3e61dc0 /mysql-test/suite/funcs_1/r/is_views.result | |
parent | 71fb657743d32652d35bdd149d2db44a23c08caf (diff) | |
download | mariadb-git-633cc34ca7349e2f77dec460db081bf8ba469e87.tar.gz |
Post merge fixes after
ChangeSet@1.2561, 2008-03-07 17:44:03+01:00, mleich@five.local.lan +132 -0
Merge five.local.lan:/work/merge/mysql-5.0-funcs_1
into five.local.lan:/work/merge/mysql-5.1-funcs_1
MERGE: 1.1810.3473.24
ChangeSet@1.1810.3473.24, 2008-03-07
WL#4203 Reorganize and fix the data dictionary tests of
testsuite funcs_1
1. Adjustment of expected results to modified server properties
2. Add some tests of information_schema views
3. Minor corrections and improvements
BitKeeper/deleted/.del-ndb__datadict.result:
Delete: mysql-test/suite/funcs_1/r/ndb__datadict.result
BitKeeper/deleted/.del-ndb__datadict.test:
Delete: mysql-test/suite/funcs_1/t/ndb__datadict.test
BitKeeper/deleted/.del-ndb__load.test:
Delete: mysql-test/suite/funcs_1/t/ndb__load.test
BitKeeper/deleted/.del-ndb__load.result:
Delete: mysql-test/suite/funcs_1/r/ndb__load.result
mysql-test/suite/funcs_1/r/memory_storedproc_07.result:
Change mode to -rw-rw-r--
mysql-test/suite/funcs_1/r/memory_storedproc_02.result:
Change mode to -rw-rw-r--
mysql-test/suite/funcs_1/r/memory_storedproc_03.result:
Change mode to -rw-rw-r--
mysql-test/suite/funcs_1/r/memory_storedproc_08.result:
Change mode to -rw-rw-r--
mysql-test/suite/funcs_1/r/memory_storedproc_10.result:
Change mode to -rw-rw-r--
mysql-test/suite/funcs_1/r/innodb_storedproc_02.result:
Change mode to -rw-rw-r--
mysql-test/suite/funcs_1/r/innodb_storedproc_03.result:
Change mode to -rw-rw-r--
mysql-test/suite/funcs_1/r/innodb_storedproc_07.result:
Change mode to -rw-rw-r--
mysql-test/suite/funcs_1/r/innodb_storedproc_08.result:
Change mode to -rw-rw-r--
mysql-test/suite/funcs_1/r/innodb_storedproc_10.result:
Change mode to -rw-rw-r--
mysql-test/suite/funcs_1/r/myisam_storedproc_02.result:
Change mode to -rw-rw-r--
mysql-test/suite/funcs_1/r/myisam_storedproc_03.result:
Change mode to -rw-rw-r--
mysql-test/suite/funcs_1/r/myisam_storedproc_07.result:
Change mode to -rw-rw-r--
mysql-test/suite/funcs_1/r/myisam_storedproc_08.result:
Change mode to -rw-rw-r--
mysql-test/suite/funcs_1/r/myisam_storedproc_10.result:
Change mode to -rw-rw-r--
mysql-test/suite/funcs_1/datadict/processlist_priv.inc:
Make the results independend of amount of preceding tests.
mysql-test/suite/funcs_1/datadict/processlist_val.inc:
Correct the cleanup
mysql-test/suite/funcs_1/r/charset_collation_1.result:
Updated results
mysql-test/suite/funcs_1/r/charset_collation_2.result:
Updated results
mysql-test/suite/funcs_1/r/innodb_func_view.result:
Updated results
mysql-test/suite/funcs_1/r/innodb_storedproc.result:
Updated results
mysql-test/suite/funcs_1/r/is_basics_mixed.result:
Updated results
mysql-test/suite/funcs_1/r/is_character_sets.result:
Updated results
mysql-test/suite/funcs_1/r/is_collation_character_set_applicability.result:
Updated results
mysql-test/suite/funcs_1/r/is_collations.result:
Updated results
mysql-test/suite/funcs_1/r/is_column_privileges.result:
Updated results
mysql-test/suite/funcs_1/r/is_columns.result:
Updated results
mysql-test/suite/funcs_1/r/is_columns_innodb.result:
Updated results
mysql-test/suite/funcs_1/r/is_columns_is.result:
Updated results
mysql-test/suite/funcs_1/r/is_columns_memory.result:
Updated results
mysql-test/suite/funcs_1/r/is_columns_myisam.result:
Updated results
mysql-test/suite/funcs_1/r/is_columns_mysql.result:
Updated results
mysql-test/suite/funcs_1/r/is_key_column_usage.result:
Updated results
mysql-test/suite/funcs_1/r/is_routines.result:
Updated results
mysql-test/suite/funcs_1/r/is_schema_privileges.result:
Updated results
mysql-test/suite/funcs_1/r/is_schema_privileges_is_mysql_test.result:
Updated results
mysql-test/suite/funcs_1/r/is_schemata.result:
Updated results
mysql-test/suite/funcs_1/r/is_statistics.result:
Updated results
mysql-test/suite/funcs_1/r/is_statistics_mysql.result:
Updated results
mysql-test/suite/funcs_1/r/is_table_constraints.result:
Updated results
mysql-test/suite/funcs_1/r/is_table_constraints_mysql.result:
Updated results
mysql-test/suite/funcs_1/r/is_table_privileges.result:
Updated results
mysql-test/suite/funcs_1/r/is_tables.result:
Updated results
mysql-test/suite/funcs_1/r/is_tables_is.result:
Updated results
mysql-test/suite/funcs_1/r/is_tables_mysql.result:
Updated results
mysql-test/suite/funcs_1/r/is_tables_ndb.result:
Updated results
mysql-test/suite/funcs_1/r/is_triggers.result:
Updated results
mysql-test/suite/funcs_1/r/is_user_privileges.result:
Updated results
mysql-test/suite/funcs_1/r/is_views.result:
Updated results
mysql-test/suite/funcs_1/r/memory_func_view.result:
Updated results
mysql-test/suite/funcs_1/r/memory_storedproc.result:
Updated results
mysql-test/suite/funcs_1/r/myisam_func_view.result:
Updated results
mysql-test/suite/funcs_1/r/myisam_storedproc.result:
Updated results
mysql-test/suite/funcs_1/r/myisam_views.result:
Updated results
mysql-test/suite/funcs_1/r/ndb_func_view.result:
Updated results
mysql-test/suite/funcs_1/r/ndb_storedproc.result:
Updated results
mysql-test/suite/funcs_1/r/ndb_storedproc_02.result:
Updated results
mysql-test/suite/funcs_1/r/ndb_storedproc_03.result:
Updated results
mysql-test/suite/funcs_1/r/ndb_storedproc_07.result:
Updated results
mysql-test/suite/funcs_1/r/ndb_storedproc_08.result:
Updated results
mysql-test/suite/funcs_1/r/ndb_storedproc_10.result:
Updated results
mysql-test/suite/funcs_1/r/processlist_priv_no_prot.result:
Updated results
mysql-test/suite/funcs_1/r/processlist_priv_ps.result:
Updated results
mysql-test/suite/funcs_1/r/processlist_val_no_prot.result:
Updated results
mysql-test/suite/funcs_1/r/processlist_val_ps.result:
Updated results
mysql-test/suite/funcs_1/storedproc/storedproc_master.inc:
Set subtest checking a no more reserved keyword
to comment.
mysql-test/suite/funcs_1/t/disabled.def:
ndb__datadict is dropped. The checks are done in
other scripts.
mysql-test/suite/funcs_1/t/is_routines.test:
Correction of comment
mysql-test/suite/funcs_1/t/is_triggers.test:
Adjustment to changes in privilege system between
MySQL 5.0 and 5.1.
mysql-test/suite/funcs_1/t/is_views.test:
Correction of comment.
mysql-test/suite/funcs_1/t/processlist_priv_no_prot.test:
Correction of comment.
mysql-test/suite/funcs_1/t/processlist_priv_ps.test:
Correction of comment.
mysql-test/suite/funcs_1/t/processlist_val_no_prot.test:
Correction of comment.
mysql-test/suite/funcs_1/t/processlist_val_ps.test:
Correction of comment.
mysql-test/suite/funcs_1/r/is_engines.result:
Expected results
mysql-test/suite/funcs_1/r/is_engines_archive.result:
Expected results
mysql-test/suite/funcs_1/r/is_engines_blackhole.result:
Expected results
mysql-test/suite/funcs_1/r/is_engines_csv.result:
Expected results
mysql-test/suite/funcs_1/r/is_engines_federated.result:
Expected results
mysql-test/suite/funcs_1/r/is_engines_innodb.result:
Expected results
mysql-test/suite/funcs_1/r/is_engines_memory.result:
Expected results
mysql-test/suite/funcs_1/r/is_engines_merge.result:
Expected results
mysql-test/suite/funcs_1/r/is_engines_myisam.result:
Expected results
mysql-test/suite/funcs_1/t/is_engines.test:
Test of information_schema.engines
mysql-test/suite/funcs_1/t/is_engines_archive.test:
Test of information_schema.engines
Variant for ARCHIVE
mysql-test/suite/funcs_1/t/is_engines_blackhole.test:
Test of information_schema.engines
Variant for BLACKHOLE
mysql-test/suite/funcs_1/t/is_engines_csv.test:
Test of information_schema.engines
Variant for CSV
mysql-test/suite/funcs_1/t/is_engines_federated.test:
Test of information_schema.engines
Variant for FEDERATED
mysql-test/suite/funcs_1/t/is_engines_innodb.test:
Test of information_schema.engines
Variant for InnoDB
mysql-test/suite/funcs_1/t/is_engines_memory.test:
Test of information_schema.engines
Variant for MEMORY
mysql-test/suite/funcs_1/t/is_engines_merge.test:
Test of information_schema.engines
Variant for MERGGE
mysql-test/suite/funcs_1/t/is_engines_myisam.test:
Test of information_schema.engines
Variant for MyISAM
mysql-test/suite/funcs_1/t/is_engines_ndb.test:
Test of information_schema.engines
Variant for NDB
mysql-test/suite/funcs_1/t/is_events.test:
Test for information_schema.events
mysql-test/suite/funcs_1/r/is_engines_ndb.result:
Expected results
mysql-test/suite/funcs_1/r/is_events.result:
Expected results
Diffstat (limited to 'mysql-test/suite/funcs_1/r/is_views.result')
-rw-r--r-- | mysql-test/suite/funcs_1/r/is_views.result | 46 |
1 files changed, 25 insertions, 21 deletions
diff --git a/mysql-test/suite/funcs_1/r/is_views.result b/mysql-test/suite/funcs_1/r/is_views.result index b6fe00e30ae..f960c26b21d 100644 --- a/mysql-test/suite/funcs_1/r/is_views.result +++ b/mysql-test/suite/funcs_1/r/is_views.result @@ -36,17 +36,21 @@ CHECK_OPTION varchar(8) NO IS_UPDATABLE varchar(3) NO DEFINER varchar(77) NO SECURITY_TYPE varchar(7) NO +CHARACTER_SET_CLIENT varchar(32) NO +COLLATION_CONNECTION varchar(32) NO SHOW CREATE TABLE information_schema.VIEWS; Table Create Table VIEWS CREATE TEMPORARY TABLE `VIEWS` ( - `TABLE_CATALOG` varchar(512) default NULL, - `TABLE_SCHEMA` varchar(64) NOT NULL default '', - `TABLE_NAME` varchar(64) NOT NULL default '', + `TABLE_CATALOG` varchar(512) DEFAULT NULL, + `TABLE_SCHEMA` varchar(64) NOT NULL DEFAULT '', + `TABLE_NAME` varchar(64) NOT NULL DEFAULT '', `VIEW_DEFINITION` longtext NOT NULL, - `CHECK_OPTION` varchar(8) NOT NULL default '', - `IS_UPDATABLE` varchar(3) NOT NULL default '', - `DEFINER` varchar(77) NOT NULL default '', - `SECURITY_TYPE` varchar(7) NOT NULL default '' + `CHECK_OPTION` varchar(8) NOT NULL DEFAULT '', + `IS_UPDATABLE` varchar(3) NOT NULL DEFAULT '', + `DEFINER` varchar(77) NOT NULL DEFAULT '', + `SECURITY_TYPE` varchar(7) NOT NULL DEFAULT '', + `CHARACTER_SET_CLIENT` varchar(32) NOT NULL DEFAULT '', + `COLLATION_CONNECTION` varchar(32) NOT NULL DEFAULT '' ) ENGINE=MyISAM DEFAULT CHARSET=utf8 SHOW COLUMNS FROM information_schema.VIEWS; Field Type Null Key Default Extra @@ -58,6 +62,8 @@ CHECK_OPTION varchar(8) NO IS_UPDATABLE varchar(3) NO DEFINER varchar(77) NO SECURITY_TYPE varchar(7) NO +CHARACTER_SET_CLIENT varchar(32) NO +COLLATION_CONNECTION varchar(32) NO SELECT table_catalog, table_schema, table_name FROM information_schema.views WHERE table_catalog IS NOT NULL; table_catalog table_schema table_name @@ -81,24 +87,24 @@ GRANT SELECT ON db_datadict.v_granted_to_1 TO 'testuser1'@'localhost'; GRANT SHOW VIEW, CREATE VIEW ON db_datadict.* TO 'testuser2'@'localhost'; SELECT * FROM information_schema.views WHERE table_schema = 'db_datadict' ORDER BY table_name; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE -NULL db_datadict v_granted_glob /* ALGORITHM=UNDEFINED */ select `db_datadict`.`t1`.`f2` AS `f2`,`db_datadict`.`t1`.`f3` AS `f3` from `db_datadict`.`t1` NONE YES root@localhost DEFINER -NULL db_datadict v_granted_to_1 /* ALGORITHM=UNDEFINED */ select `db_datadict`.`t1`.`f1` AS `f1`,`db_datadict`.`t1`.`f2` AS `f2`,`db_datadict`.`t1`.`f3` AS `f3` from `db_datadict`.`t1` NONE YES root@localhost DEFINER +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION +NULL db_datadict v_granted_glob select `db_datadict`.`t1`.`f2` AS `f2`,`db_datadict`.`t1`.`f3` AS `f3` from `db_datadict`.`t1` NONE YES root@localhost DEFINER latin1 latin1_swedish_ci +NULL db_datadict v_granted_to_1 select `db_datadict`.`t1`.`f1` AS `f1`,`db_datadict`.`t1`.`f2` AS `f2`,`db_datadict`.`t1`.`f3` AS `f3` from `db_datadict`.`t1` NONE YES root@localhost DEFINER latin1 latin1_swedish_ci # Establish connection testuser1 (user=testuser1) SELECT * FROM information_schema.views WHERE table_schema = 'db_datadict' ORDER BY table_name; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE -NULL db_datadict v_granted_to_1 NONE YES root@localhost DEFINER +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION +NULL db_datadict v_granted_to_1 NONE YES root@localhost DEFINER latin1 latin1_swedish_ci # Establish connection testuser2 (user=testuser2) SELECT * FROM information_schema.views WHERE table_schema = 'db_datadict' ORDER BY table_name; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE -NULL db_datadict v_granted_glob NONE YES root@localhost DEFINER -NULL db_datadict v_granted_to_1 NONE YES root@localhost DEFINER +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION +NULL db_datadict v_granted_glob NONE YES root@localhost DEFINER latin1 latin1_swedish_ci +NULL db_datadict v_granted_to_1 NONE YES root@localhost DEFINER latin1 latin1_swedish_ci # Establish connection test_no_views (user=test_no_views) SELECT * FROM information_schema.views WHERE table_schema = 'db_datadict' ORDER BY table_name; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION # Switch to connection default and close all other connections DROP USER 'testuser1'@'localhost'; DROP USER 'testuser2'@'localhost'; @@ -117,12 +123,12 @@ DROP USER 'testuser1'@'localhost'; CREATE USER 'testuser1'@'localhost'; SELECT * FROM information_schema.views WHERE table_name LIKE 't1_%'; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION CREATE VIEW test.t1_view AS SELECT DISTINCT f1 FROM test.t1_table; SELECT * FROM information_schema.views WHERE table_name LIKE 't1_%'; -TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE -NULL test t1_view /* ALGORITHM=UNDEFINED */ select distinct `test`.`t1_table`.`f1` AS `f1` from `test`.`t1_table` NONE NO root@localhost DEFINER +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME VIEW_DEFINITION CHECK_OPTION IS_UPDATABLE DEFINER SECURITY_TYPE CHARACTER_SET_CLIENT COLLATION_CONNECTION +NULL test t1_view select distinct `test`.`t1_table`.`f1` AS `f1` from `test`.`t1_table` NONE NO root@localhost DEFINER latin1 latin1_swedish_ci SELECT table_name,definer FROM information_schema.views WHERE table_name = 't1_view'; table_name definer @@ -186,8 +192,6 @@ WHERE table_name LIKE 't1_%' ORDER BY table_name; table_name t1_view -Warnings: -Warning 1356 View 'db_datadict.t1_view' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them CREATE TABLE test.t1_table (f1 BIGINT, f2 CHAR(10)) DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci COMMENT = 'Initial Comment' ENGINE = <engine_type>; |