mirror of
				https://github.com/MariaDB/server.git
				synced 2025-10-31 15:50:51 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			69 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			69 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| let $message= --source suite/funcs_1/storedproc/load_sp_tb.inc;
 | |
| --source include/show_msg80.inc
 | |
| 
 | |
| # ==============================================================================
 | |
| #
 | |
| #  this load script can be called multiple times inside a test script because it
 | |
| #  first cleans up all objects that will be created.
 | |
| #  therefore the same script is used as it will be used at the end of a test.
 | |
| #
 | |
| # ==============================================================================
 | |
| 
 | |
| --disable_abort_on_error
 | |
| --enable_query_log
 | |
| 
 | |
| SET @@global.max_heap_table_size=4294967295;
 | |
| SET @@session.max_heap_table_size=4294967295;
 | |
| 
 | |
| # use the same .inc to cleanup before and after the test
 | |
| --source suite/funcs_1/storedproc/cleanup_sp_tb.inc
 | |
| 
 | |
| CREATE DATABASE db_storedproc;
 | |
| CREATE DATABASE db_storedproc_1;
 | |
| 
 | |
| USE db_storedproc;
 | |
| 
 | |
| eval create table t1(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = $engine_type;
 | |
| --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 | |
| eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t1;
 | |
| 
 | |
| eval create table t2(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = $engine_type;
 | |
| --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 | |
| eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t2;
 | |
| 
 | |
| eval create table t3(f1 char(20),f2 char(20),f3 integer) engine = $engine_type;
 | |
| --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 | |
| eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t3.txt' into table t3;
 | |
| 
 | |
| eval create table t4(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = $engine_type;
 | |
| --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 | |
| eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t4;
 | |
| 
 | |
| USE db_storedproc_1;
 | |
| 
 | |
| eval create table t6(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = $engine_type;
 | |
| --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 | |
| eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t6;
 | |
| 
 | |
| USE db_storedproc;
 | |
| 
 | |
| eval create table t7 (f1 char(20), f2 char(25), f3 date, f4 int) engine = $engine_type;
 | |
| --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 | |
| eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t7.txt' into table t7;
 | |
| 
 | |
| eval create table t8 (f1 char(20), f2 char(25), f3 date, f4 int) engine = $engine_type;
 | |
| --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 | |
| eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t7.txt' into table t8;
 | |
| 
 | |
| eval create table t9(f1 int, f2 char(25), f3 int) engine = $engine_type;
 | |
| --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 | |
| eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t9.txt' into table t9;
 | |
| 
 | |
| eval create table t10(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = $engine_type;
 | |
| --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 | |
| eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t10;
 | |
| 
 | |
| eval create table t11(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = $engine_type;
 | |
| --replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 | |
| eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t11;
 | 
