~vkolesnikov/pbxt/pbxt-07-diskfull

« back to all changes in this revision

Viewing changes to pbxt/mysql-test-update/mysql-test/t/help.test

  • Committer: paul-mccullagh
  • Date: 2006-10-23 09:14:04 UTC
  • Revision ID: paul-mccullagh-918861e03d351978a9541168a96e58cc826734ee
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#      category:                     topic:               keyword:
 
2
#
 
3
# impossible_category_1
 
4
#                            impossible_function_1
 
5
#                                                   impossible_function_5 
 
6
#                            impossible_function_2
 
7
#                                                   impossible_function_1
 
8
# impossible_category_2
 
9
#                            impossible_function_3
 
10
#                                                   impossible_function_6                                            
 
11
#                            impossible_function_4
 
12
#                                                   impossible_function_6
 
13
#      impossible_category_3
 
14
#                            impossible_function_7 
 
15
 
 
16
insert into mysql.help_category(help_category_id,name)values(1,'impossible_category_1');
 
17
select @category1_id:= 1;
 
18
insert into mysql.help_category(help_category_id,name)values(2,'impossible_category_2');
 
19
select @category2_id:= 2;
 
20
insert into mysql.help_category(help_category_id,name,parent_category_id)values(3,'impossible_category_3',@category2_id);
 
21
select @category3_id:= 3;
 
22
 
 
23
insert into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(1,'impossible_function_1',@category1_id,'description of \n impossible_function1\n','example of \n impossible_function1');
 
24
select @topic1_id:= 1;
 
25
insert into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(2,'impossible_function_2',@category1_id,'description of \n impossible_function2\n','example of \n impossible_function2');
 
26
select @topic2_id:= 2;
 
27
insert into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(3,'impossible_function_3',@category2_id,'description of \n impossible_function3\n','example of \n impossible_function3');
 
28
select @topic3_id:= 3;
 
29
insert into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(4,'impossible_function_4',@category2_id,'description of \n impossible_function4\n','example of \n impossible_function4');
 
30
select @topic4_id:= 4;
 
31
insert into mysql.help_topic(help_topic_id,name,help_category_id,description,example)values(5,'impossible_function_7',@category3_id,'description of \n impossible_function5\n','example of \n impossible_function7');
 
32
select @topic5_id:= 5;
 
33
 
 
34
insert into mysql.help_keyword(help_keyword_id,name)values(1,'impossible_function_1');
 
35
select @keyword1_id:= 1;
 
36
insert into mysql.help_keyword(help_keyword_id,name)values(2,'impossible_function_5');
 
37
select @keyword2_id:= 2;
 
38
insert into mysql.help_keyword(help_keyword_id,name)values(3,'impossible_function_6');
 
39
select @keyword3_id:= 3;
 
40
 
 
41
insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword1_id,@topic2_id);
 
42
insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword2_id,@topic1_id);
 
43
insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword3_id,@topic3_id);
 
44
insert into mysql.help_relation(help_keyword_id,help_topic_id)values(@keyword3_id,@topic4_id);
 
45
 
 
46
##############
 
47
help 'function_of_my_dream';
 
48
help '%possible_f%';
 
49
help 'impossible_func%';
 
50
help 'impossible_category%';
 
51
help 'impossible_%';
 
52
 
 
53
help '%function_1';
 
54
help '%function_2';
 
55
help '%function_3';
 
56
help '%function_4';
 
57
help '%function_5';
 
58
help '%function_6';
 
59
help '%function_7';
 
60
 
 
61
help '%category_2';
 
62
help 'impossible_function_1';
 
63
help 'impossible_category_1';
 
64
##############
 
65
 
 
66
--disable_warnings
 
67
alter table mysql.help_relation engine=innodb;
 
68
alter table mysql.help_keyword engine=innodb;
 
69
alter table mysql.help_topic engine=innodb;
 
70
alter table mysql.help_category engine=innodb;
 
71
--enable_warnings
 
72
 
 
73
##############
 
74
help 'function_of_my_dream';
 
75
help '%possible_f%';
 
76
help 'impossible_func%';
 
77
help 'impossible_category%';
 
78
help 'impossible_%';
 
79
 
 
80
help '%function_1';
 
81
help '%function_2';
 
82
help '%function_3';
 
83
help '%function_4';
 
84
help '%function_5';
 
85
help '%function_6';
 
86
help '%function_7';
 
87
 
 
88
help '%category_2';
 
89
help 'impossible_function_1';
 
90
help 'impossible_category_1';
 
91
##############
 
92
 
 
93
alter table mysql.help_relation engine=myisam;
 
94
alter table mysql.help_keyword engine=myisam;
 
95
alter table mysql.help_topic engine=myisam;
 
96
alter table mysql.help_category engine=myisam;
 
97
 
 
98
delete from mysql.help_topic where help_topic_id=@topic1_id;
 
99
delete from mysql.help_topic where help_topic_id=@topic2_id;
 
100
delete from mysql.help_topic where help_topic_id=@topic3_id;
 
101
delete from mysql.help_topic where help_topic_id=@topic4_id;
 
102
delete from mysql.help_topic where help_topic_id=@topic5_id;
 
103
 
 
104
delete from mysql.help_category where help_category_id=@category3_id;
 
105
delete from mysql.help_category where help_category_id=@category2_id;
 
106
delete from mysql.help_category where help_category_id=@category1_id;
 
107
 
 
108
delete from mysql.help_keyword where help_keyword_id=@keyword1_id;
 
109
delete from mysql.help_keyword where help_keyword_id=@keyword2_id;
 
110
delete from mysql.help_keyword where help_keyword_id=@keyword3_id;
 
111
 
 
112
delete from mysql.help_relation where help_keyword_id=@keyword1_id and help_topic_id=@topic2_id;
 
113
delete from mysql.help_relation where help_keyword_id=@keyword2_id and help_topic_id=@topic1_id;
 
114
delete from mysql.help_relation where help_keyword_id=@keyword3_id and help_topic_id=@topic3_id;
 
115
delete from mysql.help_relation where help_keyword_id=@keyword3_id and help_topic_id=@topic4_id;
 
116
 
 
117
# End of 4.1 tests