# suite/funcs_1/datadict/basics_mixed1.inc # # Auxiliary script to be sourced by suite/funcs_1/t/is_basics_mixed.test # # Author: # 2008-01-23 mleich WL#4203 Reorganize and fix the data dictionary tests of # testsuite funcs_1 # Create this script based on older scripts and new code. # # 1 Attempt to create tables and views when residing in information_schema # 1.1 CREATE TABLE USE information_schema; let $message= root: create a table with a name of an IS table directly in IS; let $dd_part1= CREATE TABLE; let $dd_part2= ( c1 INT ); --source suite/funcs_1/datadict/basics_mixed2.inc --error ER_DBACCESS_DENIED_ERROR CREATE TABLE t1 (f1 INT, f2 INT, f3 INT); # # 1.2 CREATE VIEW # 1.2.1 Hit on existing INFORMATION_SCHEMA table --error ER_DBACCESS_DENIED_ERROR CREATE VIEW tables AS SELECT 'garbage'; --error ER_DBACCESS_DENIED_ERROR CREATE VIEW tables AS SELECT * FROM information_schema.tables; # 1.2.2 New view --error ER_DBACCESS_DENIED_ERROR CREATE VIEW v1 AS SELECT 'garbage'; # 2 Attempt to create tables and views when residing in information_schema # 1.1 CREATE TABLE USE test; let $message= root: create a table with a name of an IS table from other db; let $dd_part1= CREATE TABLE information_schema.; let $dd_part2= ( c1 INT ); --source suite/funcs_1/datadict/basics_mixed2.inc --error ER_DBACCESS_DENIED_ERROR CREATE TABLE information_schema.t1 (f1 INT, f2 INT, f3 INT); # # Hit on existing INFORMATION_SCHEMA table --error ER_DBACCESS_DENIED_ERROR CREATE VIEW information_schema.tables AS SELECT 'garbage'; --error ER_DBACCESS_DENIED_ERROR CREATE VIEW information_schema.tables AS SELECT * FROM information_schema.tables; # New table --error ER_DBACCESS_DENIED_ERROR CREATE VIEW information_schema.v1 AS SELECT 'garbage';
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
basics_mixed1.inc | File | 1.74 KB | 0644 |
|
basics_mixed2.inc | File | 2.21 KB | 0644 |
|
basics_mixed3.inc | File | 1.95 KB | 0644 |
|
columns.inc | File | 2.73 KB | 0644 |
|
datadict.pre | File | 2.08 KB | 0644 |
|
datadict_bug_12777.inc | File | 1.8 KB | 0644 |
|
datadict_load.inc | File | 4.16 KB | 0644 |
|
datadict_priv.inc | File | 3.34 KB | 0644 |
|
is_key_column_usage.inc | File | 14.01 KB | 0644 |
|
is_routines.inc | File | 18.85 KB | 0644 |
|
is_schemata.inc | File | 10.82 KB | 0644 |
|
is_table_query.inc | File | 1.29 KB | 0644 |
|
is_tables.inc | File | 18.3 KB | 0644 |
|
is_triggers.inc | File | 10.45 KB | 0644 |
|
is_views.inc | File | 11.8 KB | 0644 |
|
processlist_priv.inc | File | 24.41 KB | 0644 |
|
processlist_val.inc | File | 18.49 KB | 0644 |
|
statistics.inc | File | 1.61 KB | 0644 |
|
table_constraints.inc | File | 1.42 KB | 0644 |
|
tables.inc | File | 1.73 KB | 0644 |
|
tables1.inc | File | 1.15 KB | 0644 |
|
tables2.inc | File | 1.78 KB | 0644 |
|