joinfix 0.1.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +157 -85
- data/Rakefile +38 -0
- data/TEST_README +45 -44
- data/lib/joinfix/error.rb +220 -0
- data/lib/joinfix/fixture.rb +3 -4
- data/lib/joinfix/fixtures.rb +107 -145
- data/lib/joinfix/fixtures_class.rb +51 -97
- data/lib/joinfix.rb +118 -84
- data/rails/app/models/group.rb +3 -3
- data/rails/db/migrate/004_create_users.rb +1 -1
- data/rails/db/schema.rb +1 -1
- data/rails/log/development.log +409 -57
- data/rails/log/test.log +350 -23
- data/rails/test/fixtures/groups.yml +2 -1
- data/rails/test/fixtures/users.yml +27 -19
- data/rails/test/unit/user_test.rb +25 -4
- data/test/has_many_test.rb +16 -0
- data/test/joinfix_test.rb +6 -69
- data/test/joinfix_test_suite.rb +1 -1
- metadata +9 -5
- data/test/todo +0 -15
data/rails/log/test.log
CHANGED
@@ -1,4 +1,11 @@
|
|
1
|
-
# Logfile created on
|
1
|
+
# Logfile created on Fri May 11 18:06:54 Mountain Daylight Time 2007 by logger.rb/1.5.2.7
|
2
|
+
[4;36;1mSQL (0.015000)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
3
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
4
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
5
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
6
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
7
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
8
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
2
9
|
[4;36;1mSQL (0.000000)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
3
10
|
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
4
11
|
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
@@ -6,7 +13,7 @@
|
|
6
13
|
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
7
14
|
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
8
15
|
[4;36;1mNestedChild Load (0.000000)[0m [0;1mSELECT * FROM nested_children WHERE (nested_children.`id` = 1) [0m
|
9
|
-
[4;35;1mNestedChild Load (0.
|
16
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.`field` = 3) LIMIT 1[0m
|
10
17
|
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
11
18
|
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
12
19
|
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 4) [0m
|
@@ -21,22 +28,22 @@
|
|
21
28
|
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 2) [0m
|
22
29
|
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`field` = 1) LIMIT 1[0m
|
23
30
|
[4;35;1mInnerChild Load (0.000000)[0m [0mSELECT * FROM inner_children WHERE (inner_children.`id` = 3) [0m
|
24
|
-
[4;36;1mNestedChild Load (0.
|
31
|
+
[4;36;1mNestedChild Load (0.000000)[0m [0;1mSELECT * FROM nested_children WHERE (nested_children.`id` = 3) [0m
|
25
32
|
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 1) [0m
|
26
33
|
[4;36;1mInnerChild Load (0.000000)[0m [0;1mSELECT * FROM inner_children WHERE (inner_children.`field` = 3) LIMIT 1[0m
|
27
34
|
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 1) [0m
|
28
35
|
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
29
36
|
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
30
|
-
[4;36;1mSQL (0.
|
37
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
31
38
|
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
32
39
|
[4;36;1mUser Load (0.000000)[0m [0;1mSELECT * FROM users WHERE (users.`id` = 2) [0m
|
33
|
-
[4;35;1mGroup Load (0.
|
40
|
+
[4;35;1mGroup Load (0.000000)[0m [0mSELECT groups.* FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 2)) [0m
|
34
41
|
[4;36;1mUser Load (0.000000)[0m [0;1mSELECT * FROM users WHERE (users.`login` = 'jane') LIMIT 1[0m
|
35
42
|
[4;35;1mSQL (0.000000)[0m [0mSELECT count(*) AS count_all FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 3)) [0m
|
36
43
|
[4;36;1mUserGroup Load (0.000000)[0m [0;1mSELECT * FROM user_groups WHERE (user_groups.`id` = 2) [0m
|
37
44
|
[4;35;1mUserGroup Load (0.000000)[0m [0mSELECT * FROM user_groups WHERE (user_groups.`id` = 2) [0m
|
38
45
|
[4;36;1mUser Load (0.000000)[0m [0;1mSELECT * FROM users WHERE (users.`id` = 3) [0m
|
39
|
-
[4;35;1mUser Load (0.
|
46
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`id` = 1) [0m
|
40
47
|
[4;36;1mUser Load (0.000000)[0m [0;1mSELECT * FROM users WHERE (users.`login` = 'sam') LIMIT 1[0m
|
41
48
|
[4;35;1mGroup Load (0.000000)[0m [0mSELECT groups.* FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 1)) AND (groups.`name` = 'movers') LIMIT 1[0m
|
42
49
|
[4;36;1mUser Load (0.000000)[0m [0;1mSELECT users.* FROM users INNER JOIN user_groups ON users.id = user_groups.user_id WHERE ((user_groups.group_id = 3)) [0m
|
@@ -47,10 +54,44 @@
|
|
47
54
|
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
48
55
|
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
49
56
|
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
50
|
-
[4;36;1mNestedChild
|
51
|
-
[4;35;1mNestedChild Load (0.
|
57
|
+
[4;36;1mNestedChild Columns (0.047000)[0m [0;1mSHOW FIELDS FROM nested_children[0m
|
58
|
+
[4;35;1mNestedChild Load (0.031000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.`id` = 1) [0m
|
59
|
+
[4;36;1mNestedChild Load (0.000000)[0m [0;1mSELECT * FROM nested_children WHERE (nested_children.`field` = 3) LIMIT 1[0m
|
60
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
61
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
62
|
+
[4;35;1mNestedParent Columns (0.016000)[0m [0mSHOW FIELDS FROM nested_parents[0m
|
63
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 4) [0m
|
64
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 1) [0m
|
65
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 3) [0m
|
66
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 2) [0m
|
67
|
+
[4;36;1mNestedChild Load (0.015000)[0m [0;1mSELECT * FROM nested_children WHERE (nested_children.`field` = 1) LIMIT 1[0m
|
68
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 4) [0m
|
69
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`field` = 1) LIMIT 1[0m
|
70
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.nested_parent_id = 4) [0m
|
71
|
+
[4;36;1mInnerChild Load (0.000000)[0m [0;1mSELECT * FROM inner_children WHERE (inner_children.nested_child_id = 2) [0m
|
72
|
+
[4;35;1mInnerChild Columns (0.000000)[0m [0mSHOW FIELDS FROM inner_children[0m
|
73
|
+
[4;36;1mNestedParent Load (0.016000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 2) [0m
|
74
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`field` = 1) LIMIT 1[0m
|
75
|
+
[4;36;1mInnerChild Load (0.000000)[0m [0;1mSELECT * FROM inner_children WHERE (inner_children.`id` = 3) [0m
|
76
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.`id` = 3) [0m
|
77
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 1) [0m
|
78
|
+
[4;35;1mInnerChild Load (0.000000)[0m [0mSELECT * FROM inner_children WHERE (inner_children.`field` = 3) LIMIT 1[0m
|
79
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 1) [0m
|
80
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
81
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
82
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
83
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
84
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
85
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
86
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
52
87
|
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
53
88
|
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
89
|
+
[4;36;1mNestedChild Columns (0.016000)[0m [0;1mSHOW FIELDS FROM nested_children[0m
|
90
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.`id` = 1) [0m
|
91
|
+
[4;36;1mNestedChild Load (0.000000)[0m [0;1mSELECT * FROM nested_children WHERE (nested_children.`field` = 3) LIMIT 1[0m
|
92
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
93
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
94
|
+
[4;35;1mNestedParent Columns (0.000000)[0m [0mSHOW FIELDS FROM nested_parents[0m
|
54
95
|
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 4) [0m
|
55
96
|
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 1) [0m
|
56
97
|
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 3) [0m
|
@@ -59,27 +100,313 @@
|
|
59
100
|
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 4) [0m
|
60
101
|
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`field` = 1) LIMIT 1[0m
|
61
102
|
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.nested_parent_id = 4) [0m
|
62
|
-
[4;36;1mInnerChild Load (0.
|
63
|
-
[4;35;
|
103
|
+
[4;36;1mInnerChild Load (0.000000)[0m [0;1mSELECT * FROM inner_children WHERE (inner_children.nested_child_id = 2) [0m
|
104
|
+
[4;35;1mInnerChild Columns (0.000000)[0m [0mSHOW FIELDS FROM inner_children[0m
|
105
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 2) [0m
|
106
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`field` = 1) LIMIT 1[0m
|
107
|
+
[4;36;1mInnerChild Load (0.000000)[0m [0;1mSELECT * FROM inner_children WHERE (inner_children.`id` = 3) [0m
|
108
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.`id` = 3) [0m
|
109
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 1) [0m
|
110
|
+
[4;35;1mInnerChild Load (0.000000)[0m [0mSELECT * FROM inner_children WHERE (inner_children.`field` = 3) LIMIT 1[0m
|
111
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 1) [0m
|
112
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
113
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
114
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
115
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
116
|
+
[4;35;1mSQL (0.015000)[0m [0mROLLBACK[0m
|
117
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
118
|
+
[4;35;1mUser Columns (0.000000)[0m [0mSHOW FIELDS FROM users[0m
|
119
|
+
[4;36;1mUser Load (0.000000)[0m [0;1mSELECT * FROM users WHERE (users.`id` = 1) [0m
|
120
|
+
[4;35;1mGroup Load (0.000000)[0m [0mSELECT groups.* FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 1)) [0m
|
121
|
+
[4;36;1mGroup Columns (0.016000)[0m [0;1mSHOW FIELDS FROM groups[0m
|
122
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`full_name` = 'Jane Doe') LIMIT 1[0m
|
123
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSELECT count(*) AS count_all FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 3)) [0m
|
124
|
+
[4;35;1mUserGroup Columns (0.015000)[0m [0mSHOW FIELDS FROM user_groups[0m
|
125
|
+
[4;36;1mUserGroup Load (0.000000)[0m [0;1mSELECT * FROM user_groups WHERE (user_groups.`id` = 3) [0m
|
126
|
+
[4;35;1mUserGroup Load (0.000000)[0m [0mSELECT * FROM user_groups WHERE (user_groups.`id` = 3) [0m
|
127
|
+
[4;36;1mGroup Load (0.000000)[0m [0;1mSELECT * FROM groups WHERE (groups.`id` = 2) [0m
|
128
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
129
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
130
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`id` = 2) [0m
|
131
|
+
[4;36;1mGroup Load (0.000000)[0m [0;1mSELECT groups.* FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 2)) [0m
|
132
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`full_name` = 'Jane Doe Nested') LIMIT 1[0m
|
133
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSELECT count(*) AS count_all FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 30)) [0m
|
134
|
+
[4;35;1mUserGroup Load (0.000000)[0m [0mSELECT * FROM user_groups WHERE (user_groups.`id` = 4) [0m
|
135
|
+
[4;36;1mUserGroup Load (0.000000)[0m [0;1mSELECT * FROM user_groups WHERE (user_groups.`id` = 4) [0m
|
136
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`id` = 30) [0m
|
137
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
138
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
139
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
140
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
141
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
142
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
143
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
144
|
+
[4;36;1mNestedChild Columns (0.015000)[0m [0;1mSHOW FIELDS FROM nested_children[0m
|
145
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.`id` = 1) [0m
|
146
|
+
[4;36;1mNestedChild Load (0.000000)[0m [0;1mSELECT * FROM nested_children WHERE (nested_children.`field` = 3) LIMIT 1[0m
|
147
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
148
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
149
|
+
[4;35;1mNestedParent Columns (0.000000)[0m [0mSHOW FIELDS FROM nested_parents[0m
|
150
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 4) [0m
|
151
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 1) [0m
|
152
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 3) [0m
|
153
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 2) [0m
|
154
|
+
[4;36;1mNestedChild Load (0.000000)[0m [0;1mSELECT * FROM nested_children WHERE (nested_children.`field` = 1) LIMIT 1[0m
|
155
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 4) [0m
|
64
156
|
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`field` = 1) LIMIT 1[0m
|
65
|
-
[4;35;
|
66
|
-
[4;36;
|
157
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.nested_parent_id = 4) [0m
|
158
|
+
[4;36;1mInnerChild Load (0.000000)[0m [0;1mSELECT * FROM inner_children WHERE (inner_children.nested_child_id = 2) [0m
|
159
|
+
[4;35;1mInnerChild Columns (0.000000)[0m [0mSHOW FIELDS FROM inner_children[0m
|
160
|
+
[4;36;1mNestedParent Load (0.016000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 2) [0m
|
161
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`field` = 1) LIMIT 1[0m
|
162
|
+
[4;36;1mInnerChild Load (0.000000)[0m [0;1mSELECT * FROM inner_children WHERE (inner_children.`id` = 3) [0m
|
163
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.`id` = 3) [0m
|
164
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 1) [0m
|
165
|
+
[4;35;1mInnerChild Load (0.000000)[0m [0mSELECT * FROM inner_children WHERE (inner_children.`field` = 3) LIMIT 1[0m
|
166
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 1) [0m
|
167
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
168
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
169
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
170
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
171
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
172
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
173
|
+
[4;35;1mUser Columns (0.000000)[0m [0mSHOW FIELDS FROM users[0m
|
174
|
+
[4;36;1mUser Load (0.000000)[0m [0;1mSELECT * FROM users WHERE (users.`id` = 1) [0m
|
175
|
+
[4;35;1mGroup Load (0.000000)[0m [0mSELECT groups.* FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 1)) [0m
|
176
|
+
[4;36;1mGroup Columns (0.015000)[0m [0;1mSHOW FIELDS FROM groups[0m
|
177
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`full_name` = 'Jane Doe') LIMIT 1[0m
|
178
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSELECT count(*) AS count_all FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 2)) [0m
|
179
|
+
[4;35;1mUserGroup Columns (0.016000)[0m [0mSHOW FIELDS FROM user_groups[0m
|
180
|
+
[4;36;1mUserGroup Load (0.000000)[0m [0;1mSELECT * FROM user_groups WHERE (user_groups.`id` = 3) [0m
|
181
|
+
[4;35;1mUserGroup Load (0.000000)[0m [0mSELECT * FROM user_groups WHERE (user_groups.`id` = 3) [0m
|
182
|
+
[4;36;1mGroup Load (0.000000)[0m [0;1mSELECT * FROM groups WHERE (groups.`id` = 1) [0m
|
183
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
184
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
185
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`id` = 4) [0m
|
186
|
+
[4;36;1mGroup Load (0.000000)[0m [0;1mSELECT groups.* FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 4)) [0m
|
187
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`full_name` = 'Jane Doe Nested') LIMIT 1[0m
|
188
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSELECT count(*) AS count_all FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 3)) [0m
|
189
|
+
[4;35;1mUserGroup Load (0.000000)[0m [0mSELECT * FROM user_groups WHERE (user_groups.`id` = 4) [0m
|
190
|
+
[4;36;1mUserGroup Load (0.000000)[0m [0;1mSELECT * FROM user_groups WHERE (user_groups.`id` = 4) [0m
|
191
|
+
[4;35;1mGroup Load (0.000000)[0m [0mSELECT * FROM groups WHERE (groups.`id` = 2) [0m
|
192
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
193
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
194
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
195
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
196
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
197
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
198
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
199
|
+
[4;36;1mNestedChild Columns (0.016000)[0m [0;1mSHOW FIELDS FROM nested_children[0m
|
200
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.`id` = 1) [0m
|
201
|
+
[4;36;1mNestedChild Load (0.000000)[0m [0;1mSELECT * FROM nested_children WHERE (nested_children.`field` = 3) LIMIT 1[0m
|
202
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
203
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
204
|
+
[4;35;1mNestedParent Columns (0.000000)[0m [0mSHOW FIELDS FROM nested_parents[0m
|
205
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 4) [0m
|
67
206
|
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 1) [0m
|
68
|
-
[4;36;
|
69
|
-
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents
|
207
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 3) [0m
|
208
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 2) [0m
|
209
|
+
[4;36;1mNestedChild Load (0.000000)[0m [0;1mSELECT * FROM nested_children WHERE (nested_children.`field` = 1) LIMIT 1[0m
|
210
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 4) [0m
|
211
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`field` = 1) LIMIT 1[0m
|
212
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.nested_parent_id = 4) [0m
|
213
|
+
[4;36;1mInnerChild Load (0.000000)[0m [0;1mSELECT * FROM inner_children WHERE (inner_children.nested_child_id = 2) [0m
|
214
|
+
[4;35;1mInnerChild Columns (0.000000)[0m [0mSHOW FIELDS FROM inner_children[0m
|
215
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 2) [0m
|
216
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`field` = 1) LIMIT 1[0m
|
217
|
+
[4;36;1mInnerChild Load (0.000000)[0m [0;1mSELECT * FROM inner_children WHERE (inner_children.`id` = 3) [0m
|
218
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.`id` = 3) [0m
|
219
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 1) [0m
|
220
|
+
[4;35;1mInnerChild Load (0.000000)[0m [0mSELECT * FROM inner_children WHERE (inner_children.`field` = 3) LIMIT 1[0m
|
221
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 1) [0m
|
222
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
223
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
224
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
225
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
226
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
227
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
228
|
+
[4;35;1mUser Columns (0.000000)[0m [0mSHOW FIELDS FROM users[0m
|
229
|
+
[4;36;1mUser Load (0.000000)[0m [0;1mSELECT * FROM users WHERE (users.`id` = 1) [0m
|
230
|
+
[4;35;1mGroup Load (0.000000)[0m [0mSELECT groups.* FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 1)) [0m
|
231
|
+
[4;36;1mGroup Columns (0.000000)[0m [0;1mSHOW FIELDS FROM groups[0m
|
232
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`full_name` = 'Jane Doe') LIMIT 1[0m
|
233
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSELECT count(*) AS count_all FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 2)) [0m
|
234
|
+
[4;35;1mUserGroup Columns (0.015000)[0m [0mSHOW FIELDS FROM user_groups[0m
|
235
|
+
[4;36;1mUserGroup Load (0.000000)[0m [0;1mSELECT * FROM user_groups WHERE (user_groups.`id` = 2) [0m
|
236
|
+
[4;35;1mUserGroup Load (0.000000)[0m [0mSELECT * FROM user_groups WHERE (user_groups.`id` = 2) [0m
|
237
|
+
[4;36;1mGroup Load (0.000000)[0m [0;1mSELECT * FROM groups WHERE (groups.`id` = 3) [0m
|
238
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
239
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
240
|
+
[4;35;1mUser Load (0.016000)[0m [0mSELECT * FROM users WHERE (users.`id` = 4) [0m
|
241
|
+
[4;36;1mGroup Load (0.000000)[0m [0;1mSELECT groups.* FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 4)) [0m
|
242
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`full_name` = 'Jane Doe Nested') LIMIT 1[0m
|
243
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSELECT count(*) AS count_all FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 3)) [0m
|
244
|
+
[4;35;1mUserGroup Load (0.000000)[0m [0mSELECT * FROM user_groups WHERE (user_groups.`id` = 5) [0m
|
245
|
+
[4;36;1mUserGroup Load (0.000000)[0m [0;1mSELECT * FROM user_groups WHERE (user_groups.`id` = 5) [0m
|
246
|
+
[4;35;1mGroup Load (0.000000)[0m [0mSELECT * FROM groups WHERE (groups.`id` = 30) [0m
|
70
247
|
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
248
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
71
249
|
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
72
250
|
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
73
251
|
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
74
|
-
[4;36;
|
75
|
-
[4;35;
|
76
|
-
[4;36;
|
77
|
-
[4;35;
|
252
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
253
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
254
|
+
[4;36;1mNestedChild Columns (0.015000)[0m [0;1mSHOW FIELDS FROM nested_children[0m
|
255
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.`id` = 1) [0m
|
256
|
+
[4;36;1mNestedChild Load (0.000000)[0m [0;1mSELECT * FROM nested_children WHERE (nested_children.`field` = 3) LIMIT 1[0m
|
257
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
258
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
259
|
+
[4;35;1mNestedParent Columns (0.000000)[0m [0mSHOW FIELDS FROM nested_parents[0m
|
260
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 4) [0m
|
261
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 1) [0m
|
262
|
+
[4;36;1mNestedParent Load (0.015000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 3) [0m
|
263
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 2) [0m
|
264
|
+
[4;36;1mNestedChild Load (0.000000)[0m [0;1mSELECT * FROM nested_children WHERE (nested_children.`field` = 1) LIMIT 1[0m
|
265
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 4) [0m
|
266
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`field` = 1) LIMIT 1[0m
|
267
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.nested_parent_id = 4) [0m
|
268
|
+
[4;36;1mInnerChild Load (0.000000)[0m [0;1mSELECT * FROM inner_children WHERE (inner_children.nested_child_id = 2) [0m
|
269
|
+
[4;35;1mInnerChild Columns (0.000000)[0m [0mSHOW FIELDS FROM inner_children[0m
|
270
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 2) [0m
|
271
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`field` = 1) LIMIT 1[0m
|
272
|
+
[4;36;1mInnerChild Load (0.000000)[0m [0;1mSELECT * FROM inner_children WHERE (inner_children.`id` = 3) [0m
|
273
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.`id` = 3) [0m
|
274
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 1) [0m
|
275
|
+
[4;35;1mInnerChild Load (0.000000)[0m [0mSELECT * FROM inner_children WHERE (inner_children.`field` = 3) LIMIT 1[0m
|
276
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 1) [0m
|
277
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
278
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
279
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
280
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
281
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
282
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
283
|
+
[4;35;1mUser Columns (0.000000)[0m [0mSHOW FIELDS FROM users[0m
|
284
|
+
[4;36;1mUser Load (0.000000)[0m [0;1mSELECT * FROM users WHERE (users.`id` = 1) [0m
|
285
|
+
[4;35;1mGroup Load (0.000000)[0m [0mSELECT groups.* FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 1)) [0m
|
286
|
+
[4;36;1mGroup Columns (0.000000)[0m [0;1mSHOW FIELDS FROM groups[0m
|
287
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`full_name` = 'Jane Doe') LIMIT 1[0m
|
288
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSELECT count(*) AS count_all FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 2)) [0m
|
289
|
+
[4;35;1mUserGroup Columns (0.000000)[0m [0mSHOW FIELDS FROM user_groups[0m
|
78
290
|
[4;36;1mUserGroup Load (0.000000)[0m [0;1mSELECT * FROM user_groups WHERE (user_groups.`id` = 2) [0m
|
79
291
|
[4;35;1mUserGroup Load (0.000000)[0m [0mSELECT * FROM user_groups WHERE (user_groups.`id` = 2) [0m
|
80
|
-
[4;36;
|
81
|
-
[4;35;
|
82
|
-
[4;36;
|
83
|
-
[4;35;
|
84
|
-
[4;36;
|
292
|
+
[4;36;1mGroup Load (0.000000)[0m [0;1mSELECT * FROM groups WHERE (groups.`id` = 3) [0m
|
293
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
294
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
295
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`id` = 4) [0m
|
296
|
+
[4;36;1mGroup Load (0.000000)[0m [0;1mSELECT groups.* FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 4)) [0m
|
297
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`full_name` = 'Jane Doe Nested') LIMIT 1[0m
|
298
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSELECT count(*) AS count_all FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 3)) [0m
|
299
|
+
[4;35;1mUserGroup Load (0.000000)[0m [0mSELECT * FROM user_groups WHERE (user_groups.`id` = 5) [0m
|
300
|
+
[4;36;1mUserGroup Load (0.000000)[0m [0;1mSELECT * FROM user_groups WHERE (user_groups.`id` = 5) [0m
|
301
|
+
[4;35;1mGroup Load (0.000000)[0m [0mSELECT * FROM groups WHERE (groups.`id` = 30) [0m
|
302
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
303
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
304
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
305
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
306
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
307
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
308
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
309
|
+
[4;36;1mNestedChild Columns (0.016000)[0m [0;1mSHOW FIELDS FROM nested_children[0m
|
310
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.`id` = 1) [0m
|
311
|
+
[4;36;1mNestedChild Load (0.000000)[0m [0;1mSELECT * FROM nested_children WHERE (nested_children.`field` = 3) LIMIT 1[0m
|
312
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
313
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
314
|
+
[4;35;1mNestedParent Columns (0.016000)[0m [0mSHOW FIELDS FROM nested_parents[0m
|
315
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 4) [0m
|
316
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 1) [0m
|
317
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 3) [0m
|
318
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 2) [0m
|
319
|
+
[4;36;1mNestedChild Load (0.000000)[0m [0;1mSELECT * FROM nested_children WHERE (nested_children.`field` = 1) LIMIT 1[0m
|
320
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 4) [0m
|
321
|
+
[4;36;1mNestedParent Load (0.016000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`field` = 1) LIMIT 1[0m
|
322
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.nested_parent_id = 4) [0m
|
323
|
+
[4;36;1mInnerChild Load (0.000000)[0m [0;1mSELECT * FROM inner_children WHERE (inner_children.nested_child_id = 2) [0m
|
324
|
+
[4;35;1mInnerChild Columns (0.000000)[0m [0mSHOW FIELDS FROM inner_children[0m
|
325
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 2) [0m
|
326
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`field` = 1) LIMIT 1[0m
|
327
|
+
[4;36;1mInnerChild Load (0.000000)[0m [0;1mSELECT * FROM inner_children WHERE (inner_children.`id` = 3) [0m
|
328
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.`id` = 3) [0m
|
329
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 1) [0m
|
330
|
+
[4;35;1mInnerChild Load (0.000000)[0m [0mSELECT * FROM inner_children WHERE (inner_children.`field` = 3) LIMIT 1[0m
|
331
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 1) [0m
|
332
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
333
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
334
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
335
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
336
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
337
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
338
|
+
[4;35;1mUser Columns (0.000000)[0m [0mSHOW FIELDS FROM users[0m
|
339
|
+
[4;36;1mUser Load (0.000000)[0m [0;1mSELECT * FROM users WHERE (users.`id` = 1) [0m
|
340
|
+
[4;35;1mGroup Load (0.000000)[0m [0mSELECT groups.* FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 1)) [0m
|
341
|
+
[4;36;1mGroup Columns (0.000000)[0m [0;1mSHOW FIELDS FROM groups[0m
|
342
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`full_name` = 'Jane Doe') LIMIT 1[0m
|
343
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSELECT count(*) AS count_all FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 2)) [0m
|
344
|
+
[4;35;1mUserGroup Columns (0.016000)[0m [0mSHOW FIELDS FROM user_groups[0m
|
345
|
+
[4;36;1mUserGroup Load (0.000000)[0m [0;1mSELECT * FROM user_groups WHERE (user_groups.`id` = 2) [0m
|
346
|
+
[4;35;1mUserGroup Load (0.000000)[0m [0mSELECT * FROM user_groups WHERE (user_groups.`id` = 2) [0m
|
347
|
+
[4;36;1mGroup Load (0.000000)[0m [0;1mSELECT * FROM groups WHERE (groups.`id` = 3) [0m
|
348
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
349
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
350
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`id` = 4) [0m
|
351
|
+
[4;36;1mGroup Load (0.015000)[0m [0;1mSELECT groups.* FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 4)) [0m
|
352
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`full_name` = 'Jane Doe Nested') LIMIT 1[0m
|
353
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSELECT count(*) AS count_all FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 3)) [0m
|
354
|
+
[4;35;1mUserGroup Load (0.000000)[0m [0mSELECT * FROM user_groups WHERE (user_groups.`id` = 5) [0m
|
355
|
+
[4;36;1mUserGroup Load (0.000000)[0m [0;1mSELECT * FROM user_groups WHERE (user_groups.`id` = 5) [0m
|
356
|
+
[4;35;1mGroup Load (0.000000)[0m [0mSELECT * FROM groups WHERE (groups.`id` = 30) [0m
|
357
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
358
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSET SQL_AUTO_IS_NULL=0[0m
|
359
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
360
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
361
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
362
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
363
|
+
[4;35;1mSQL (0.000000)[0m [0mBEGIN[0m
|
364
|
+
[4;36;1mNestedChild Columns (0.000000)[0m [0;1mSHOW FIELDS FROM nested_children[0m
|
365
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.`id` = 1) [0m
|
366
|
+
[4;36;1mNestedChild Load (0.000000)[0m [0;1mSELECT * FROM nested_children WHERE (nested_children.`field` = 3) LIMIT 1[0m
|
367
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
368
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
369
|
+
[4;35;1mNestedParent Columns (0.015000)[0m [0mSHOW FIELDS FROM nested_parents[0m
|
370
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 4) [0m
|
371
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 1) [0m
|
372
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 3) [0m
|
373
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 2) [0m
|
374
|
+
[4;36;1mNestedChild Load (0.000000)[0m [0;1mSELECT * FROM nested_children WHERE (nested_children.`field` = 1) LIMIT 1[0m
|
375
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 4) [0m
|
376
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`field` = 1) LIMIT 1[0m
|
377
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.nested_parent_id = 4) [0m
|
378
|
+
[4;36;1mInnerChild Load (0.000000)[0m [0;1mSELECT * FROM inner_children WHERE (inner_children.nested_child_id = 2) [0m
|
379
|
+
[4;35;1mInnerChild Columns (0.000000)[0m [0mSHOW FIELDS FROM inner_children[0m
|
380
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 2) [0m
|
381
|
+
[4;35;1mNestedParent Load (0.000000)[0m [0mSELECT * FROM nested_parents WHERE (nested_parents.`field` = 1) LIMIT 1[0m
|
382
|
+
[4;36;1mInnerChild Load (0.000000)[0m [0;1mSELECT * FROM inner_children WHERE (inner_children.`id` = 3) [0m
|
383
|
+
[4;35;1mNestedChild Load (0.000000)[0m [0mSELECT * FROM nested_children WHERE (nested_children.`id` = 3) [0m
|
384
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.`id` = 1) [0m
|
385
|
+
[4;35;1mInnerChild Load (0.000000)[0m [0mSELECT * FROM inner_children WHERE (inner_children.`field` = 3) LIMIT 1[0m
|
386
|
+
[4;36;1mNestedParent Load (0.000000)[0m [0;1mSELECT * FROM nested_parents WHERE (nested_parents.inner_child_id = 1) [0m
|
387
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
388
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
389
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
390
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
85
391
|
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
392
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
393
|
+
[4;35;1mUser Columns (0.000000)[0m [0mSHOW FIELDS FROM users[0m
|
394
|
+
[4;36;1mUser Load (0.000000)[0m [0;1mSELECT * FROM users WHERE (users.`id` = 1) [0m
|
395
|
+
[4;35;1mGroup Load (0.000000)[0m [0mSELECT groups.* FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 1)) [0m
|
396
|
+
[4;36;1mGroup Columns (0.000000)[0m [0;1mSHOW FIELDS FROM groups[0m
|
397
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`full_name` = 'Jane Doe') LIMIT 1[0m
|
398
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSELECT count(*) AS count_all FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 2)) [0m
|
399
|
+
[4;35;1mUserGroup Columns (0.015000)[0m [0mSHOW FIELDS FROM user_groups[0m
|
400
|
+
[4;36;1mUserGroup Load (0.000000)[0m [0;1mSELECT * FROM user_groups WHERE (user_groups.`id` = 2) [0m
|
401
|
+
[4;35;1mUserGroup Load (0.000000)[0m [0mSELECT * FROM user_groups WHERE (user_groups.`id` = 2) [0m
|
402
|
+
[4;36;1mGroup Load (0.000000)[0m [0;1mSELECT * FROM groups WHERE (groups.`id` = 3) [0m
|
403
|
+
[4;35;1mSQL (0.000000)[0m [0mROLLBACK[0m
|
404
|
+
[4;36;1mSQL (0.000000)[0m [0;1mBEGIN[0m
|
405
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`id` = 4) [0m
|
406
|
+
[4;36;1mGroup Load (0.000000)[0m [0;1mSELECT groups.* FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 4)) [0m
|
407
|
+
[4;35;1mUser Load (0.000000)[0m [0mSELECT * FROM users WHERE (users.`full_name` = 'Jane Doe Nested') LIMIT 1[0m
|
408
|
+
[4;36;1mSQL (0.000000)[0m [0;1mSELECT count(*) AS count_all FROM groups INNER JOIN user_groups ON groups.id = user_groups.group_id WHERE ((user_groups.user_id = 3)) [0m
|
409
|
+
[4;35;1mUserGroup Load (0.000000)[0m [0mSELECT * FROM user_groups WHERE (user_groups.`id` = 5) [0m
|
410
|
+
[4;36;1mUserGroup Load (0.000000)[0m [0;1mSELECT * FROM user_groups WHERE (user_groups.`id` = 5) [0m
|
411
|
+
[4;35;1mGroup Load (0.000000)[0m [0mSELECT * FROM groups WHERE (groups.`id` = 30) [0m
|
412
|
+
[4;36;1mSQL (0.000000)[0m [0;1mROLLBACK[0m
|
@@ -1,20 +1,28 @@
|
|
1
|
-
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
|
2
|
+
|
3
|
+
# These are the fixtures used in the README examples
|
4
|
+
john_doe:
|
5
|
+
full_name: John Doe
|
6
|
+
groups: admin_group
|
7
|
+
|
8
|
+
jane_doe:
|
9
|
+
full_name: Jane Doe
|
10
|
+
groups:
|
10
11
|
- admin_group
|
11
|
-
-
|
12
|
-
name:
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
12
|
+
- worker_group:
|
13
|
+
name: Workers
|
14
|
+
|
15
|
+
# These I renamed so as to not conflict, but they should produce the
|
16
|
+
# same fixtures as above
|
17
|
+
john_doe_n:
|
18
|
+
full_name: John Doe Nested
|
19
|
+
groups:
|
20
|
+
admin_group_n:
|
21
|
+
id: 30
|
22
|
+
name: Administrators Nested
|
23
|
+
users:
|
24
|
+
jane_doe_n:
|
25
|
+
full_name: Jane Doe Nested
|
26
|
+
groups:
|
27
|
+
worker_group_n:
|
28
|
+
name: Workers Nested
|
@@ -4,9 +4,30 @@ class UserTest < Test::Unit::TestCase
|
|
4
4
|
fixtures :users, :groups, :user_groups
|
5
5
|
|
6
6
|
def test_joinfix
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
assert_equal "Administrators", users(:john_doe).groups.first.name
|
8
|
+
assert_equal 2, User.find_by_full_name("Jane Doe").groups.count
|
9
|
+
assert_equal 3, UserGroup.find(user_groups(:admin_group_jane_doe).id).group.id
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_nested_joinfix
|
13
|
+
assert_equal "Administrators Nested", users(:john_doe_n).groups.first.name
|
14
|
+
assert_equal 2, User.find_by_full_name("Jane Doe Nested").groups.count
|
15
|
+
assert_equal 30, UserGroup.find(user_groups(:admin_group_n_jane_doe_n).id).group.id
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_associations
|
19
|
+
active_record_class = User
|
20
|
+
a = active_record_class.reflect_on_association(:groups)
|
21
|
+
assert_equal :has_many, a.macro
|
22
|
+
assert_equal({:through => :user_groups}, a.options )
|
23
|
+
|
24
|
+
assert_equal User.reflect_on_association(:user_groups), a.through_reflection
|
25
|
+
assert_equal UserGroup.reflect_on_association(:group), a.source_reflection
|
26
|
+
|
27
|
+
assert_equal "user_groups", a.through_reflection.table_name
|
28
|
+
assert_equal "user_id", a.through_reflection.primary_key_name
|
29
|
+
|
30
|
+
assert_equal "groups", a.source_reflection.table_name
|
31
|
+
assert_equal "group_id", a.source_reflection.primary_key_name
|
11
32
|
end
|
12
33
|
end
|
data/test/has_many_test.rb
CHANGED
@@ -57,5 +57,21 @@ child_two:
|
|
57
57
|
id: 2
|
58
58
|
hm_parent_id: 1
|
59
59
|
field: two})
|
60
|
+
end
|
61
|
+
|
62
|
+
def test_error_for_bad_yaml
|
63
|
+
error_test(NoEntryNameError) do
|
64
|
+
setup_fixtures(
|
65
|
+
:hm_parents => %Q{
|
66
|
+
parent_entry:
|
67
|
+
id: 1
|
68
|
+
field: parent value
|
69
|
+
hm_children:
|
70
|
+
- child_one:
|
71
|
+
field: one
|
72
|
+
- child_two:
|
73
|
+
field: two},
|
74
|
+
:hm_children => %Q{})
|
75
|
+
end
|
60
76
|
end
|
61
77
|
end
|