active_sort_order 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -3
- data/lib/active_sort_order/version.rb +1 -1
- data/lib/active_sort_order.rb +10 -6
- metadata +21 -81
- data/test/dummy_app/Rakefile +0 -7
- data/test/dummy_app/app/assets/config/manifest.js +0 -3
- data/test/dummy_app/app/assets/javascripts/application.js +0 -0
- data/test/dummy_app/app/assets/stylesheets/application.css +0 -3
- data/test/dummy_app/app/controllers/application_controller.rb +0 -3
- data/test/dummy_app/app/models/application_record.rb +0 -3
- data/test/dummy_app/app/models/post.rb +0 -3
- data/test/dummy_app/app/models/post_with_base_order_a.rb +0 -7
- data/test/dummy_app/app/models/post_with_base_order_a_and_b.rb +0 -7
- data/test/dummy_app/app/models/post_with_base_order_b.rb +0 -7
- data/test/dummy_app/app/models/post_with_base_order_b_and_a.rb +0 -7
- data/test/dummy_app/app/models/post_with_volatile_base_order.rb +0 -7
- data/test/dummy_app/app/views/layouts/application.html.erb +0 -14
- data/test/dummy_app/config/application.rb +0 -61
- data/test/dummy_app/config/boot.rb +0 -10
- data/test/dummy_app/config/database.yml +0 -20
- data/test/dummy_app/config/environment.rb +0 -5
- data/test/dummy_app/config/environments/development.rb +0 -30
- data/test/dummy_app/config/environments/production.rb +0 -60
- data/test/dummy_app/config/environments/test.rb +0 -41
- data/test/dummy_app/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy_app/config/initializers/inflections.rb +0 -10
- data/test/dummy_app/config/initializers/mime_types.rb +0 -5
- data/test/dummy_app/config/initializers/secret_token.rb +0 -11
- data/test/dummy_app/config/initializers/session_store.rb +0 -8
- data/test/dummy_app/config/initializers/wrap_parameters.rb +0 -14
- data/test/dummy_app/config/locales/en.yml +0 -5
- data/test/dummy_app/config/routes.rb +0 -6
- data/test/dummy_app/config/secrets.yml +0 -22
- data/test/dummy_app/config.ru +0 -4
- data/test/dummy_app/db/migrate/20210128155312_set_up_test_tables.rb +0 -15
- data/test/dummy_app/db/schema.rb +0 -19
- data/test/dummy_app/db/test.sqlite3 +0 -0
- data/test/dummy_app/log/test.log +0 -754
- data/test/test_helper.rb +0 -63
- data/test/unit/active_sort_order_test.rb +0 -144
- data/test/unit/errors_test.rb +0 -205
data/test/dummy_app/log/test.log
DELETED
@@ -1,754 +0,0 @@
|
|
1
|
-
[1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
2
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
3
|
-
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
4
|
-
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)[0m
|
5
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
6
|
-
Migrating to SetUpTestTables (20210128155312)
|
7
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
8
|
-
[1m[35m (0.3ms)[0m [1m[35mCREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "a" integer, "b" integer)[0m
|
9
|
-
[1m[36mActiveRecord::SchemaMigration Create (0.1ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES (?)[0m [["version", "20210128155312"]]
|
10
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
11
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
12
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
13
|
-
[1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2021-04-28 15:34:46.254639"], ["updated_at", "2021-04-28 15:34:46.254639"]]
|
14
|
-
[1m[36mTRANSACTION (0.8ms)[0m [1m[36mcommit transaction[0m
|
15
|
-
[1m[35m (0.7ms)[0m [1m[31mDELETE FROM posts;[0m
|
16
|
-
[1m[35m (0.1ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
17
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
18
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
19
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 1], ["b", 3]]
|
20
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[36mcommit transaction[0m
|
21
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 2], ["b", 2], ["LIMIT", 1]]
|
22
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
23
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 2], ["b", 2]]
|
24
|
-
[1m[36mTRANSACTION (0.4ms)[0m [1m[36mcommit transaction[0m
|
25
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 3], ["b", 2], ["LIMIT", 1]]
|
26
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
27
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 3], ["b", 2]]
|
28
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[36mcommit transaction[0m
|
29
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 4], ["b", 1], ["LIMIT", 1]]
|
30
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
31
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 4], ["b", 1]]
|
32
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[36mcommit transaction[0m
|
33
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 5], ["b", 1], ["LIMIT", 1]]
|
34
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
35
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 5], ["b", 1]]
|
36
|
-
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
37
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
38
|
-
-------------------------------------------------------
|
39
|
-
ActiveSortOrderTest: test_override_base_sort_order_only
|
40
|
-
-------------------------------------------------------
|
41
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
42
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC[0m
|
43
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC[0m
|
44
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
45
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
46
|
-
--------------------------------------------------
|
47
|
-
ActiveSortOrderTest: test_base_sort_order_and_sort
|
48
|
-
--------------------------------------------------
|
49
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
50
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC[0m
|
51
|
-
[1m[36mPostWithBaseOrderB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC[0m
|
52
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
53
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
54
|
-
-------------------------------------------------------------
|
55
|
-
ActiveSortOrderTest: test_class_method_base_sort_order_errors
|
56
|
-
-------------------------------------------------------------
|
57
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
58
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
59
|
-
---------------------------------------------
|
60
|
-
ActiveSortOrderTest: test_exposes_main_module
|
61
|
-
---------------------------------------------
|
62
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
63
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
64
|
-
-----------------------------------------------
|
65
|
-
ActiveSortOrderTest: test_sort_direction_errors
|
66
|
-
-----------------------------------------------
|
67
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
68
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
69
|
-
-----------------------------------------
|
70
|
-
ActiveSortOrderTest: test_exposes_version
|
71
|
-
-----------------------------------------
|
72
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
73
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
74
|
-
-------------------------------------------------------
|
75
|
-
ActiveSortOrderTest: test_base_sort_order_default_value
|
76
|
-
-------------------------------------------------------
|
77
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
78
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
79
|
-
-----------------------------------------
|
80
|
-
ActiveSortOrderTest: test_sort_str_errors
|
81
|
-
-----------------------------------------
|
82
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
83
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
84
|
-
----------------------------------------------------
|
85
|
-
ActiveSortOrderTest: test_class_base_sort_order_only
|
86
|
-
----------------------------------------------------
|
87
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
88
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a ASC[0m
|
89
|
-
[1m[36mPostWithBaseOrderB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC[0m
|
90
|
-
[1m[36mPostWithBaseOrderAAndB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC[0m
|
91
|
-
[1m[36mPostWithBaseOrderBAndA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC[0m
|
92
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
93
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
94
|
-
---------------------------------------------------------
|
95
|
-
ActiveSortOrderTest: test_argument_base_sort_order_errors
|
96
|
-
---------------------------------------------------------
|
97
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
98
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
99
|
-
-----------------------------------
|
100
|
-
ActiveSortOrderTest: test_sort_only
|
101
|
-
-----------------------------------
|
102
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
103
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC[0m
|
104
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC[0m
|
105
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
106
|
-
[1m[35m (0.9ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
107
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
108
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
109
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
110
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
111
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
112
|
-
[1m[35m (1.4ms)[0m [1m[31mDELETE FROM posts;[0m
|
113
|
-
[1m[35m (0.8ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
114
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
115
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
116
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 1], ["b", 3]]
|
117
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
118
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 2], ["b", 2], ["LIMIT", 1]]
|
119
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
120
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 2], ["b", 2]]
|
121
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[36mcommit transaction[0m
|
122
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 3], ["b", 2], ["LIMIT", 1]]
|
123
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
124
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 3], ["b", 2]]
|
125
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[36mcommit transaction[0m
|
126
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 4], ["b", 1], ["LIMIT", 1]]
|
127
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
128
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 4], ["b", 1]]
|
129
|
-
[1m[36mTRANSACTION (0.8ms)[0m [1m[36mcommit transaction[0m
|
130
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 5], ["b", 1], ["LIMIT", 1]]
|
131
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
132
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 5], ["b", 1]]
|
133
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[36mcommit transaction[0m
|
134
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
135
|
-
--------------------------------------------------
|
136
|
-
ActiveSortOrderTest: test_base_sort_order_and_sort
|
137
|
-
--------------------------------------------------
|
138
|
-
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
139
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC[0m
|
140
|
-
[1m[36mPostWithBaseOrderB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC[0m
|
141
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
142
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
143
|
-
---------------------------------------------
|
144
|
-
ActiveSortOrderTest: test_exposes_main_module
|
145
|
-
---------------------------------------------
|
146
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
147
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
148
|
-
-----------------------------------------
|
149
|
-
ActiveSortOrderTest: test_exposes_version
|
150
|
-
-----------------------------------------
|
151
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
152
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
153
|
-
-------------------------------------------------------
|
154
|
-
ActiveSortOrderTest: test_override_base_sort_order_only
|
155
|
-
-------------------------------------------------------
|
156
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
157
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC[0m
|
158
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC[0m
|
159
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC[0m
|
160
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
161
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
162
|
-
-------------------------------------------------------
|
163
|
-
ActiveSortOrderTest: test_base_sort_order_default_value
|
164
|
-
-------------------------------------------------------
|
165
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
166
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
167
|
-
----------------------------------------------------
|
168
|
-
ActiveSortOrderTest: test_class_base_sort_order_only
|
169
|
-
----------------------------------------------------
|
170
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
171
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a ASC[0m
|
172
|
-
[1m[36mPostWithBaseOrderB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC[0m
|
173
|
-
[1m[36mPostWithBaseOrderAAndB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC[0m
|
174
|
-
[1m[36mPostWithBaseOrderBAndA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC[0m
|
175
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
176
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
177
|
-
-----------------------------------
|
178
|
-
ActiveSortOrderTest: test_sort_only
|
179
|
-
-----------------------------------
|
180
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
181
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC[0m
|
182
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC[0m
|
183
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
184
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
185
|
-
-----------------------------------------
|
186
|
-
ActiveSortOrderTest: test_sort_str_errors
|
187
|
-
-----------------------------------------
|
188
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
189
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
190
|
-
-------------------------------------------------------------
|
191
|
-
ActiveSortOrderTest: test_class_method_base_sort_order_errors
|
192
|
-
-------------------------------------------------------------
|
193
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
194
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
195
|
-
---------------------------------------------------------
|
196
|
-
ActiveSortOrderTest: test_argument_base_sort_order_errors
|
197
|
-
---------------------------------------------------------
|
198
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
199
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
200
|
-
-----------------------------------------------
|
201
|
-
ActiveSortOrderTest: test_sort_direction_errors
|
202
|
-
-----------------------------------------------
|
203
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
204
|
-
[1m[35m (1.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
205
|
-
[1m[35m (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
206
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
207
|
-
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
208
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
209
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
210
|
-
[1m[35m (1.6ms)[0m [1m[31mDELETE FROM posts;[0m
|
211
|
-
[1m[35m (1.3ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
212
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
213
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
214
|
-
[1m[36mPost Create (0.3ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 1], ["b", 3]]
|
215
|
-
[1m[36mTRANSACTION (0.8ms)[0m [1m[36mcommit transaction[0m
|
216
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 2], ["b", 2], ["LIMIT", 1]]
|
217
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
218
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 2], ["b", 2]]
|
219
|
-
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
220
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 3], ["b", 2], ["LIMIT", 1]]
|
221
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
222
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 3], ["b", 2]]
|
223
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[36mcommit transaction[0m
|
224
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 4], ["b", 1], ["LIMIT", 1]]
|
225
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
226
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 4], ["b", 1]]
|
227
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
228
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 5], ["b", 1], ["LIMIT", 1]]
|
229
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
230
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 5], ["b", 1]]
|
231
|
-
[1m[36mTRANSACTION (1.1ms)[0m [1m[36mcommit transaction[0m
|
232
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[36mbegin transaction[0m
|
233
|
-
-------------------------------------------------------
|
234
|
-
ActiveSortOrderTest: test_override_base_sort_order_only
|
235
|
-
-------------------------------------------------------
|
236
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
237
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
238
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
239
|
-
-------------------------------------------------
|
240
|
-
ActiveSortOrderTest: test_sort_on_multiple_fields
|
241
|
-
-------------------------------------------------
|
242
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
243
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
244
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
245
|
-
--------------------------------------------------
|
246
|
-
ActiveSortOrderTest: test_base_sort_order_and_sort
|
247
|
-
--------------------------------------------------
|
248
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
249
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
250
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
251
|
-
----------------------------------------------------
|
252
|
-
ActiveSortOrderTest: test_class_base_sort_order_only
|
253
|
-
----------------------------------------------------
|
254
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
255
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
256
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
257
|
-
---------------------------------------------
|
258
|
-
ActiveSortOrderTest: test_exposes_main_module
|
259
|
-
---------------------------------------------
|
260
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
261
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
262
|
-
-----------------------------------
|
263
|
-
ActiveSortOrderTest: test_sort_only
|
264
|
-
-----------------------------------
|
265
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
266
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
267
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
268
|
-
-----------------------------------------
|
269
|
-
ActiveSortOrderTest: test_exposes_version
|
270
|
-
-----------------------------------------
|
271
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
272
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
273
|
-
-------------------------------------------------------
|
274
|
-
ActiveSortOrderTest: test_base_sort_order_default_value
|
275
|
-
-------------------------------------------------------
|
276
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
277
|
-
[1m[36mPostWithBaseOrderA Load (0.2ms)[0m [1m[34mSELECT "posts".* FROM "posts" /* loading for inspect */ ORDER BY "posts"."b" DESC LIMIT ?[0m [["LIMIT", 11]]
|
278
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" /* loading for inspect */ ORDER BY "posts"."b" DESC LIMIT ?[0m [["LIMIT", 11]]
|
279
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ?[0m [["LIMIT", 11]]
|
280
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ?[0m [["LIMIT", 11]]
|
281
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ?[0m [["LIMIT", 11]]
|
282
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ?[0m [["LIMIT", 11]]
|
283
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ?[0m [["LIMIT", 11]]
|
284
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ?[0m [["LIMIT", 11]]
|
285
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ?[0m [["LIMIT", 11]]
|
286
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ?[0m [["LIMIT", 11]]
|
287
|
-
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
288
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
289
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
290
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
291
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
292
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
293
|
-
[1m[35m (1.8ms)[0m [1m[31mDELETE FROM posts;[0m
|
294
|
-
[1m[35m (1.4ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
295
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
296
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
297
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 1], ["b", 3]]
|
298
|
-
[1m[36mTRANSACTION (0.8ms)[0m [1m[36mcommit transaction[0m
|
299
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 2], ["b", 2], ["LIMIT", 1]]
|
300
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
301
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 2], ["b", 2]]
|
302
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
303
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 3], ["b", 2], ["LIMIT", 1]]
|
304
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
305
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 3], ["b", 2]]
|
306
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
307
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 4], ["b", 1], ["LIMIT", 1]]
|
308
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
309
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 4], ["b", 1]]
|
310
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
311
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 5], ["b", 1], ["LIMIT", 1]]
|
312
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
313
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 5], ["b", 1]]
|
314
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
315
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
316
|
-
---------------------------------------------
|
317
|
-
ActiveSortOrderTest: test_exposes_main_module
|
318
|
-
---------------------------------------------
|
319
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
320
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
321
|
-
-------------------------------------------------------
|
322
|
-
ActiveSortOrderTest: test_override_base_sort_order_only
|
323
|
-
-------------------------------------------------------
|
324
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
325
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC[0m
|
326
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC[0m
|
327
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC[0m
|
328
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
329
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
330
|
-
-----------------------------------
|
331
|
-
ActiveSortOrderTest: test_sort_only
|
332
|
-
-----------------------------------
|
333
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
334
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC[0m
|
335
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC[0m
|
336
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
337
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
338
|
-
-----------------------------------------
|
339
|
-
ActiveSortOrderTest: test_exposes_version
|
340
|
-
-----------------------------------------
|
341
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
342
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
343
|
-
--------------------------------------------------
|
344
|
-
ActiveSortOrderTest: test_base_sort_order_and_sort
|
345
|
-
--------------------------------------------------
|
346
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
347
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC[0m
|
348
|
-
[1m[36mPostWithBaseOrderB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC[0m
|
349
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
350
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
351
|
-
-------------------------------------------------
|
352
|
-
ActiveSortOrderTest: test_sort_on_multiple_fields
|
353
|
-
-------------------------------------------------
|
354
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
355
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
356
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
357
|
-
-------------------------------------------------------
|
358
|
-
ActiveSortOrderTest: test_base_sort_order_default_value
|
359
|
-
-------------------------------------------------------
|
360
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
361
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
362
|
-
----------------------------------------------------
|
363
|
-
ActiveSortOrderTest: test_class_base_sort_order_only
|
364
|
-
----------------------------------------------------
|
365
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
366
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a ASC[0m
|
367
|
-
[1m[36mPostWithBaseOrderB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC[0m
|
368
|
-
[1m[36mPostWithBaseOrderAAndB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC[0m
|
369
|
-
[1m[36mPostWithBaseOrderBAndA Load (0.8ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC[0m
|
370
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
371
|
-
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
372
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
373
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
374
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
375
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
376
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
377
|
-
[1m[35m (1.2ms)[0m [1m[31mDELETE FROM posts;[0m
|
378
|
-
[1m[35m (0.9ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
379
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
380
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
381
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 1], ["b", 3]]
|
382
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
383
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 2], ["b", 2], ["LIMIT", 1]]
|
384
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
385
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 2], ["b", 2]]
|
386
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
387
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 3], ["b", 2], ["LIMIT", 1]]
|
388
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
389
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 3], ["b", 2]]
|
390
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
391
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 4], ["b", 1], ["LIMIT", 1]]
|
392
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
393
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 4], ["b", 1]]
|
394
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
395
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 5], ["b", 1], ["LIMIT", 1]]
|
396
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
397
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 5], ["b", 1]]
|
398
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
399
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
400
|
-
-----------------------------------
|
401
|
-
ActiveSortOrderTest: test_sort_only
|
402
|
-
-----------------------------------
|
403
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
404
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC[0m
|
405
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC[0m
|
406
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
407
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
408
|
-
---------------------------------------------
|
409
|
-
ActiveSortOrderTest: test_exposes_main_module
|
410
|
-
---------------------------------------------
|
411
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
412
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
413
|
-
-----------------------------------------
|
414
|
-
ActiveSortOrderTest: test_exposes_version
|
415
|
-
-----------------------------------------
|
416
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
417
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
418
|
-
----------------------------------------------------
|
419
|
-
ActiveSortOrderTest: test_class_base_sort_order_only
|
420
|
-
----------------------------------------------------
|
421
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
422
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a ASC[0m
|
423
|
-
[1m[36mPostWithBaseOrderB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC[0m
|
424
|
-
[1m[36mPostWithBaseOrderAAndB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC[0m
|
425
|
-
[1m[36mPostWithBaseOrderBAndA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC[0m
|
426
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
427
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
428
|
-
-------------------------------------------------------
|
429
|
-
ActiveSortOrderTest: test_override_base_sort_order_only
|
430
|
-
-------------------------------------------------------
|
431
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
432
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC[0m
|
433
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC[0m
|
434
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC[0m
|
435
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
436
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
437
|
-
-------------------------------------------------------
|
438
|
-
ActiveSortOrderTest: test_base_sort_order_default_value
|
439
|
-
-------------------------------------------------------
|
440
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
441
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
442
|
-
--------------------------------------------------
|
443
|
-
ActiveSortOrderTest: test_base_sort_order_and_sort
|
444
|
-
--------------------------------------------------
|
445
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
446
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC[0m
|
447
|
-
[1m[36mPostWithBaseOrderB Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC[0m
|
448
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
449
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
450
|
-
-------------------------------------------------
|
451
|
-
ActiveSortOrderTest: test_sort_on_multiple_fields
|
452
|
-
-------------------------------------------------
|
453
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
454
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY b asc, a asc, posts.a ASC[0m
|
455
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY b desc, a desc, posts.a ASC[0m
|
456
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
457
|
-
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
458
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
459
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
460
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
461
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
462
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
463
|
-
[1m[35m (1.3ms)[0m [1m[31mDELETE FROM posts;[0m
|
464
|
-
[1m[35m (0.7ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
465
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
466
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
467
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 1], ["b", 3]]
|
468
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
469
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 2], ["b", 2], ["LIMIT", 1]]
|
470
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
471
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 2], ["b", 2]]
|
472
|
-
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
473
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 3], ["b", 2], ["LIMIT", 1]]
|
474
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
475
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 3], ["b", 2]]
|
476
|
-
[1m[36mTRANSACTION (0.8ms)[0m [1m[36mcommit transaction[0m
|
477
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 4], ["b", 1], ["LIMIT", 1]]
|
478
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
479
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 4], ["b", 1]]
|
480
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
481
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 5], ["b", 1], ["LIMIT", 1]]
|
482
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
483
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 5], ["b", 1]]
|
484
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
485
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
486
|
-
-------------------------------------------------
|
487
|
-
ActiveSortOrderTest: test_sort_on_multiple_fields
|
488
|
-
-------------------------------------------------
|
489
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
490
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY b asc, a asc, posts.a ASC[0m
|
491
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY b desc, a desc, posts.a ASC[0m
|
492
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
493
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
494
|
-
----------------------------------------------------
|
495
|
-
ActiveSortOrderTest: test_class_base_sort_order_only
|
496
|
-
----------------------------------------------------
|
497
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
498
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a ASC[0m
|
499
|
-
[1m[36mPostWithBaseOrderB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC[0m
|
500
|
-
[1m[36mPostWithBaseOrderAAndB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC[0m
|
501
|
-
[1m[36mPostWithBaseOrderBAndA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC[0m
|
502
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
503
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
504
|
-
--------------------------------------------------
|
505
|
-
ActiveSortOrderTest: test_base_sort_order_and_sort
|
506
|
-
--------------------------------------------------
|
507
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
508
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC[0m
|
509
|
-
[1m[36mPostWithBaseOrderB Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC[0m
|
510
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
511
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
512
|
-
-----------------------------------------
|
513
|
-
ActiveSortOrderTest: test_exposes_version
|
514
|
-
-----------------------------------------
|
515
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
516
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
517
|
-
-----------------------------------
|
518
|
-
ActiveSortOrderTest: test_sort_only
|
519
|
-
-----------------------------------
|
520
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
521
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC[0m
|
522
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC[0m
|
523
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
524
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
525
|
-
-------------------------------------------------------
|
526
|
-
ActiveSortOrderTest: test_base_sort_order_default_value
|
527
|
-
-------------------------------------------------------
|
528
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
529
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
530
|
-
-------------------------------------------------------
|
531
|
-
ActiveSortOrderTest: test_override_base_sort_order_only
|
532
|
-
-------------------------------------------------------
|
533
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
534
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC[0m
|
535
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC[0m
|
536
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC[0m
|
537
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
538
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
539
|
-
---------------------------------------------
|
540
|
-
ActiveSortOrderTest: test_exposes_main_module
|
541
|
-
---------------------------------------------
|
542
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
543
|
-
[1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
544
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
545
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
546
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
547
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
548
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
549
|
-
[1m[35m (0.9ms)[0m [1m[31mDELETE FROM posts;[0m
|
550
|
-
[1m[35m (0.7ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
551
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
552
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
553
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 1], ["b", 3]]
|
554
|
-
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
555
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 2], ["b", 2], ["LIMIT", 1]]
|
556
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
557
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 2], ["b", 2]]
|
558
|
-
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
559
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 3], ["b", 2], ["LIMIT", 1]]
|
560
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
561
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 3], ["b", 2]]
|
562
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[36mcommit transaction[0m
|
563
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 4], ["b", 1], ["LIMIT", 1]]
|
564
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
565
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 4], ["b", 1]]
|
566
|
-
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
567
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 5], ["b", 1], ["LIMIT", 1]]
|
568
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
569
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 5], ["b", 1]]
|
570
|
-
[1m[36mTRANSACTION (0.5ms)[0m [1m[36mcommit transaction[0m
|
571
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
572
|
-
-----------------------------------------------
|
573
|
-
ActiveSortOrderTest: test_sort_direction_errors
|
574
|
-
-----------------------------------------------
|
575
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
576
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
577
|
-
-------------------------------------------------
|
578
|
-
ActiveSortOrderTest: test_sort_on_multiple_fields
|
579
|
-
-------------------------------------------------
|
580
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
581
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY b asc, a asc, posts.a ASC[0m
|
582
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY b desc, a desc, posts.a ASC[0m
|
583
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
584
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
585
|
-
---------------------------------------------
|
586
|
-
ActiveSortOrderTest: test_exposes_main_module
|
587
|
-
---------------------------------------------
|
588
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
589
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
590
|
-
----------------------------------------------------
|
591
|
-
ActiveSortOrderTest: test_class_base_sort_order_only
|
592
|
-
----------------------------------------------------
|
593
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
594
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a ASC[0m
|
595
|
-
[1m[36mPostWithBaseOrderB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC[0m
|
596
|
-
[1m[36mPostWithBaseOrderAAndB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC[0m
|
597
|
-
[1m[36mPostWithBaseOrderBAndA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC[0m
|
598
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
599
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
600
|
-
-------------------------------------------------------------
|
601
|
-
ActiveSortOrderTest: test_class_method_base_sort_order_errors
|
602
|
-
-------------------------------------------------------------
|
603
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
604
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
605
|
-
-------------------------------------------------------
|
606
|
-
ActiveSortOrderTest: test_override_base_sort_order_only
|
607
|
-
-------------------------------------------------------
|
608
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
609
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC[0m
|
610
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC[0m
|
611
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC[0m
|
612
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
613
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
614
|
-
-------------------------------------------------------
|
615
|
-
ActiveSortOrderTest: test_base_sort_order_default_value
|
616
|
-
-------------------------------------------------------
|
617
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
618
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
619
|
-
---------------------------------------------------------
|
620
|
-
ActiveSortOrderTest: test_argument_base_sort_order_errors
|
621
|
-
---------------------------------------------------------
|
622
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|
623
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
624
|
-
-----------------------------------------
|
625
|
-
ActiveSortOrderTest: test_exposes_version
|
626
|
-
-----------------------------------------
|
627
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
628
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
629
|
-
--------------------------------------------------
|
630
|
-
ActiveSortOrderTest: test_base_sort_order_and_sort
|
631
|
-
--------------------------------------------------
|
632
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
633
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC[0m
|
634
|
-
[1m[36mPostWithBaseOrderB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC[0m
|
635
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
636
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
637
|
-
-----------------------------------------
|
638
|
-
ActiveSortOrderTest: test_sort_str_errors
|
639
|
-
-----------------------------------------
|
640
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
641
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
642
|
-
-----------------------------------
|
643
|
-
ActiveSortOrderTest: test_sort_only
|
644
|
-
-----------------------------------
|
645
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
646
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC[0m
|
647
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC[0m
|
648
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
649
|
-
[1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
650
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ?[0m [["key", "schema_sha1"]]
|
651
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
|
652
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
653
|
-
[1m[35m (0.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
654
|
-
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
|
655
|
-
[1m[35m (1.3ms)[0m [1m[31mDELETE FROM posts;[0m
|
656
|
-
[1m[35m (1.0ms)[0m [1m[33mUPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';[0m
|
657
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 1], ["b", 3], ["LIMIT", 1]]
|
658
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
659
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 1], ["b", 3]]
|
660
|
-
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
661
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 2], ["b", 2], ["LIMIT", 1]]
|
662
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
663
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 2], ["b", 2]]
|
664
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
665
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 3], ["b", 2], ["LIMIT", 1]]
|
666
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
667
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 3], ["b", 2]]
|
668
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
669
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 4], ["b", 1], ["LIMIT", 1]]
|
670
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
671
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 4], ["b", 1]]
|
672
|
-
[1m[36mTRANSACTION (0.6ms)[0m [1m[36mcommit transaction[0m
|
673
|
-
[1m[36mPost Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ?[0m [["a", 5], ["b", 1], ["LIMIT", 1]]
|
674
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
675
|
-
[1m[36mPost Create (0.2ms)[0m [1m[32mINSERT INTO "posts" ("a", "b") VALUES (?, ?)[0m [["a", 5], ["b", 1]]
|
676
|
-
[1m[36mTRANSACTION (0.7ms)[0m [1m[36mcommit transaction[0m
|
677
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
678
|
-
--------------------------------------------------
|
679
|
-
ActiveSortOrderTest: test_base_sort_order_and_sort
|
680
|
-
--------------------------------------------------
|
681
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
682
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC[0m
|
683
|
-
[1m[36mPostWithBaseOrderB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC[0m
|
684
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
685
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
686
|
-
-------------------------------------------------------------
|
687
|
-
ActiveSortOrderTest: test_class_method_base_sort_order_errors
|
688
|
-
-------------------------------------------------------------
|
689
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
690
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
691
|
-
-----------------------------------
|
692
|
-
ActiveSortOrderTest: test_sort_only
|
693
|
-
-----------------------------------
|
694
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
695
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC[0m
|
696
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC[0m
|
697
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
698
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
699
|
-
-----------------------------------------
|
700
|
-
ActiveSortOrderTest: test_exposes_version
|
701
|
-
-----------------------------------------
|
702
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
703
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
704
|
-
-----------------------------------------------
|
705
|
-
ActiveSortOrderTest: test_sort_direction_errors
|
706
|
-
-----------------------------------------------
|
707
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
708
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
709
|
-
---------------------------------------------------------
|
710
|
-
ActiveSortOrderTest: test_argument_base_sort_order_errors
|
711
|
-
---------------------------------------------------------
|
712
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
713
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
714
|
-
-------------------------------------------------------
|
715
|
-
ActiveSortOrderTest: test_override_base_sort_order_only
|
716
|
-
-------------------------------------------------------
|
717
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
718
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC[0m
|
719
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC[0m
|
720
|
-
[1m[36mPostWithBaseOrderA Load (0.0ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC[0m
|
721
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
722
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
723
|
-
-------------------------------------------------
|
724
|
-
ActiveSortOrderTest: test_sort_on_multiple_fields
|
725
|
-
-------------------------------------------------
|
726
|
-
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
727
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY b asc, a asc, posts.a ASC[0m
|
728
|
-
[1m[36mPostWithBaseOrderA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY b desc, a desc, posts.a ASC[0m
|
729
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
730
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
731
|
-
-----------------------------------------
|
732
|
-
ActiveSortOrderTest: test_sort_str_errors
|
733
|
-
-----------------------------------------
|
734
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
735
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
736
|
-
---------------------------------------------
|
737
|
-
ActiveSortOrderTest: test_exposes_main_module
|
738
|
-
---------------------------------------------
|
739
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[31mrollback transaction[0m
|
740
|
-
[1m[36mTRANSACTION (0.0ms)[0m [1m[36mbegin transaction[0m
|
741
|
-
-------------------------------------------------------
|
742
|
-
ActiveSortOrderTest: test_base_sort_order_default_value
|
743
|
-
-------------------------------------------------------
|
744
|
-
[1m[36mTRANSACTION (0.3ms)[0m [1m[31mrollback transaction[0m
|
745
|
-
[1m[36mTRANSACTION (0.2ms)[0m [1m[36mbegin transaction[0m
|
746
|
-
----------------------------------------------------
|
747
|
-
ActiveSortOrderTest: test_class_base_sort_order_only
|
748
|
-
----------------------------------------------------
|
749
|
-
[1m[35m (0.7ms)[0m [1m[34mSELECT COUNT(*) FROM "posts"[0m
|
750
|
-
[1m[36mPostWithBaseOrderA Load (0.4ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a ASC[0m
|
751
|
-
[1m[36mPostWithBaseOrderB Load (0.4ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC[0m
|
752
|
-
[1m[36mPostWithBaseOrderAAndB Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC[0m
|
753
|
-
[1m[36mPostWithBaseOrderBAndA Load (0.1ms)[0m [1m[34mSELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC[0m
|
754
|
-
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mrollback transaction[0m
|