mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-27 05:56:07 +03:00 
			
		
		
		
	BitKeeper/deleted/.del-rpl_bug33931-slave.opt: Delete: mysql-test/suite/rpl/t/rpl_bug33931-slave.opt mysql-test/include/default_mysqld.cnf: Set a default name for "log-bin" mysql-test/mysql-test-run.pl: Check for warnings in mysqld error log files after each testcase, using SQL mysql-test/lib/mtr_cases.pm: Make mtr_match into a perl module mysql-test/lib/mtr_match.pm: Make mtr_match into a perl module mysql-test/lib/mtr_report.pm: Make mtr_match into a perl module Print warnings if testcase failed from warnings mysql-test/r/information_schema.result: Be more selective which databases and tables are select in the queries mysql-test/r/mysql_upgrade.result: Update result, mysql_upgrade will check _all_ databases mysql-test/r/mysqlcheck.result: Update result, mysql_upgrade should check _all_ databases mysql-test/r/sp-destruct.result: Be more selective which databases and tables are select in the queries mysql-test/r/sp-error.result: Backup and restore mysql.proc table mysql-test/r/sp-security.result: Be more selective which databases and tables are select in the queries mysql-test/r/sp.result: Be more selective which databases and tables are select in the queries mysql-test/suite/rpl/r/rpl_bug33931.result: Move the setting of debug flag into the test file instead of in -slave.opt Add supression mysql-test/suite/rpl/r/rpl_idempotency.result: Add supression Add master-slave-end.inc mysql-test/suite/rpl/t/rpl_bug33931.test: Move the setting of debug flag into the test file instead of in -slave.opt Add supression mysql-test/suite/rpl/t/rpl_idempotency.test: Add supression Add master-slave-end.inc mysql-test/t/information_schema.test: Be more selective which databases and tables are select in the queries mysql-test/t/sp-destruct.test: Be more selective which databases and tables are select in the queries mysql-test/t/sp-error.test: Backup and restore mysql.proc table mysql-test/t/sp-security.test: Be more selective which databases and tables are select in the queries mysql-test/t/sp.test: Be more selective which databases and tables are select in the queries mysql-test/include/check-warnings.test: New BitKeeper file ``mysql-test/include/check-warnings.test'' mysql-test/include/mtr_warnings.sql: New BitKeeper file ``mysql-test/include/mtr_warnings.sql''
		
			
				
	
	
		
			91 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			91 lines
		
	
	
		
			3.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| use test;
 | |
| drop procedure if exists bug14233;
 | |
| drop function if exists bug14233;
 | |
| drop table if exists t1;
 | |
| drop view if exists v1;
 | |
| create procedure bug14233()
 | |
| set @x = 42;
 | |
| create function bug14233_f() returns int
 | |
| return 42;
 | |
| create table t1 (id int);
 | |
| create trigger t1_ai after insert on t1 for each row call bug14233();
 | |
| alter table mysql.proc drop type;
 | |
| call bug14233();
 | |
| ERROR HY000: Failed to load routine test.bug14233. The table mysql.proc is missing, corrupt, or contains bad data (internal code -5)
 | |
| create view v1 as select bug14233_f();
 | |
| ERROR HY000: Failed to load routine test.bug14233_f. The table mysql.proc is missing, corrupt, or contains bad data (internal code -5)
 | |
| insert into t1 values (0);
 | |
| ERROR HY000: Failed to load routine test.bug14233. The table mysql.proc is missing, corrupt, or contains bad data (internal code -5)
 | |
| flush table mysql.proc;
 | |
| call bug14233();
 | |
| ERROR HY000: Incorrect information in file: './mysql/proc.frm'
 | |
| create view v1 as select bug14233_f();
 | |
| ERROR HY000: Incorrect information in file: './mysql/proc.frm'
 | |
| insert into t1 values (0);
 | |
| ERROR HY000: Incorrect information in file: './mysql/proc.frm'
 | |
| flush table mysql.proc;
 | |
| call bug14233();
 | |
| ERROR 42S02: Table 'mysql.proc' doesn't exist
 | |
| create view v1 as select bug14233_f();
 | |
| ERROR 42S02: Table 'mysql.proc' doesn't exist
 | |
| insert into t1 values (0);
 | |
| ERROR 42S02: Table 'mysql.proc' doesn't exist
 | |
| flush table mysql.proc;
 | |
| flush privileges;
 | |
| delete from mysql.proc where name like 'bug14233%';
 | |
| insert into mysql.proc
 | |
| (
 | |
| db, name, type, specific_name, language, sql_data_access, is_deterministic,
 | |
| security_type, param_list, returns, body, definer, created, modified,
 | |
| sql_mode, comment, character_set_client, collation_connection, db_collation,
 | |
| body_utf8
 | |
| )
 | |
| values
 | |
| (
 | |
| 'test', 'bug14233_1', 'FUNCTION', 'bug14233_1', 'SQL', 'READS_SQL_DATA', 'NO',
 | |
| 'DEFINER', '', 'int(10)',
 | |
| 'select count(*) from mysql.user',
 | |
| 'root@localhost', NOW() , '0000-00-00 00:00:00', '', '',
 | |
| '', '', '',
 | |
| 'select count(*) from mysql.user'
 | |
| ),
 | |
| (
 | |
| 'test', 'bug14233_2', 'FUNCTION', 'bug14233_2', 'SQL', 'READS_SQL_DATA', 'NO',
 | |
| 'DEFINER', '', 'int(10)',
 | |
| 'begin declare x int; select count(*) into x from mysql.user; end',
 | |
| 'root@localhost', NOW() , '0000-00-00 00:00:00', '', '',
 | |
| '', '', '',
 | |
| 'begin declare x int; select count(*) into x from mysql.user; end'
 | |
| ),
 | |
| (
 | |
| 'test', 'bug14233_3', 'PROCEDURE', 'bug14233_3', 'SQL', 'READS_SQL_DATA','NO',
 | |
| 'DEFINER', '', '',
 | |
| 'alksj wpsj sa ^#!@ ',
 | |
| 'root@localhost', NOW() , '0000-00-00 00:00:00', '', '',
 | |
| '', '', '',
 | |
| 'alksj wpsj sa ^#!@ '
 | |
| );
 | |
| select bug14233_1();
 | |
| ERROR HY000: Failed to load routine test.bug14233_1. The table mysql.proc is missing, corrupt, or contains bad data (internal code -6)
 | |
| create view v1 as select bug14233_1();
 | |
| ERROR HY000: Failed to load routine test.bug14233_1. The table mysql.proc is missing, corrupt, or contains bad data (internal code -6)
 | |
| select bug14233_2();
 | |
| ERROR HY000: Failed to load routine test.bug14233_2. The table mysql.proc is missing, corrupt, or contains bad data (internal code -6)
 | |
| create view v1 as select bug14233_2();
 | |
| ERROR HY000: Failed to load routine test.bug14233_2. The table mysql.proc is missing, corrupt, or contains bad data (internal code -6)
 | |
| call bug14233_3();
 | |
| ERROR HY000: Failed to load routine test.bug14233_3. The table mysql.proc is missing, corrupt, or contains bad data (internal code -6)
 | |
| drop trigger t1_ai;
 | |
| create trigger t1_ai after insert on t1 for each row call bug14233_3();
 | |
| insert into t1 values (0);
 | |
| ERROR HY000: Failed to load routine test.bug14233_3. The table mysql.proc is missing, corrupt, or contains bad data (internal code -6)
 | |
| drop trigger t1_ai;
 | |
| drop table t1;
 | |
| drop function bug14233_1;
 | |
| drop function bug14233_2;
 | |
| drop procedure bug14233_3;
 | |
| show procedure status where db=DATABASE();
 | |
| Db	Name	Type	Definer	Modified	Created	Security_type	Comment	character_set_client	collation_connection	Database Collation
 | |
| show function status where db=DATABASE();
 | |
| Db	Name	Type	Definer	Modified	Created	Security_type	Comment	character_set_client	collation_connection	Database Collation
 |