~linuxjedi/drizzle/trunk-bug-667053

« back to all changes in this revision

Viewing changes to mysql-test/suite/funcs_1/storedproc/load_sp_tb.inc

  • 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
let $message= --source suite/funcs_1/storedproc/load_sp_tb.inc;
 
2
--source include/show_msg80.inc
 
3
 
 
4
# ==============================================================================
 
5
#
 
6
#  this load script can be called multiple times inside a test script because it
 
7
#  first cleans up all objects that will be created.
 
8
#  therefore the same script is used as it will be used at the end of a test.
 
9
#
 
10
# ==============================================================================
 
11
 
 
12
--disable_abort_on_error
 
13
--enable_query_log
 
14
 
 
15
# use the same .inc to cleanup before and after the test
 
16
--source suite/funcs_1/storedproc/cleanup_sp_tb.inc
 
17
 
 
18
CREATE DATABASE db_storedproc;
 
19
CREATE DATABASE db_storedproc_1;
 
20
 
 
21
USE db_storedproc;
 
22
 
 
23
eval create table t1(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = $engine_type;
 
24
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 
25
eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t1;
 
26
 
 
27
eval create table t2(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = $engine_type;
 
28
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 
29
eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t2;
 
30
 
 
31
eval create table t3(f1 char(20),f2 char(20),f3 integer) engine = $engine_type;
 
32
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 
33
eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t3.txt' into table t3;
 
34
 
 
35
eval create table t4(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = $engine_type;
 
36
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 
37
eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t4;
 
38
 
 
39
USE db_storedproc_1;
 
40
 
 
41
eval create table t6(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = $engine_type;
 
42
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 
43
eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t6;
 
44
 
 
45
USE db_storedproc;
 
46
 
 
47
eval create table t7 (f1 char(20), f2 char(25), f3 date, f4 int) engine = $engine_type;
 
48
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 
49
eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t7.txt' into table t7;
 
50
 
 
51
eval create table t8 (f1 char(20), f2 char(25), f3 date, f4 int) engine = $engine_type;
 
52
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 
53
eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t7.txt' into table t8;
 
54
 
 
55
eval create table t9(f1 int, f2 char(25), f3 int) engine = $engine_type;
 
56
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 
57
eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t9.txt' into table t9;
 
58
 
 
59
eval create table t10(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = $engine_type;
 
60
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 
61
eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t10;
 
62
 
 
63
eval create table t11(f1 char(20),f2 char(25),f3 date,f4 int,f5 char(25),f6 int) engine = $engine_type;
 
64
--replace_result $MYSQL_TEST_DIR MYSQL_TEST_DIR
 
65
eval load data infile '$MYSQL_TEST_DIR/suite/funcs_1/data/t4.txt' into table t11;