~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/suite/funcs_1/r/is_collation_character_set_applicability.result

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SHOW TABLES FROM information_schema LIKE 'COLLATION_CHARACTER_SET_APPLICABILITY';
 
2
Tables_in_information_schema (COLLATION_CHARACTER_SET_APPLICABILITY)
 
3
COLLATION_CHARACTER_SET_APPLICABILITY
 
4
#######################################################################
 
5
# Testcase 3.2.1.1: INFORMATION_SCHEMA tables can be queried via SELECT
 
6
#######################################################################
 
7
DROP VIEW      IF EXISTS test.v1;
 
8
DROP PROCEDURE IF EXISTS test.p1;
 
9
DROP FUNCTION  IF EXISTS test.f1;
 
10
CREATE VIEW test.v1 AS     SELECT * FROM information_schema.COLLATION_CHARACTER_SET_APPLICABILITY;
 
11
CREATE PROCEDURE test.p1() SELECT * FROM information_schema.COLLATION_CHARACTER_SET_APPLICABILITY;
 
12
CREATE FUNCTION test.f1() returns BIGINT
 
13
BEGIN
 
14
DECLARE counter BIGINT DEFAULT NULL;
 
15
SELECT COUNT(*) INTO counter FROM information_schema.COLLATION_CHARACTER_SET_APPLICABILITY;
 
16
RETURN counter;
 
17
END//
 
18
# Attention: The printing of the next result sets is disabled.
 
19
SELECT * FROM information_schema.COLLATION_CHARACTER_SET_APPLICABILITY;
 
20
SELECT * FROM test.v1;
 
21
CALL test.p1;
 
22
SELECT test.f1();
 
23
DROP VIEW test.v1;
 
24
DROP PROCEDURE test.p1;
 
25
DROP FUNCTION test.f1;
 
26
#########################################################################
 
27
# Testcase 3.2.4.1: INFORMATION_SCHEMA.CHARACTER_SET_APPLICABILITY layout
 
28
#########################################################################
 
29
DESCRIBE          information_schema.COLLATION_CHARACTER_SET_APPLICABILITY;
 
30
Field   Type    Null    Key     Default Extra
 
31
COLLATION_NAME  varchar(64)     NO                      
 
32
CHARACTER_SET_NAME      varchar(64)     NO                      
 
33
SHOW CREATE TABLE information_schema.COLLATION_CHARACTER_SET_APPLICABILITY;
 
34
Table   Create Table
 
35
COLLATION_CHARACTER_SET_APPLICABILITY   CREATE TEMPORARY TABLE `COLLATION_CHARACTER_SET_APPLICABILITY` (
 
36
  `COLLATION_NAME` varchar(64) NOT NULL DEFAULT '',
 
37
  `CHARACTER_SET_NAME` varchar(64) NOT NULL DEFAULT ''
 
38
) ENGINE=MEMORY DEFAULT CHARSET=utf8
 
39
SHOW COLUMNS FROM information_schema.COLLATION_CHARACTER_SET_APPLICABILITY;
 
40
Field   Type    Null    Key     Default Extra
 
41
COLLATION_NAME  varchar(64)     NO                      
 
42
CHARACTER_SET_NAME      varchar(64)     NO                      
 
43
# Testcases 3.2.4.2 and 3.2.4.3 are checked in suite/funcs_1/t/charset_collation*.test
 
44
########################################################################
 
45
# Testcases 3.2.1.3-3.2.1.5 + 3.2.1.8-3.2.1.12: INSERT/UPDATE/DELETE and
 
46
#           DDL on INFORMATION_SCHEMA tables are not supported
 
47
########################################################################
 
48
DROP DATABASE IF EXISTS db_datadict;
 
49
CREATE DATABASE db_datadict;
 
50
INSERT INTO information_schema.collation_character_set_applicability
 
51
SELECT * FROM information_schema.collation_character_set_applicability;
 
52
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
 
53
UPDATE information_schema.collation_character_set_applicability
 
54
SET collation_name = 'big6_chinese_ci' WHERE character_set_name = 'big6';
 
55
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
 
56
UPDATE information_schema.collation_character_set_applicability
 
57
SET character_set_name = 't_4711';
 
58
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
 
59
DELETE FROM information_schema.collation_character_set_applicability;
 
60
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
 
61
TRUNCATE information_schema.collation_character_set_applicability;
 
62
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
 
63
CREATE INDEX my_idx
 
64
ON information_schema.collation_character_set_applicability(collation_name);
 
65
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
 
66
ALTER TABLE information_schema.collation_character_set_applicability ADD f1 INT;
 
67
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
 
68
DROP TABLE information_schema.collation_character_set_applicability;
 
69
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
 
70
ALTER TABLE information_schema.collation_character_set_applicability
 
71
RENAME db_datadict.collation_character_set_applicability;
 
72
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
 
73
ALTER TABLE information_schema.collation_character_set_applicability
 
74
RENAME information_schema.xcollation_character_set_applicability;
 
75
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
 
76
DROP DATABASE db_datadict;