Commit 8b36b965 authored by Sergey Glukhov's avatar Sergey Glukhov

backported:

-WL#2822 INFORMATION_SCHEMA.ROUTINES: Add missing columns
-WL#2003 INFORMATION_SCHEMA: PARAMETERS view
-addon for 'I_S optimization' WL
parent e64d6d5a
...@@ -36,19 +36,19 @@ SHOW PROCEDURE STATUS LIKE 'p4'| ...@@ -36,19 +36,19 @@ SHOW PROCEDURE STATUS LIKE 'p4'|
--echo --echo
--echo --echo
--replace_column 16 CREATED 17 ALTERED --replace_column 23 CREATED 24 ALTERED
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p1'| SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p1'|
--echo --echo
--replace_column 16 CREATED 17 ALTERED --replace_column 23 CREATED 24 ALTERED
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p2'| SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p2'|
--echo --echo
--replace_column 16 CREATED 17 ALTERED --replace_column 23 CREATED 24 ALTERED
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p3'| SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p3'|
--echo --echo
--replace_column 16 CREATED 17 ALTERED --replace_column 23 CREATED 24 ALTERED
SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p4'| SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE routine_name = 'p4'|
# - Initialize the used variables (actual values don't matter); # - Initialize the used variables (actual values don't matter);
......
This diff is collapsed.
This diff is collapsed.
...@@ -53,6 +53,7 @@ FILES ...@@ -53,6 +53,7 @@ FILES
GLOBAL_STATUS GLOBAL_STATUS
GLOBAL_VARIABLES GLOBAL_VARIABLES
KEY_COLUMN_USAGE KEY_COLUMN_USAGE
PARAMETERS
PARTITIONS PARTITIONS
PLUGINS PLUGINS
PROCESSLIST PROCESSLIST
...@@ -772,11 +773,13 @@ table_schema table_name column_name ...@@ -772,11 +773,13 @@ table_schema table_name column_name
information_schema COLUMNS COLUMN_DEFAULT information_schema COLUMNS COLUMN_DEFAULT
information_schema COLUMNS COLUMN_TYPE information_schema COLUMNS COLUMN_TYPE
information_schema EVENTS EVENT_DEFINITION information_schema EVENTS EVENT_DEFINITION
information_schema PARAMETERS DTD_IDENTIFIER
information_schema PARTITIONS PARTITION_EXPRESSION information_schema PARTITIONS PARTITION_EXPRESSION
information_schema PARTITIONS SUBPARTITION_EXPRESSION information_schema PARTITIONS SUBPARTITION_EXPRESSION
information_schema PARTITIONS PARTITION_DESCRIPTION information_schema PARTITIONS PARTITION_DESCRIPTION
information_schema PLUGINS PLUGIN_DESCRIPTION information_schema PLUGINS PLUGIN_DESCRIPTION
information_schema PROCESSLIST INFO information_schema PROCESSLIST INFO
information_schema ROUTINES DTD_IDENTIFIER
information_schema ROUTINES ROUTINE_DEFINITION information_schema ROUTINES ROUTINE_DEFINITION
information_schema ROUTINES ROUTINE_COMMENT information_schema ROUTINES ROUTINE_COMMENT
information_schema TRIGGERS ACTION_CONDITION information_schema TRIGGERS ACTION_CONDITION
...@@ -862,7 +865,7 @@ table_schema IN ('mysql', 'INFORMATION_SCHEMA', 'test', 'mysqltest') ...@@ -862,7 +865,7 @@ table_schema IN ('mysql', 'INFORMATION_SCHEMA', 'test', 'mysqltest')
AND table_name not like 'ndb%' AND table_name not like 'innodb_%' AND table_name not like 'ndb%' AND table_name not like 'innodb_%'
GROUP BY TABLE_SCHEMA; GROUP BY TABLE_SCHEMA;
table_schema count(*) table_schema count(*)
information_schema 29 information_schema 30
mysql 22 mysql 22
create table t1 (i int, j int); create table t1 (i int, j int);
create trigger trg1 before insert on t1 for each row create trigger trg1 before insert on t1 for each row
...@@ -1312,6 +1315,7 @@ FILES information_schema.FILES 1 ...@@ -1312,6 +1315,7 @@ FILES information_schema.FILES 1
GLOBAL_STATUS information_schema.GLOBAL_STATUS 1 GLOBAL_STATUS information_schema.GLOBAL_STATUS 1
GLOBAL_VARIABLES information_schema.GLOBAL_VARIABLES 1 GLOBAL_VARIABLES information_schema.GLOBAL_VARIABLES 1
KEY_COLUMN_USAGE information_schema.KEY_COLUMN_USAGE 1 KEY_COLUMN_USAGE information_schema.KEY_COLUMN_USAGE 1
PARAMETERS information_schema.PARAMETERS 1
PARTITIONS information_schema.PARTITIONS 1 PARTITIONS information_schema.PARTITIONS 1
PLUGINS information_schema.PLUGINS 1 PLUGINS information_schema.PLUGINS 1
PROCESSLIST information_schema.PROCESSLIST 1 PROCESSLIST information_schema.PROCESSLIST 1
...@@ -1707,7 +1711,7 @@ id select_type table type possible_keys key key_len ref rows Extra ...@@ -1707,7 +1711,7 @@ id select_type table type possible_keys key key_len ref rows Extra
EXPLAIN SELECT * FROM INFORMATION_SCHEMA.TRIGGERS EXPLAIN SELECT * FROM INFORMATION_SCHEMA.TRIGGERS
WHERE EVENT_OBJECT_SCHEMA='test'; WHERE EVENT_OBJECT_SCHEMA='test';
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE TRIGGERS ALL NULL EVENT_OBJECT_SCHEMA NULL NULL NULL Using where; Open_full_table; Scanned 1 database 1 SIMPLE TRIGGERS ALL NULL EVENT_OBJECT_SCHEMA NULL NULL NULL Using where; Open_frm_only; Scanned 1 database
SELECT * SELECT *
FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE
LEFT JOIN INFORMATION_SCHEMA.COLUMNS LEFT JOIN INFORMATION_SCHEMA.COLUMNS
......
...@@ -16,6 +16,7 @@ FILES ...@@ -16,6 +16,7 @@ FILES
GLOBAL_STATUS GLOBAL_STATUS
GLOBAL_VARIABLES GLOBAL_VARIABLES
KEY_COLUMN_USAGE KEY_COLUMN_USAGE
PARAMETERS
PARTITIONS PARTITIONS
PLUGINS PLUGINS
PROCESSLIST PROCESSLIST
......
This diff is collapsed.
This diff is collapsed.
...@@ -164,9 +164,6 @@ WHERE TRIGGER_SCHEMA="#mysql50#a@b" ORDER BY trigger_name; ...@@ -164,9 +164,6 @@ WHERE TRIGGER_SCHEMA="#mysql50#a@b" ORDER BY trigger_name;
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
def #mysql50#a@b tr1 INSERT def #mysql50#a@b #mysql50#c@d 0 NULL SET NEW.a = 10 * NEW.a ROW BEFORE NULL NULL OLD NEW NULL root@localhost latin1 latin1_swedish_ci latin1_swedish_ci def #mysql50#a@b tr1 INSERT def #mysql50#a@b #mysql50#c@d 0 NULL SET NEW.a = 10 * NEW.a ROW BEFORE NULL NULL OLD NEW NULL root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
def #mysql50#a@b tr2 INSERT def #mysql50#a@b t1 0 NULL SET NEW.a = 100 * NEW.a ROW BEFORE NULL NULL OLD NEW NULL root@localhost latin1 latin1_swedish_ci latin1_swedish_ci def #mysql50#a@b tr2 INSERT def #mysql50#a@b t1 0 NULL SET NEW.a = 100 * NEW.a ROW BEFORE NULL NULL OLD NEW NULL root@localhost latin1 latin1_swedish_ci latin1_swedish_ci
Warnings:
Warning 1603 Triggers for table `#mysql50#a@b`.`#mysql50#c@d` have no creation context
Warning 1603 Triggers for table `#mysql50#a@b`.`t1` have no creation context
mysqlcheck --fix-db-names --fix-table-names --all-databases mysqlcheck --fix-db-names --fix-table-names --all-databases
USE `a@b`; USE `a@b`;
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS SELECT * FROM INFORMATION_SCHEMA.TRIGGERS
......
...@@ -90,6 +90,7 @@ Database: information_schema ...@@ -90,6 +90,7 @@ Database: information_schema
| GLOBAL_STATUS | | GLOBAL_STATUS |
| GLOBAL_VARIABLES | | GLOBAL_VARIABLES |
| KEY_COLUMN_USAGE | | KEY_COLUMN_USAGE |
| PARAMETERS |
| PARTITIONS | | PARTITIONS |
| PLUGINS | | PLUGINS |
| PROCESSLIST | | PROCESSLIST |
...@@ -131,6 +132,7 @@ Database: INFORMATION_SCHEMA ...@@ -131,6 +132,7 @@ Database: INFORMATION_SCHEMA
| GLOBAL_STATUS | | GLOBAL_STATUS |
| GLOBAL_VARIABLES | | GLOBAL_VARIABLES |
| KEY_COLUMN_USAGE | | KEY_COLUMN_USAGE |
| PARAMETERS |
| PARTITIONS | | PARTITIONS |
| PLUGINS | | PLUGINS |
| PROCESSLIST | | PROCESSLIST |
......
...@@ -1105,7 +1105,7 @@ def information_schema ROUTINES ROUTINES ROUTINE_CATALOG ROUTINE_CATALOG 253 153 ...@@ -1105,7 +1105,7 @@ def information_schema ROUTINES ROUTINES ROUTINE_CATALOG ROUTINE_CATALOG 253 153
def information_schema ROUTINES ROUTINES ROUTINE_SCHEMA ROUTINE_SCHEMA 253 192 4 N 1 0 33 def information_schema ROUTINES ROUTINES ROUTINE_SCHEMA ROUTINE_SCHEMA 253 192 4 N 1 0 33
def information_schema ROUTINES ROUTINES ROUTINE_NAME ROUTINE_NAME 253 192 2 N 1 0 33 def information_schema ROUTINES ROUTINES ROUTINE_NAME ROUTINE_NAME 253 192 2 N 1 0 33
def information_schema ROUTINES ROUTINES ROUTINE_TYPE ROUTINE_TYPE 253 27 9 N 1 0 33 def information_schema ROUTINES ROUTINES ROUTINE_TYPE ROUTINE_TYPE 253 27 9 N 1 0 33
def information_schema ROUTINES ROUTINES DTD_IDENTIFIER DTD_IDENTIFIER 253 192 0 Y 0 0 33 def information_schema ROUTINES ROUTINES DTD_IDENTIFIER DTD_IDENTIFIER 252 589815 0 Y 16 0 33
def information_schema ROUTINES ROUTINES ROUTINE_BODY ROUTINE_BODY 253 24 3 N 1 0 33 def information_schema ROUTINES ROUTINES ROUTINE_BODY ROUTINE_BODY 253 24 3 N 1 0 33
def information_schema ROUTINES ROUTINES ROUTINE_DEFINITION ROUTINE_DEFINITION 252 589815 8 Y 16 0 33 def information_schema ROUTINES ROUTINES ROUTINE_DEFINITION ROUTINE_DEFINITION 252 589815 8 Y 16 0 33
def information_schema ROUTINES ROUTINES EXTERNAL_NAME EXTERNAL_NAME 253 192 0 Y 0 0 33 def information_schema ROUTINES ROUTINES EXTERNAL_NAME EXTERNAL_NAME 253 192 0 Y 0 0 33
...@@ -1160,7 +1160,7 @@ def information_schema ROUTINES ROUTINES ROUTINE_CATALOG ROUTINE_CATALOG 253 153 ...@@ -1160,7 +1160,7 @@ def information_schema ROUTINES ROUTINES ROUTINE_CATALOG ROUTINE_CATALOG 253 153
def information_schema ROUTINES ROUTINES ROUTINE_SCHEMA ROUTINE_SCHEMA 253 192 4 N 1 0 33 def information_schema ROUTINES ROUTINES ROUTINE_SCHEMA ROUTINE_SCHEMA 253 192 4 N 1 0 33
def information_schema ROUTINES ROUTINES ROUTINE_NAME ROUTINE_NAME 253 192 2 N 1 0 33 def information_schema ROUTINES ROUTINES ROUTINE_NAME ROUTINE_NAME 253 192 2 N 1 0 33
def information_schema ROUTINES ROUTINES ROUTINE_TYPE ROUTINE_TYPE 253 27 8 N 1 0 33 def information_schema ROUTINES ROUTINES ROUTINE_TYPE ROUTINE_TYPE 253 27 8 N 1 0 33
def information_schema ROUTINES ROUTINES DTD_IDENTIFIER DTD_IDENTIFIER 253 192 7 Y 0 0 33 def information_schema ROUTINES ROUTINES DTD_IDENTIFIER DTD_IDENTIFIER 252 589815 7 Y 16 0 33
def information_schema ROUTINES ROUTINES ROUTINE_BODY ROUTINE_BODY 253 24 3 N 1 0 33 def information_schema ROUTINES ROUTINES ROUTINE_BODY ROUTINE_BODY 253 24 3 N 1 0 33
def information_schema ROUTINES ROUTINES ROUTINE_DEFINITION ROUTINE_DEFINITION 252 589815 8 Y 16 0 33 def information_schema ROUTINES ROUTINES ROUTINE_DEFINITION ROUTINE_DEFINITION 252 589815 8 Y 16 0 33
def information_schema ROUTINES ROUTINES EXTERNAL_NAME EXTERNAL_NAME 253 192 0 Y 0 0 33 def information_schema ROUTINES ROUTINES EXTERNAL_NAME EXTERNAL_NAME 253 192 0 Y 0 0 33
......
...@@ -132,7 +132,7 @@ RETURN 0 utf8 utf8_general_ci latin1_swedish_ci ...@@ -132,7 +132,7 @@ RETURN 0 utf8 utf8_general_ci latin1_swedish_ci
SELECT DTD_IDENTIFIER FROM INFORMATION_SCHEMA.ROUTINES SELECT DTD_IDENTIFIER FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_NAME='bug48766'; WHERE ROUTINE_NAME='bug48766';
DTD_IDENTIFIER DTD_IDENTIFIER
enum('w') CHARSET ucs2 enum('w')
DROP FUNCTION bug48766; DROP FUNCTION bug48766;
CREATE FUNCTION bug48766 () CREATE FUNCTION bug48766 ()
RETURNS ENUM('а','б','в','г') CHARACTER SET ucs2 RETURNS ENUM('а','б','в','г') CHARACTER SET ucs2
...@@ -144,5 +144,5 @@ RETURN 0 utf8 utf8_general_ci latin1_swedish_ci ...@@ -144,5 +144,5 @@ RETURN 0 utf8 utf8_general_ci latin1_swedish_ci
SELECT DTD_IDENTIFIER FROM INFORMATION_SCHEMA.ROUTINES SELECT DTD_IDENTIFIER FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_NAME='bug48766'; WHERE ROUTINE_NAME='bug48766';
DTD_IDENTIFIER DTD_IDENTIFIER
enum('а','б','в','г') CHARSET ucs2 enum('а','б','в','г')
DROP FUNCTION bug48766; DROP FUNCTION bug48766;
...@@ -4990,22 +4990,22 @@ SELECT dtd_identifier ...@@ -4990,22 +4990,22 @@ SELECT dtd_identifier
FROM INFORMATION_SCHEMA.ROUTINES FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_SCHEMA = "mysqltest1" AND ROUTINE_NAME = "bug16211_f1"| WHERE ROUTINE_SCHEMA = "mysqltest1" AND ROUTINE_NAME = "bug16211_f1"|
dtd_identifier dtd_identifier
char(10) CHARSET utf8 char(10)
SELECT dtd_identifier SELECT dtd_identifier
FROM INFORMATION_SCHEMA.ROUTINES FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_SCHEMA = "mysqltest1" AND ROUTINE_NAME = "bug16211_f2"| WHERE ROUTINE_SCHEMA = "mysqltest1" AND ROUTINE_NAME = "bug16211_f2"|
dtd_identifier dtd_identifier
char(10) CHARSET koi8r char(10)
SELECT dtd_identifier SELECT dtd_identifier
FROM INFORMATION_SCHEMA.ROUTINES FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f3"| WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f3"|
dtd_identifier dtd_identifier
char(10) CHARSET utf8 char(10)
SELECT dtd_identifier SELECT dtd_identifier
FROM INFORMATION_SCHEMA.ROUTINES FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f4"| WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f4"|
dtd_identifier dtd_identifier
char(10) CHARSET koi8r char(10)
SELECT CHARSET(bug16211_f1())| SELECT CHARSET(bug16211_f1())|
CHARSET(bug16211_f1()) CHARSET(bug16211_f1())
utf8 utf8
...@@ -5040,22 +5040,22 @@ SELECT dtd_identifier ...@@ -5040,22 +5040,22 @@ SELECT dtd_identifier
FROM INFORMATION_SCHEMA.ROUTINES FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_SCHEMA = "mysqltest1" AND ROUTINE_NAME = "bug16211_f1"| WHERE ROUTINE_SCHEMA = "mysqltest1" AND ROUTINE_NAME = "bug16211_f1"|
dtd_identifier dtd_identifier
char(10) CHARSET utf8 char(10)
SELECT dtd_identifier SELECT dtd_identifier
FROM INFORMATION_SCHEMA.ROUTINES FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_SCHEMA = "mysqltest1" AND ROUTINE_NAME = "bug16211_f2"| WHERE ROUTINE_SCHEMA = "mysqltest1" AND ROUTINE_NAME = "bug16211_f2"|
dtd_identifier dtd_identifier
char(10) CHARSET koi8r char(10)
SELECT dtd_identifier SELECT dtd_identifier
FROM INFORMATION_SCHEMA.ROUTINES FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f3"| WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f3"|
dtd_identifier dtd_identifier
char(10) CHARSET utf8 char(10)
SELECT dtd_identifier SELECT dtd_identifier
FROM INFORMATION_SCHEMA.ROUTINES FROM INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f4"| WHERE ROUTINE_SCHEMA = "mysqltest2" AND ROUTINE_NAME = "bug16211_f4"|
dtd_identifier dtd_identifier
char(10) CHARSET koi8r char(10)
SELECT CHARSET(bug16211_f1())| SELECT CHARSET(bug16211_f1())|
CHARSET(bug16211_f1()) CHARSET(bug16211_f1())
utf8 utf8
......
...@@ -26,8 +26,6 @@ SELECT trigger_name, definer FROM INFORMATION_SCHEMA.TRIGGERS ORDER BY trigger_n ...@@ -26,8 +26,6 @@ SELECT trigger_name, definer FROM INFORMATION_SCHEMA.TRIGGERS ORDER BY trigger_n
trigger_name definer trigger_name definer
wl2818_trg1 wl2818_trg1
wl2818_trg2 mysqltest_dfn@localhost wl2818_trg2 mysqltest_dfn@localhost
Warnings:
Warning 1454 No definer attribute for trigger 'mysqltest_db1'.'wl2818_trg1'. The trigger will be activated under the authorization of the invoker, which may have insufficient privileges. Please recreate the trigger.
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS ORDER BY trigger_name; SELECT * FROM INFORMATION_SCHEMA.TRIGGERS ORDER BY trigger_name;
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
......
...@@ -165,8 +165,6 @@ trg2 @ ...@@ -165,8 +165,6 @@ trg2 @
trg3 @abc@def@@ trg3 @abc@def@@
trg4 @hostname trg4 @hostname
trg5 @abcdef@@@hostname trg5 @abcdef@@@hostname
Warnings:
Warning 1454 No definer attribute for trigger 'mysqltest_db1'.'trg1'. The trigger will be activated under the authorization of the invoker, which may have insufficient privileges. Please recreate the trigger.
SELECT * FROM INFORMATION_SCHEMA.TRIGGERS ORDER BY trigger_name; SELECT * FROM INFORMATION_SCHEMA.TRIGGERS ORDER BY trigger_name;
TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION TRIGGER_CATALOG TRIGGER_SCHEMA TRIGGER_NAME EVENT_MANIPULATION EVENT_OBJECT_CATALOG EVENT_OBJECT_SCHEMA EVENT_OBJECT_TABLE ACTION_ORDER ACTION_CONDITION ACTION_STATEMENT ACTION_ORIENTATION ACTION_TIMING ACTION_REFERENCE_OLD_TABLE ACTION_REFERENCE_NEW_TABLE ACTION_REFERENCE_OLD_ROW ACTION_REFERENCE_NEW_ROW CREATED SQL_MODE DEFINER CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
......
...@@ -181,19 +181,19 @@ FLUSH PRIVILEGES; ...@@ -181,19 +181,19 @@ FLUSH PRIVILEGES;
--echo # Establish connection testuser1 (user=testuser1) --echo # Establish connection testuser1 (user=testuser1)
--replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK --replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK
connect (testuser1, localhost, testuser1, , db_datadict); connect (testuser1, localhost, testuser1, , db_datadict);
--replace_column 16 "YYYY-MM-DD hh:mm:ss" 17 "YYYY-MM-DD hh:mm:ss" --replace_column 23 "YYYY-MM-DD hh:mm:ss" 24 "YYYY-MM-DD hh:mm:ss"
SELECT * FROM information_schema.routines; SELECT * FROM information_schema.routines;
--echo # Establish connection testuser2 (user=testuser2) --echo # Establish connection testuser2 (user=testuser2)
--replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK --replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK
connect (testuser2, localhost, testuser2, , db_datadict); connect (testuser2, localhost, testuser2, , db_datadict);
--replace_column 16 "YYYY-MM-DD hh:mm:ss" 17 "YYYY-MM-DD hh:mm:ss" --replace_column 23 "YYYY-MM-DD hh:mm:ss" 24 "YYYY-MM-DD hh:mm:ss"
SELECT * FROM information_schema.routines; SELECT * FROM information_schema.routines;
--echo # Establish connection testuser3 (user=testuser3) --echo # Establish connection testuser3 (user=testuser3)
--replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK --replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK
connect (testuser3, localhost, testuser3, , test); connect (testuser3, localhost, testuser3, , test);
--replace_column 16 "YYYY-MM-DD hh:mm:ss" 17 "YYYY-MM-DD hh:mm:ss" --replace_column 23 "YYYY-MM-DD hh:mm:ss" 24 "YYYY-MM-DD hh:mm:ss"
SELECT * FROM information_schema.routines; SELECT * FROM information_schema.routines;
# Cleanup # Cleanup
...@@ -238,7 +238,7 @@ USE db_datadict; ...@@ -238,7 +238,7 @@ USE db_datadict;
CREATE PROCEDURE sp_for_routines() SELECT 'db_datadict'; CREATE PROCEDURE sp_for_routines() SELECT 'db_datadict';
CREATE FUNCTION function_for_routines() RETURNS INT RETURN 0; CREATE FUNCTION function_for_routines() RETURNS INT RETURN 0;
--vertical_results --vertical_results
--replace_column 16 <created> 17 <modified> --replace_column 23 <created> 24 <modified>
SELECT * FROM information_schema.routines WHERE routine_schema = 'db_datadict' SELECT * FROM information_schema.routines WHERE routine_schema = 'db_datadict'
ORDER BY routine_name; ORDER BY routine_name;
--horizontal_results --horizontal_results
...@@ -246,7 +246,7 @@ ORDER BY routine_name; ...@@ -246,7 +246,7 @@ ORDER BY routine_name;
ALTER PROCEDURE sp_for_routines SQL SECURITY INVOKER; ALTER PROCEDURE sp_for_routines SQL SECURITY INVOKER;
ALTER FUNCTION function_for_routines COMMENT 'updated comments'; ALTER FUNCTION function_for_routines COMMENT 'updated comments';
--vertical_results --vertical_results
--replace_column 16 <created> 17 <modified> --replace_column 23 <created> 24 <modified>
SELECT * FROM information_schema.routines WHERE routine_schema = 'db_datadict' SELECT * FROM information_schema.routines WHERE routine_schema = 'db_datadict'
ORDER BY routine_name; ORDER BY routine_name;
--horizontal_results --horizontal_results
...@@ -258,7 +258,7 @@ SELECT * FROM information_schema.routines WHERE routine_schema = 'db_datadict'; ...@@ -258,7 +258,7 @@ SELECT * FROM information_schema.routines WHERE routine_schema = 'db_datadict';
CREATE PROCEDURE sp_for_routines() SELECT 'db_datadict'; CREATE PROCEDURE sp_for_routines() SELECT 'db_datadict';
CREATE FUNCTION function_for_routines() RETURNS INT RETURN 0; CREATE FUNCTION function_for_routines() RETURNS INT RETURN 0;
--vertical_results --vertical_results
--replace_column 16 <created> 17 <modified> --replace_column 23 <created> 24 <modified>
SELECT * FROM information_schema.routines WHERE routine_schema = 'db_datadict' SELECT * FROM information_schema.routines WHERE routine_schema = 'db_datadict'
ORDER BY routine_name; ORDER BY routine_name;
--horizontal_results --horizontal_results
...@@ -403,7 +403,7 @@ CALL db_datadict.sp_6_408004 (); ...@@ -403,7 +403,7 @@ CALL db_datadict.sp_6_408004 ();
SELECT * FROM db_datadict.res_6_408004_2; SELECT * FROM db_datadict.res_6_408004_2;
--vertical_results --vertical_results
--replace_column 16 "YYYY-MM-DD hh:mm:ss" 17 "YYYY-MM-DD hh:mm:ss" --replace_column 23 "YYYY-MM-DD hh:mm:ss" 24 "YYYY-MM-DD hh:mm:ss"
SELECT *, LENGTH(routine_definition) FROM information_schema.routines SELECT *, LENGTH(routine_definition) FROM information_schema.routines
WHERE routine_schema = 'db_datadict'; WHERE routine_schema = 'db_datadict';
--horizontal_results --horizontal_results
......
...@@ -109,6 +109,13 @@ ROUTINE_CATALOG def ...@@ -109,6 +109,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_1 ROUTINE_NAME fn_1
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -136,6 +143,13 @@ ROUTINE_CATALOG def ...@@ -136,6 +143,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_2 ROUTINE_NAME fn_2
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -163,6 +177,13 @@ ROUTINE_CATALOG def ...@@ -163,6 +177,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_1 ROUTINE_NAME sp_1
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -188,6 +209,13 @@ ROUTINE_CATALOG def ...@@ -188,6 +209,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_2 ROUTINE_NAME sp_2
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -327,6 +355,13 @@ ROUTINE_CATALOG def ...@@ -327,6 +355,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_1 ROUTINE_NAME fn_1
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -354,6 +389,13 @@ ROUTINE_CATALOG def ...@@ -354,6 +389,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_2 ROUTINE_NAME fn_2
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -381,6 +423,13 @@ ROUTINE_CATALOG def ...@@ -381,6 +423,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_1 ROUTINE_NAME sp_1
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -406,6 +455,13 @@ ROUTINE_CATALOG def ...@@ -406,6 +455,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_2 ROUTINE_NAME sp_2
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -538,6 +594,13 @@ ROUTINE_CATALOG def ...@@ -538,6 +594,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_1 ROUTINE_NAME fn_1
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -565,6 +628,13 @@ ROUTINE_CATALOG def ...@@ -565,6 +628,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_2 ROUTINE_NAME fn_2
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -592,6 +662,13 @@ ROUTINE_CATALOG def ...@@ -592,6 +662,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_1 ROUTINE_NAME sp_1
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -617,6 +694,13 @@ ROUTINE_CATALOG def ...@@ -617,6 +694,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_2 ROUTINE_NAME sp_2
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
......
...@@ -110,7 +110,7 @@ def mysql proc body 11 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NUL ...@@ -110,7 +110,7 @@ def mysql proc body 11 NULL NO longblob 4294967295 4294967295 NULL NULL NULL NUL
def mysql proc body_utf8 20 NULL YES longblob 4294967295 4294967295 NULL NULL NULL NULL longblob def mysql proc body_utf8 20 NULL YES longblob 4294967295 4294967295 NULL NULL NULL NULL longblob
def mysql proc character_set_client 17 NULL YES char 32 96 NULL NULL utf8 utf8_bin char(32) def mysql proc character_set_client 17 NULL YES char 32 96 NULL NULL utf8 utf8_bin char(32)
def mysql proc collation_connection 18 NULL YES char 32 96 NULL NULL utf8 utf8_bin char(32) def mysql proc collation_connection 18 NULL YES char 32 96 NULL NULL utf8 utf8_bin char(32)
def mysql proc comment 16 NO char 64 192 NULL NULL utf8 utf8_bin char(64) def mysql proc comment 16 NULL NO text 65535 65535 NULL NULL utf8 utf8_bin text
def mysql proc created 13 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP def mysql proc created 13 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP
def mysql proc db 1 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI def mysql proc db 1 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI
def mysql proc db_collation 19 NULL YES char 32 96 NULL NULL utf8 utf8_bin char(32) def mysql proc db_collation 19 NULL YES char 32 96 NULL NULL utf8 utf8_bin char(32)
...@@ -130,7 +130,7 @@ def mysql procs_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI ...@@ -130,7 +130,7 @@ def mysql procs_priv Db 2 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI
def mysql procs_priv Grantor 6 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL def mysql procs_priv Grantor 6 NO char 77 231 NULL NULL utf8 utf8_bin char(77) MUL
def mysql procs_priv Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI def mysql procs_priv Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI
def mysql procs_priv Proc_priv 7 NO set 27 81 NULL NULL utf8 utf8_general_ci set('Execute','Alter Routine','Grant') def mysql procs_priv Proc_priv 7 NO set 27 81 NULL NULL utf8 utf8_general_ci set('Execute','Alter Routine','Grant')
def mysql procs_priv Routine_name 4 NO char 64 192 NULL NULL utf8 utf8_bin char(64) PRI def mysql procs_priv Routine_name 4 NO char 64 192 NULL NULL utf8 utf8_general_ci char(64) PRI
def mysql procs_priv Routine_type 5 NULL NO enum 9 27 NULL NULL utf8 utf8_bin enum('FUNCTION','PROCEDURE') PRI def mysql procs_priv Routine_type 5 NULL NO enum 9 27 NULL NULL utf8 utf8_bin enum('FUNCTION','PROCEDURE') PRI
def mysql procs_priv Timestamp 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP def mysql procs_priv Timestamp 8 CURRENT_TIMESTAMP NO timestamp NULL NULL NULL NULL NULL NULL timestamp on update CURRENT_TIMESTAMP
def mysql procs_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI def mysql procs_priv User 3 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI
...@@ -180,6 +180,7 @@ def mysql user Alter_priv 17 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum(' ...@@ -180,6 +180,7 @@ def mysql user Alter_priv 17 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('
def mysql user Alter_routine_priv 28 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Alter_routine_priv 28 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user Create_priv 8 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Create_priv 8 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user Create_routine_priv 27 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Create_routine_priv 27 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user Create_tablespace_priv 32 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user Create_tmp_table_priv 20 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Create_tmp_table_priv 20 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user Create_user_priv 29 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Create_user_priv 29 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user Create_view_priv 25 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Create_view_priv 25 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
...@@ -193,10 +194,10 @@ def mysql user Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI ...@@ -193,10 +194,10 @@ def mysql user Host 1 NO char 60 180 NULL NULL utf8 utf8_bin char(60) PRI
def mysql user Index_priv 16 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Index_priv 16 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user Insert_priv 5 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Insert_priv 5 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user Lock_tables_priv 21 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Lock_tables_priv 21 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user max_connections 38 0 NO int NULL NULL 10 0 NULL NULL int(11) unsigned def mysql user max_connections 39 0 NO int NULL NULL 10 0 NULL NULL int(11) unsigned
def mysql user max_questions 36 0 NO int NULL NULL 10 0 NULL NULL int(11) unsigned def mysql user max_questions 37 0 NO int NULL NULL 10 0 NULL NULL int(11) unsigned
def mysql user max_updates 37 0 NO int NULL NULL 10 0 NULL NULL int(11) unsigned def mysql user max_updates 38 0 NO int NULL NULL 10 0 NULL NULL int(11) unsigned
def mysql user max_user_connections 39 0 NO int NULL NULL 10 0 NULL NULL int(11) unsigned def mysql user max_user_connections 40 0 NO int NULL NULL 10 0 NULL NULL int(11) unsigned
def mysql user Password 3 NO char 41 41 NULL NULL latin1 latin1_bin char(41) def mysql user Password 3 NO char 41 41 NULL NULL latin1 latin1_bin char(41)
def mysql user Process_priv 12 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Process_priv 12 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user References_priv 15 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user References_priv 15 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
...@@ -207,14 +208,14 @@ def mysql user Select_priv 4 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum(' ...@@ -207,14 +208,14 @@ def mysql user Select_priv 4 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('
def mysql user Show_db_priv 18 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Show_db_priv 18 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user Show_view_priv 26 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Show_view_priv 26 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user Shutdown_priv 11 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Shutdown_priv 11 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user ssl_cipher 33 NULL NO blob 65535 65535 NULL NULL NULL NULL blob def mysql user ssl_cipher 34 NULL NO blob 65535 65535 NULL NULL NULL NULL blob
def mysql user ssl_type 32 NO enum 9 27 NULL NULL utf8 utf8_general_ci enum('','ANY','X509','SPECIFIED') def mysql user ssl_type 33 NO enum 9 27 NULL NULL utf8 utf8_general_ci enum('','ANY','X509','SPECIFIED')
def mysql user Super_priv 19 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Super_priv 19 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user Trigger_priv 31 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Trigger_priv 31 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user Update_priv 6 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y') def mysql user Update_priv 6 N NO enum 1 3 NULL NULL utf8 utf8_general_ci enum('N','Y')
def mysql user User 2 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI def mysql user User 2 NO char 16 48 NULL NULL utf8 utf8_bin char(16) PRI
def mysql user x509_issuer 34 NULL NO blob 65535 65535 NULL NULL NULL NULL blob def mysql user x509_issuer 35 NULL NO blob 65535 65535 NULL NULL NULL NULL blob
def mysql user x509_subject 35 NULL NO blob 65535 65535 NULL NULL NULL NULL blob def mysql user x509_subject 36 NULL NO blob 65535 65535 NULL NULL NULL NULL blob
########################################################################## ##########################################################################
# Show the quotient of CHARACTER_OCTET_LENGTH and CHARACTER_MAXIMUM_LENGTH # Show the quotient of CHARACTER_OCTET_LENGTH and CHARACTER_MAXIMUM_LENGTH
########################################################################## ##########################################################################
...@@ -233,6 +234,7 @@ COL_CML DATA_TYPE CHARACTER_SET_NAME COLLATION_NAME ...@@ -233,6 +234,7 @@ COL_CML DATA_TYPE CHARACTER_SET_NAME COLLATION_NAME
1.0000 char latin1 latin1_bin 1.0000 char latin1 latin1_bin
1.0000 char latin1 latin1_swedish_ci 1.0000 char latin1 latin1_swedish_ci
1.0000 varchar latin1 latin1_swedish_ci 1.0000 varchar latin1 latin1_swedish_ci
1.0000 text utf8 utf8_bin
1.0000 mediumtext utf8 utf8_general_ci 1.0000 mediumtext utf8 utf8_general_ci
1.0000 text utf8 utf8_general_ci 1.0000 text utf8 utf8_general_ci
SELECT DISTINCT SELECT DISTINCT
...@@ -403,7 +405,7 @@ NULL mysql ndb_binlog_index schemaops bigint NULL NULL NULL NULL bigint(20) unsi ...@@ -403,7 +405,7 @@ NULL mysql ndb_binlog_index schemaops bigint NULL NULL NULL NULL bigint(20) unsi
NULL mysql proc created timestamp NULL NULL NULL NULL timestamp NULL mysql proc created timestamp NULL NULL NULL NULL timestamp
NULL mysql proc modified timestamp NULL NULL NULL NULL timestamp NULL mysql proc modified timestamp NULL NULL NULL NULL timestamp
3.0000 mysql proc sql_mode set 478 1434 utf8 utf8_general_ci set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH') 3.0000 mysql proc sql_mode set 478 1434 utf8 utf8_general_ci set('REAL_AS_FLOAT','PIPES_AS_CONCAT','ANSI_QUOTES','IGNORE_SPACE','NOT_USED','ONLY_FULL_GROUP_BY','NO_UNSIGNED_SUBTRACTION','NO_DIR_IN_CREATE','POSTGRESQL','ORACLE','MSSQL','DB2','MAXDB','NO_KEY_OPTIONS','NO_TABLE_OPTIONS','NO_FIELD_OPTIONS','MYSQL323','MYSQL40','ANSI','NO_AUTO_VALUE_ON_ZERO','NO_BACKSLASH_ESCAPES','STRICT_TRANS_TABLES','STRICT_ALL_TABLES','NO_ZERO_IN_DATE','NO_ZERO_DATE','INVALID_DATES','ERROR_FOR_DIVISION_BY_ZERO','TRADITIONAL','NO_AUTO_CREATE_USER','HIGH_NOT_PRECEDENCE','NO_ENGINE_SUBSTITUTION','PAD_CHAR_TO_FULL_LENGTH')
3.0000 mysql proc comment char 64 192 utf8 utf8_bin char(64) 1.0000 mysql proc comment text 65535 65535 utf8 utf8_bin text
3.0000 mysql proc character_set_client char 32 96 utf8 utf8_bin char(32) 3.0000 mysql proc character_set_client char 32 96 utf8 utf8_bin char(32)
3.0000 mysql proc collation_connection char 32 96 utf8 utf8_bin char(32) 3.0000 mysql proc collation_connection char 32 96 utf8 utf8_bin char(32)
3.0000 mysql proc db_collation char 32 96 utf8 utf8_bin char(32) 3.0000 mysql proc db_collation char 32 96 utf8 utf8_bin char(32)
...@@ -411,7 +413,7 @@ NULL mysql proc modified timestamp NULL NULL NULL NULL timestamp ...@@ -411,7 +413,7 @@ NULL mysql proc modified timestamp NULL NULL NULL NULL timestamp
3.0000 mysql procs_priv Host char 60 180 utf8 utf8_bin char(60) 3.0000 mysql procs_priv Host char 60 180 utf8 utf8_bin char(60)
3.0000 mysql procs_priv Db char 64 192 utf8 utf8_bin char(64) 3.0000 mysql procs_priv Db char 64 192 utf8 utf8_bin char(64)
3.0000 mysql procs_priv User char 16 48 utf8 utf8_bin char(16) 3.0000 mysql procs_priv User char 16 48 utf8 utf8_bin char(16)
3.0000 mysql procs_priv Routine_name char 64 192 utf8 utf8_bin char(64) 3.0000 mysql procs_priv Routine_name char 64 192 utf8 utf8_general_ci char(64)
3.0000 mysql procs_priv Routine_type enum 9 27 utf8 utf8_bin enum('FUNCTION','PROCEDURE') 3.0000 mysql procs_priv Routine_type enum 9 27 utf8 utf8_bin enum('FUNCTION','PROCEDURE')
3.0000 mysql procs_priv Grantor char 77 231 utf8 utf8_bin char(77) 3.0000 mysql procs_priv Grantor char 77 231 utf8 utf8_bin char(77)
3.0000 mysql procs_priv Proc_priv set 27 81 utf8 utf8_general_ci set('Execute','Alter Routine','Grant') 3.0000 mysql procs_priv Proc_priv set 27 81 utf8 utf8_general_ci set('Execute','Alter Routine','Grant')
...@@ -489,6 +491,7 @@ NULL mysql time_zone_transition_type Is_DST tinyint NULL NULL NULL NULL tinyint( ...@@ -489,6 +491,7 @@ NULL mysql time_zone_transition_type Is_DST tinyint NULL NULL NULL NULL tinyint(
3.0000 mysql user Create_user_priv enum 1 3 utf8 utf8_general_ci enum('N','Y') 3.0000 mysql user Create_user_priv enum 1 3 utf8 utf8_general_ci enum('N','Y')
3.0000 mysql user Event_priv enum 1 3 utf8 utf8_general_ci enum('N','Y') 3.0000 mysql user Event_priv enum 1 3 utf8 utf8_general_ci enum('N','Y')
3.0000 mysql user Trigger_priv enum 1 3 utf8 utf8_general_ci enum('N','Y') 3.0000 mysql user Trigger_priv enum 1 3 utf8 utf8_general_ci enum('N','Y')
3.0000 mysql user Create_tablespace_priv enum 1 3 utf8 utf8_general_ci enum('N','Y')
3.0000 mysql user ssl_type enum 9 27 utf8 utf8_general_ci enum('','ANY','X509','SPECIFIED') 3.0000 mysql user ssl_type enum 9 27 utf8 utf8_general_ci enum('','ANY','X509','SPECIFIED')
1.0000 mysql user ssl_cipher blob 65535 65535 NULL NULL blob 1.0000 mysql user ssl_cipher blob 65535 65535 NULL NULL blob
1.0000 mysql user x509_issuer blob 65535 65535 NULL NULL blob 1.0000 mysql user x509_issuer blob 65535 65535 NULL NULL blob
......
...@@ -268,6 +268,29 @@ user_comment ...@@ -268,6 +268,29 @@ user_comment
Separator ----------------------------------------------------- Separator -----------------------------------------------------
TABLE_CATALOG def TABLE_CATALOG def
TABLE_SCHEMA information_schema TABLE_SCHEMA information_schema
TABLE_NAME PARAMETERS
TABLE_TYPE SYSTEM VIEW
ENGINE MyISAM
VERSION 10
ROW_FORMAT Dynamic
TABLE_ROWS #TBLR#
AVG_ROW_LENGTH #ARL#
DATA_LENGTH #DL#
MAX_DATA_LENGTH #MDL#
INDEX_LENGTH #IL#
DATA_FREE #DF#
AUTO_INCREMENT NULL
CREATE_TIME #CRT#
UPDATE_TIME #UT#
CHECK_TIME #CT#
TABLE_COLLATION utf8_general_ci
CHECKSUM NULL
CREATE_OPTIONS #CO#
TABLE_COMMENT #TC#
user_comment
Separator -----------------------------------------------------
TABLE_CATALOG def
TABLE_SCHEMA information_schema
TABLE_NAME PARTITIONS TABLE_NAME PARTITIONS
TABLE_TYPE SYSTEM VIEW TABLE_TYPE SYSTEM VIEW
ENGINE MyISAM ENGINE MyISAM
...@@ -929,6 +952,29 @@ user_comment ...@@ -929,6 +952,29 @@ user_comment
Separator ----------------------------------------------------- Separator -----------------------------------------------------
TABLE_CATALOG def TABLE_CATALOG def
TABLE_SCHEMA information_schema TABLE_SCHEMA information_schema
TABLE_NAME PARAMETERS
TABLE_TYPE SYSTEM VIEW
ENGINE MyISAM
VERSION 10
ROW_FORMAT Dynamic
TABLE_ROWS #TBLR#
AVG_ROW_LENGTH #ARL#
DATA_LENGTH #DL#
MAX_DATA_LENGTH #MDL#
INDEX_LENGTH #IL#
DATA_FREE #DF#
AUTO_INCREMENT NULL
CREATE_TIME #CRT#
UPDATE_TIME #UT#
CHECK_TIME #CT#
TABLE_COLLATION utf8_general_ci
CHECKSUM NULL
CREATE_OPTIONS #CO#
TABLE_COMMENT #TC#
user_comment
Separator -----------------------------------------------------
TABLE_CATALOG def
TABLE_SCHEMA information_schema
TABLE_NAME PARTITIONS TABLE_NAME PARTITIONS
TABLE_TYPE SYSTEM VIEW TABLE_TYPE SYSTEM VIEW
ENGINE MyISAM ENGINE MyISAM
......
...@@ -110,6 +110,13 @@ ROUTINE_CATALOG def ...@@ -110,6 +110,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_1 ROUTINE_NAME fn_1
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -137,6 +144,13 @@ ROUTINE_CATALOG def ...@@ -137,6 +144,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_2 ROUTINE_NAME fn_2
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -164,6 +178,13 @@ ROUTINE_CATALOG def ...@@ -164,6 +178,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_1 ROUTINE_NAME sp_1
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -189,6 +210,13 @@ ROUTINE_CATALOG def ...@@ -189,6 +210,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_2 ROUTINE_NAME sp_2
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -328,6 +356,13 @@ ROUTINE_CATALOG def ...@@ -328,6 +356,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_1 ROUTINE_NAME fn_1
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -355,6 +390,13 @@ ROUTINE_CATALOG def ...@@ -355,6 +390,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_2 ROUTINE_NAME fn_2
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -382,6 +424,13 @@ ROUTINE_CATALOG def ...@@ -382,6 +424,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_1 ROUTINE_NAME sp_1
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -407,6 +456,13 @@ ROUTINE_CATALOG def ...@@ -407,6 +456,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_2 ROUTINE_NAME sp_2
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -539,6 +595,13 @@ ROUTINE_CATALOG def ...@@ -539,6 +595,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_1 ROUTINE_NAME fn_1
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -566,6 +629,13 @@ ROUTINE_CATALOG def ...@@ -566,6 +629,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_2 ROUTINE_NAME fn_2
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -593,6 +663,13 @@ ROUTINE_CATALOG def ...@@ -593,6 +663,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_1 ROUTINE_NAME sp_1
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -618,6 +695,13 @@ ROUTINE_CATALOG def ...@@ -618,6 +695,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_2 ROUTINE_NAME sp_2
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
......
...@@ -110,6 +110,13 @@ ROUTINE_CATALOG def ...@@ -110,6 +110,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_1 ROUTINE_NAME fn_1
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -137,6 +144,13 @@ ROUTINE_CATALOG def ...@@ -137,6 +144,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_2 ROUTINE_NAME fn_2
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -164,6 +178,13 @@ ROUTINE_CATALOG def ...@@ -164,6 +178,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_1 ROUTINE_NAME sp_1
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -189,6 +210,13 @@ ROUTINE_CATALOG def ...@@ -189,6 +210,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_2 ROUTINE_NAME sp_2
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -328,6 +356,13 @@ ROUTINE_CATALOG def ...@@ -328,6 +356,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_1 ROUTINE_NAME fn_1
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -355,6 +390,13 @@ ROUTINE_CATALOG def ...@@ -355,6 +390,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_2 ROUTINE_NAME fn_2
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -382,6 +424,13 @@ ROUTINE_CATALOG def ...@@ -382,6 +424,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_1 ROUTINE_NAME sp_1
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -407,6 +456,13 @@ ROUTINE_CATALOG def ...@@ -407,6 +456,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_2 ROUTINE_NAME sp_2
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -539,6 +595,13 @@ ROUTINE_CATALOG def ...@@ -539,6 +595,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_1 ROUTINE_NAME fn_1
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -566,6 +629,13 @@ ROUTINE_CATALOG def ...@@ -566,6 +629,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_2 ROUTINE_NAME fn_2
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -593,6 +663,13 @@ ROUTINE_CATALOG def ...@@ -593,6 +663,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_1 ROUTINE_NAME sp_1
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -618,6 +695,13 @@ ROUTINE_CATALOG def ...@@ -618,6 +695,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_2 ROUTINE_NAME sp_2
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
......
...@@ -109,6 +109,13 @@ ROUTINE_CATALOG def ...@@ -109,6 +109,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_1 ROUTINE_NAME fn_1
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -136,6 +143,13 @@ ROUTINE_CATALOG def ...@@ -136,6 +143,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_2 ROUTINE_NAME fn_2
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -163,6 +177,13 @@ ROUTINE_CATALOG def ...@@ -163,6 +177,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_1 ROUTINE_NAME sp_1
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -188,6 +209,13 @@ ROUTINE_CATALOG def ...@@ -188,6 +209,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_2 ROUTINE_NAME sp_2
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -327,6 +355,13 @@ ROUTINE_CATALOG def ...@@ -327,6 +355,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_1 ROUTINE_NAME fn_1
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -354,6 +389,13 @@ ROUTINE_CATALOG def ...@@ -354,6 +389,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_2 ROUTINE_NAME fn_2
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -381,6 +423,13 @@ ROUTINE_CATALOG def ...@@ -381,6 +423,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_1 ROUTINE_NAME sp_1
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -406,6 +455,13 @@ ROUTINE_CATALOG def ...@@ -406,6 +455,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_2 ROUTINE_NAME sp_2
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -538,6 +594,13 @@ ROUTINE_CATALOG def ...@@ -538,6 +594,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_1 ROUTINE_NAME fn_1
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -565,6 +628,13 @@ ROUTINE_CATALOG def ...@@ -565,6 +628,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME fn_2 ROUTINE_NAME fn_2
ROUTINE_TYPE FUNCTION ROUTINE_TYPE FUNCTION
DATA_TYPE year
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER year(4) DTD_IDENTIFIER year(4)
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -592,6 +662,13 @@ ROUTINE_CATALOG def ...@@ -592,6 +662,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_1 ROUTINE_NAME sp_1
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
...@@ -617,6 +694,13 @@ ROUTINE_CATALOG def ...@@ -617,6 +694,13 @@ ROUTINE_CATALOG def
ROUTINE_SCHEMA db_storedproc ROUTINE_SCHEMA db_storedproc
ROUTINE_NAME sp_2 ROUTINE_NAME sp_2
ROUTINE_TYPE PROCEDURE ROUTINE_TYPE PROCEDURE
DATA_TYPE
CHARACTER_MAXIMUM_LENGTH NULL
CHARACTER_OCTET_LENGTH NULL
NUMERIC_PRECISION NULL
NUMERIC_SCALE NULL
CHARACTER_SET_NAME NULL
COLLATION_NAME NULL
DTD_IDENTIFIER NULL DTD_IDENTIFIER NULL
ROUTINE_BODY SQL ROUTINE_BODY SQL
ROUTINE_DEFINITION BEGIN ROUTINE_DEFINITION BEGIN
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
--vertical_results --vertical_results
--replace_column 16 <modified> 17 <created> --replace_column 23 <modified> 24 <created>
SELECT * FROM information_schema.routines where routine_schema = 'db_storedproc'; SELECT * FROM information_schema.routines where routine_schema = 'db_storedproc';
......
This diff is collapsed.
This diff is collapsed.
...@@ -555,6 +555,7 @@ enum enum_schema_tables ...@@ -555,6 +555,7 @@ enum enum_schema_tables
SCH_GLOBAL_VARIABLES, SCH_GLOBAL_VARIABLES,
SCH_KEY_COLUMN_USAGE, SCH_KEY_COLUMN_USAGE,
SCH_OPEN_TABLES, SCH_OPEN_TABLES,
SCH_PARAMETERS,
SCH_PARTITIONS, SCH_PARTITIONS,
SCH_PLUGINS, SCH_PLUGINS,
SCH_PROCESSLIST, SCH_PROCESSLIST,
......
...@@ -1318,6 +1318,10 @@ thr_lock_type read_lock_type_for_table(THD *thd, TABLE *table); ...@@ -1318,6 +1318,10 @@ thr_lock_type read_lock_type_for_table(THD *thd, TABLE *table);
void close_data_files_and_morph_locks(THD *thd, const char *db, void close_data_files_and_morph_locks(THD *thd, const char *db,
const char *table_name); const char *table_name);
void close_handle_and_leave_table_as_lock(TABLE *table); void close_handle_and_leave_table_as_lock(TABLE *table);
bool open_new_frm(THD *thd, TABLE_SHARE *share, const char *alias,
uint db_stat, uint prgflag,
uint ha_open_flags, TABLE *outparam,
TABLE_LIST *table_desc, MEM_ROOT *mem_root);
bool wait_for_tables(THD *thd); bool wait_for_tables(THD *thd);
bool table_is_used(TABLE *table, bool wait_for_name_lock); bool table_is_used(TABLE *table, bool wait_for_name_lock);
TABLE *drop_locked_tables(THD *thd,const char *db, const char *table_name); TABLE *drop_locked_tables(THD *thd,const char *db, const char *table_name);
......
This diff is collapsed.
...@@ -34,6 +34,32 @@ ...@@ -34,6 +34,32 @@
#define SP_BODY_TOO_LONG -10 #define SP_BODY_TOO_LONG -10
#define SP_FLD_STORE_FAILED -11 #define SP_FLD_STORE_FAILED -11
/* DB storage of Stored PROCEDUREs and FUNCTIONs */
enum
{
MYSQL_PROC_FIELD_DB = 0,
MYSQL_PROC_FIELD_NAME,
MYSQL_PROC_MYSQL_TYPE,
MYSQL_PROC_FIELD_SPECIFIC_NAME,
MYSQL_PROC_FIELD_LANGUAGE,
MYSQL_PROC_FIELD_ACCESS,
MYSQL_PROC_FIELD_DETERMINISTIC,
MYSQL_PROC_FIELD_SECURITY_TYPE,
MYSQL_PROC_FIELD_PARAM_LIST,
MYSQL_PROC_FIELD_RETURNS,
MYSQL_PROC_FIELD_BODY,
MYSQL_PROC_FIELD_DEFINER,
MYSQL_PROC_FIELD_CREATED,
MYSQL_PROC_FIELD_MODIFIED,
MYSQL_PROC_FIELD_SQL_MODE,
MYSQL_PROC_FIELD_COMMENT,
MYSQL_PROC_FIELD_CHARACTER_SET_CLIENT,
MYSQL_PROC_FIELD_COLLATION_CONNECTION,
MYSQL_PROC_FIELD_DB_COLLATION,
MYSQL_PROC_FIELD_BODY_UTF8,
MYSQL_PROC_FIELD_COUNT
};
/* Drop all routines in database 'db' */ /* Drop all routines in database 'db' */
int int
sp_drop_db_routines(THD *thd, char *db); sp_drop_db_routines(THD *thd, char *db);
...@@ -86,4 +112,10 @@ extern "C" uchar* sp_sroutine_key(const uchar *ptr, size_t *plen, ...@@ -86,4 +112,10 @@ extern "C" uchar* sp_sroutine_key(const uchar *ptr, size_t *plen,
*/ */
TABLE *open_proc_table_for_read(THD *thd, Open_tables_state *backup); TABLE *open_proc_table_for_read(THD *thd, Open_tables_state *backup);
sp_head *
sp_load_for_information_schema(THD *thd, TABLE *proc_table, String *db,
String *name, ulong sql_mode, int type,
const char *returns, const char *params,
bool *free_sp_head);
#endif /* _SP_H_ */ #endif /* _SP_H_ */
...@@ -469,6 +469,7 @@ public: ...@@ -469,6 +469,7 @@ public:
lex->set_stmt_unsafe(); lex->set_stmt_unsafe();
} }
sp_pcontext *get_parse_context() { return m_pcont; }
private: private:
......
...@@ -108,10 +108,6 @@ static int open_unireg_entry(THD *thd, TABLE *entry, TABLE_LIST *table_list, ...@@ -108,10 +108,6 @@ static int open_unireg_entry(THD *thd, TABLE *entry, TABLE_LIST *table_list,
char *cache_key, uint cache_key_length, char *cache_key, uint cache_key_length,
MEM_ROOT *mem_root, uint flags); MEM_ROOT *mem_root, uint flags);
static void free_cache_entry(TABLE *entry); static void free_cache_entry(TABLE *entry);
static bool open_new_frm(THD *thd, TABLE_SHARE *share, const char *alias,
uint db_stat, uint prgflag,
uint ha_open_flags, TABLE *outparam,
TABLE_LIST *table_desc, MEM_ROOT *mem_root);
static void close_old_data_files(THD *thd, TABLE *table, bool morph_locks, static void close_old_data_files(THD *thd, TABLE *table, bool morph_locks,
bool send_refresh); bool send_refresh);
static bool static bool
...@@ -8667,7 +8663,7 @@ int init_ftfuncs(THD *thd, SELECT_LEX *select_lex, bool no_order) ...@@ -8667,7 +8663,7 @@ int init_ftfuncs(THD *thd, SELECT_LEX *select_lex, bool no_order)
mem_root temporary MEM_ROOT for parsing mem_root temporary MEM_ROOT for parsing
*/ */
static bool bool
open_new_frm(THD *thd, TABLE_SHARE *share, const char *alias, open_new_frm(THD *thd, TABLE_SHARE *share, const char *alias,
uint db_stat, uint prgflag, uint db_stat, uint prgflag,
uint ha_open_flags, TABLE *outparam, TABLE_LIST *table_desc, uint ha_open_flags, TABLE *outparam, TABLE_LIST *table_desc,
......
...@@ -5412,7 +5412,7 @@ check_table_access(THD *thd, ulong requirements,TABLE_LIST *tables, ...@@ -5412,7 +5412,7 @@ check_table_access(THD *thd, ulong requirements,TABLE_LIST *tables,
DBUG_PRINT("info", ("derived: %d view: %d", tables->derived != 0, DBUG_PRINT("info", ("derived: %d view: %d", tables->derived != 0,
tables->view != 0)); tables->view != 0));
if (tables->is_anonymous_derived_table() || if (tables->is_anonymous_derived_table() ||
(tables->table && tables->table->s && (tables->table && (int)tables->table->s &&
(int)tables->table->s->tmp_table)) (int)tables->table->s->tmp_table))
continue; continue;
thd->security_ctx= sctx; thd->security_ctx= sctx;
......
This diff is collapsed.
...@@ -1199,6 +1199,7 @@ bool Table_triggers_list::check_n_load(THD *thd, const char *db, ...@@ -1199,6 +1199,7 @@ bool Table_triggers_list::check_n_load(THD *thd, const char *db,
DBUG_RETURN(1); // EOM DBUG_RETURN(1); // EOM
} }
if (!thd->no_warnings_for_error)
push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_WARN, push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_WARN,
ER_TRG_NO_CREATION_CTX, ER_TRG_NO_CREATION_CTX,
ER(ER_TRG_NO_CREATION_CTX), ER(ER_TRG_NO_CREATION_CTX),
...@@ -1332,7 +1333,7 @@ bool Table_triggers_list::check_n_load(THD *thd, const char *db, ...@@ -1332,7 +1333,7 @@ bool Table_triggers_list::check_n_load(THD *thd, const char *db,
MySQL, which does not support triggers definers. We should emit MySQL, which does not support triggers definers. We should emit
warning here. warning here.
*/ */
if (!thd->no_warnings_for_error)
push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_WARN, push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_WARN,
ER_TRG_NO_DEFINER, ER(ER_TRG_NO_DEFINER), ER_TRG_NO_DEFINER, ER(ER_TRG_NO_DEFINER),
(const char*) db, (const char*) db,
......
...@@ -1123,8 +1123,18 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table, ...@@ -1123,8 +1123,18 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table,
table->db, table->table_name); table->db, table->table_name);
get_default_definer(thd, &table->definer); get_default_definer(thd, &table->definer);
} }
/*
Initialize view definition context by character set names loaded from
the view definition file. Use UTF8 character set if view definition
file is of old version and does not contain the character set names.
*/
table->view_creation_ctx= View_creation_ctx::create(thd, table);
if (flags & OPEN_VIEW_NO_PARSE) if (flags & OPEN_VIEW_NO_PARSE)
{ {
if (arena)
thd->restore_active_arena(arena, &backup);
DBUG_RETURN(FALSE); DBUG_RETURN(FALSE);
} }
...@@ -1139,13 +1149,6 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table, ...@@ -1139,13 +1149,6 @@ bool mysql_make_view(THD *thd, File_parser *parser, TABLE_LIST *table,
/*TODO: md5 test here and warning if it is differ */ /*TODO: md5 test here and warning if it is differ */
/*
Initialize view definition context by character set names loaded from
the view definition file. Use UTF8 character set if view definition
file is of old version and does not contain the character set names.
*/
table->view_creation_ctx= View_creation_ctx::create(thd, table);
/* /*
TODO: TABLE mem root should be used here when VIEW will be stored in TODO: TABLE mem root should be used here when VIEW will be stored in
......
...@@ -194,6 +194,11 @@ ...@@ -194,6 +194,11 @@
*/ */
#define OPTIMIZE_I_S_TABLE OPEN_VIEW_FULL*2 #define OPTIMIZE_I_S_TABLE OPEN_VIEW_FULL*2
/*
The flag means that we need to process trigger files only.
*/
#define OPEN_TRIGGER_ONLY OPTIMIZE_I_S_TABLE*2
#define SC_INFO_LENGTH 4 /* Form format constant */ #define SC_INFO_LENGTH 4 /* Form format constant */
#define TE_INFO_LENGTH 3 #define TE_INFO_LENGTH 3
#define MTYP_NOEMPTY_BIT 128 #define MTYP_NOEMPTY_BIT 128
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment