active_sort_order 0.9.3 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -1
  3. data/lib/active_sort_order/concerns/sort_order_concern.rb +10 -8
  4. data/lib/active_sort_order/version.rb +1 -1
  5. data/lib/active_sort_order.rb +10 -6
  6. metadata +21 -81
  7. data/test/dummy_app/Rakefile +0 -7
  8. data/test/dummy_app/app/assets/config/manifest.js +0 -3
  9. data/test/dummy_app/app/assets/javascripts/application.js +0 -0
  10. data/test/dummy_app/app/assets/stylesheets/application.css +0 -3
  11. data/test/dummy_app/app/controllers/application_controller.rb +0 -3
  12. data/test/dummy_app/app/models/application_record.rb +0 -3
  13. data/test/dummy_app/app/models/post.rb +0 -3
  14. data/test/dummy_app/app/models/post_with_base_order_a.rb +0 -7
  15. data/test/dummy_app/app/models/post_with_base_order_a_and_b.rb +0 -7
  16. data/test/dummy_app/app/models/post_with_base_order_b.rb +0 -7
  17. data/test/dummy_app/app/models/post_with_base_order_b_and_a.rb +0 -7
  18. data/test/dummy_app/app/models/post_with_volatile_base_order.rb +0 -7
  19. data/test/dummy_app/app/views/layouts/application.html.erb +0 -14
  20. data/test/dummy_app/config/application.rb +0 -61
  21. data/test/dummy_app/config/boot.rb +0 -10
  22. data/test/dummy_app/config/database.yml +0 -20
  23. data/test/dummy_app/config/environment.rb +0 -5
  24. data/test/dummy_app/config/environments/development.rb +0 -30
  25. data/test/dummy_app/config/environments/production.rb +0 -60
  26. data/test/dummy_app/config/environments/test.rb +0 -41
  27. data/test/dummy_app/config/initializers/backtrace_silencers.rb +0 -7
  28. data/test/dummy_app/config/initializers/inflections.rb +0 -10
  29. data/test/dummy_app/config/initializers/mime_types.rb +0 -5
  30. data/test/dummy_app/config/initializers/secret_token.rb +0 -11
  31. data/test/dummy_app/config/initializers/session_store.rb +0 -8
  32. data/test/dummy_app/config/initializers/wrap_parameters.rb +0 -14
  33. data/test/dummy_app/config/locales/en.yml +0 -5
  34. data/test/dummy_app/config/routes.rb +0 -6
  35. data/test/dummy_app/config/secrets.yml +0 -22
  36. data/test/dummy_app/config.ru +0 -4
  37. data/test/dummy_app/db/migrate/20210128155312_set_up_test_tables.rb +0 -15
  38. data/test/dummy_app/db/schema.rb +0 -19
  39. data/test/dummy_app/db/test.sqlite3 +0 -0
  40. data/test/dummy_app/log/test.log +0 -542
  41. data/test/test_helper.rb +0 -63
  42. data/test/unit/active_sort_order_test.rb +0 -144
  43. data/test/unit/errors_test.rb +0 -204
@@ -1,22 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- development:
14
- secret_key_base: d28054e102cd55dcd684cee239d31ddf1e1acd83bd879dd5f671e989f5c9d94ec1ede00e7fcf9b6bde4cd115f93c54e3ba6c5dc05d233292542f27a79706fcb4
15
-
16
- test:
17
- secret_key_base: 378b4f2309d4898f5170b41624e19bf60ce8a154ad87c100e8846bddcf4c28b72b533f2e73738ef8f6eabb7a773a0a0e7c32c0649916c5f280eb7ac621fc318c
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: 5e73c057b92f67f980fbea4c1c2c495b25def0048f8c1c040fed9c08f49cd50a2ebf872dd87857afc0861479e9382fceb7d9837a0bce546c2f7594e2f4da45e3
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Dummy::Application
@@ -1,15 +0,0 @@
1
- if defined?(ActiveRecord::Migration::Current)
2
- migration_klass = ActiveRecord::Migration::Current
3
- else
4
- migration_klass = ActiveRecord::Migration
5
- end
6
-
7
- class SetUpTestTables < migration_klass
8
-
9
- def change
10
- create_table :posts do |t|
11
- t.integer :a, :b
12
- end
13
- end
14
-
15
- end
@@ -1,19 +0,0 @@
1
- # This file is auto-generated from the current state of the database. Instead
2
- # of editing this file, please use the migrations feature of Active Record to
3
- # incrementally modify your database, and then regenerate this schema definition.
4
- #
5
- # This file is the source Rails uses to define your schema when running `rails
6
- # db:schema:load`. When creating a new database, `rails db:schema:load` tends to
7
- # be faster and is potentially less error prone than running all of your
8
- # migrations from scratch. Old migrations may fail to apply correctly if those
9
- # migrations use external dependencies or application code.
10
- #
11
- # It's strongly recommended that you check this file into your version control system.
12
-
13
- ActiveRecord::Schema.define(version: 2020_10_01_061824) do
14
-
15
- create_table "posts", force: :cascade do |t|
16
- t.integer :a, :b
17
- end
18
-
19
- end
Binary file
@@ -1,542 +0,0 @@
1
-  (1.0ms) SELECT sqlite_version(*)
2
-  (0.0ms) SELECT sqlite_version(*)
3
-  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)
4
-  (0.8ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime(6) NOT NULL, "updated_at" datetime(6) NOT NULL)
5
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
6
- Migrating to SetUpTestTables (20210128155312)
7
- TRANSACTION (0.0ms) begin transaction
8
-  (0.3ms) CREATE TABLE "posts" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "a" integer, "b" integer)
9
- ActiveRecord::SchemaMigration Create (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20210128155312"]]
10
- TRANSACTION (0.7ms) commit transaction
11
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
12
- TRANSACTION (0.0ms) begin transaction
13
- ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2021-04-28 15:34:46.254639"], ["updated_at", "2021-04-28 15:34:46.254639"]]
14
- TRANSACTION (0.8ms) commit transaction
15
-  (0.7ms) DELETE FROM posts;
16
-  (0.1ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
17
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 1], ["b", 3], ["LIMIT", 1]]
18
- TRANSACTION (0.0ms) begin transaction
19
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 1], ["b", 3]]
20
- TRANSACTION (0.5ms) commit transaction
21
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 2], ["b", 2], ["LIMIT", 1]]
22
- TRANSACTION (0.0ms) begin transaction
23
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 2], ["b", 2]]
24
- TRANSACTION (0.4ms) commit transaction
25
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 3], ["b", 2], ["LIMIT", 1]]
26
- TRANSACTION (0.0ms) begin transaction
27
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 3], ["b", 2]]
28
- TRANSACTION (0.5ms) commit transaction
29
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 4], ["b", 1], ["LIMIT", 1]]
30
- TRANSACTION (0.0ms) begin transaction
31
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 4], ["b", 1]]
32
- TRANSACTION (0.5ms) commit transaction
33
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 5], ["b", 1], ["LIMIT", 1]]
34
- TRANSACTION (0.0ms) begin transaction
35
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 5], ["b", 1]]
36
- TRANSACTION (0.6ms) commit transaction
37
- TRANSACTION (0.0ms) begin transaction
38
- -------------------------------------------------------
39
- ActiveSortOrderTest: test_override_base_sort_order_only
40
- -------------------------------------------------------
41
-  (0.1ms) SELECT COUNT(*) FROM "posts"
42
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
43
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" DESC
44
- TRANSACTION (0.0ms) rollback transaction
45
- TRANSACTION (0.0ms) begin transaction
46
- --------------------------------------------------
47
- ActiveSortOrderTest: test_base_sort_order_and_sort
48
- --------------------------------------------------
49
-  (0.1ms) SELECT COUNT(*) FROM "posts"
50
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
51
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC
52
- TRANSACTION (0.0ms) rollback transaction
53
- TRANSACTION (0.0ms) begin transaction
54
- -------------------------------------------------------------
55
- ActiveSortOrderTest: test_class_method_base_sort_order_errors
56
- -------------------------------------------------------------
57
- TRANSACTION (0.0ms) rollback transaction
58
- TRANSACTION (0.0ms) begin transaction
59
- ---------------------------------------------
60
- ActiveSortOrderTest: test_exposes_main_module
61
- ---------------------------------------------
62
- TRANSACTION (0.0ms) rollback transaction
63
- TRANSACTION (0.0ms) begin transaction
64
- -----------------------------------------------
65
- ActiveSortOrderTest: test_sort_direction_errors
66
- -----------------------------------------------
67
- TRANSACTION (0.0ms) rollback transaction
68
- TRANSACTION (0.0ms) begin transaction
69
- -----------------------------------------
70
- ActiveSortOrderTest: test_exposes_version
71
- -----------------------------------------
72
- TRANSACTION (0.1ms) rollback transaction
73
- TRANSACTION (0.0ms) begin transaction
74
- -------------------------------------------------------
75
- ActiveSortOrderTest: test_base_sort_order_default_value
76
- -------------------------------------------------------
77
- TRANSACTION (0.0ms) rollback transaction
78
- TRANSACTION (0.0ms) begin transaction
79
- -----------------------------------------
80
- ActiveSortOrderTest: test_sort_str_errors
81
- -----------------------------------------
82
- TRANSACTION (0.0ms) rollback transaction
83
- TRANSACTION (0.1ms) begin transaction
84
- ----------------------------------------------------
85
- ActiveSortOrderTest: test_class_base_sort_order_only
86
- ----------------------------------------------------
87
-  (0.1ms) SELECT COUNT(*) FROM "posts"
88
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC
89
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
90
- PostWithBaseOrderAAndB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC
91
- PostWithBaseOrderBAndA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC
92
- TRANSACTION (0.1ms) rollback transaction
93
- TRANSACTION (0.0ms) begin transaction
94
- ---------------------------------------------------------
95
- ActiveSortOrderTest: test_argument_base_sort_order_errors
96
- ---------------------------------------------------------
97
- TRANSACTION (0.0ms) rollback transaction
98
- TRANSACTION (0.0ms) begin transaction
99
- -----------------------------------
100
- ActiveSortOrderTest: test_sort_only
101
- -----------------------------------
102
-  (0.1ms) SELECT COUNT(*) FROM "posts"
103
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC
104
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
105
- TRANSACTION (0.0ms) rollback transaction
106
-  (0.9ms) SELECT sqlite_version(*)
107
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
108
-  (0.0ms) SELECT sqlite_version(*)
109
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
110
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
111
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
112
-  (1.4ms) DELETE FROM posts;
113
-  (0.8ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
114
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 1], ["b", 3], ["LIMIT", 1]]
115
- TRANSACTION (0.0ms) begin transaction
116
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 1], ["b", 3]]
117
- TRANSACTION (0.7ms) commit transaction
118
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 2], ["b", 2], ["LIMIT", 1]]
119
- TRANSACTION (0.0ms) begin transaction
120
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 2], ["b", 2]]
121
- TRANSACTION (0.5ms) commit transaction
122
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 3], ["b", 2], ["LIMIT", 1]]
123
- TRANSACTION (0.0ms) begin transaction
124
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 3], ["b", 2]]
125
- TRANSACTION (0.5ms) commit transaction
126
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 4], ["b", 1], ["LIMIT", 1]]
127
- TRANSACTION (0.0ms) begin transaction
128
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 4], ["b", 1]]
129
- TRANSACTION (0.8ms) commit transaction
130
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 5], ["b", 1], ["LIMIT", 1]]
131
- TRANSACTION (0.0ms) begin transaction
132
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 5], ["b", 1]]
133
- TRANSACTION (0.5ms) commit transaction
134
- TRANSACTION (0.0ms) begin transaction
135
- --------------------------------------------------
136
- ActiveSortOrderTest: test_base_sort_order_and_sort
137
- --------------------------------------------------
138
-  (0.2ms) SELECT COUNT(*) FROM "posts"
139
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
140
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC
141
- TRANSACTION (0.0ms) rollback transaction
142
- TRANSACTION (0.0ms) begin transaction
143
- ---------------------------------------------
144
- ActiveSortOrderTest: test_exposes_main_module
145
- ---------------------------------------------
146
- TRANSACTION (0.0ms) rollback transaction
147
- TRANSACTION (0.0ms) begin transaction
148
- -----------------------------------------
149
- ActiveSortOrderTest: test_exposes_version
150
- -----------------------------------------
151
- TRANSACTION (0.0ms) rollback transaction
152
- TRANSACTION (0.0ms) begin transaction
153
- -------------------------------------------------------
154
- ActiveSortOrderTest: test_override_base_sort_order_only
155
- -------------------------------------------------------
156
-  (0.1ms) SELECT COUNT(*) FROM "posts"
157
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
158
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
159
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
160
- TRANSACTION (0.0ms) rollback transaction
161
- TRANSACTION (0.0ms) begin transaction
162
- -------------------------------------------------------
163
- ActiveSortOrderTest: test_base_sort_order_default_value
164
- -------------------------------------------------------
165
- TRANSACTION (0.0ms) rollback transaction
166
- TRANSACTION (0.0ms) begin transaction
167
- ----------------------------------------------------
168
- ActiveSortOrderTest: test_class_base_sort_order_only
169
- ----------------------------------------------------
170
-  (0.1ms) SELECT COUNT(*) FROM "posts"
171
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC
172
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
173
- PostWithBaseOrderAAndB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC
174
- PostWithBaseOrderBAndA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC
175
- TRANSACTION (0.1ms) rollback transaction
176
- TRANSACTION (0.0ms) begin transaction
177
- -----------------------------------
178
- ActiveSortOrderTest: test_sort_only
179
- -----------------------------------
180
-  (0.1ms) SELECT COUNT(*) FROM "posts"
181
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC
182
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
183
- TRANSACTION (0.0ms) rollback transaction
184
- TRANSACTION (0.0ms) begin transaction
185
- -----------------------------------------
186
- ActiveSortOrderTest: test_sort_str_errors
187
- -----------------------------------------
188
- TRANSACTION (0.0ms) rollback transaction
189
- TRANSACTION (0.0ms) begin transaction
190
- -------------------------------------------------------------
191
- ActiveSortOrderTest: test_class_method_base_sort_order_errors
192
- -------------------------------------------------------------
193
- TRANSACTION (0.0ms) rollback transaction
194
- TRANSACTION (0.0ms) begin transaction
195
- ---------------------------------------------------------
196
- ActiveSortOrderTest: test_argument_base_sort_order_errors
197
- ---------------------------------------------------------
198
- TRANSACTION (0.0ms) rollback transaction
199
- TRANSACTION (0.0ms) begin transaction
200
- -----------------------------------------------
201
- ActiveSortOrderTest: test_sort_direction_errors
202
- -----------------------------------------------
203
- TRANSACTION (0.1ms) rollback transaction
204
-  (1.1ms) SELECT sqlite_version(*)
205
-  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
206
-  (0.1ms) SELECT sqlite_version(*)
207
-  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
208
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
209
- ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
210
-  (1.6ms) DELETE FROM posts;
211
-  (1.3ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
212
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 1], ["b", 3], ["LIMIT", 1]]
213
- TRANSACTION (0.0ms) begin transaction
214
- Post Create (0.3ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 1], ["b", 3]]
215
- TRANSACTION (0.8ms) commit transaction
216
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 2], ["b", 2], ["LIMIT", 1]]
217
- TRANSACTION (0.0ms) begin transaction
218
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 2], ["b", 2]]
219
- TRANSACTION (0.6ms) commit transaction
220
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 3], ["b", 2], ["LIMIT", 1]]
221
- TRANSACTION (0.0ms) begin transaction
222
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 3], ["b", 2]]
223
- TRANSACTION (0.5ms) commit transaction
224
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 4], ["b", 1], ["LIMIT", 1]]
225
- TRANSACTION (0.0ms) begin transaction
226
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 4], ["b", 1]]
227
- TRANSACTION (0.7ms) commit transaction
228
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 5], ["b", 1], ["LIMIT", 1]]
229
- TRANSACTION (0.0ms) begin transaction
230
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 5], ["b", 1]]
231
- TRANSACTION (1.1ms) commit transaction
232
- TRANSACTION (0.1ms) begin transaction
233
- -------------------------------------------------------
234
- ActiveSortOrderTest: test_override_base_sort_order_only
235
- -------------------------------------------------------
236
-  (0.1ms) SELECT COUNT(*) FROM "posts"
237
- TRANSACTION (0.0ms) rollback transaction
238
- TRANSACTION (0.0ms) begin transaction
239
- -------------------------------------------------
240
- ActiveSortOrderTest: test_sort_on_multiple_fields
241
- -------------------------------------------------
242
-  (0.1ms) SELECT COUNT(*) FROM "posts"
243
- TRANSACTION (0.0ms) rollback transaction
244
- TRANSACTION (0.0ms) begin transaction
245
- --------------------------------------------------
246
- ActiveSortOrderTest: test_base_sort_order_and_sort
247
- --------------------------------------------------
248
-  (0.1ms) SELECT COUNT(*) FROM "posts"
249
- TRANSACTION (0.0ms) rollback transaction
250
- TRANSACTION (0.0ms) begin transaction
251
- ----------------------------------------------------
252
- ActiveSortOrderTest: test_class_base_sort_order_only
253
- ----------------------------------------------------
254
-  (0.1ms) SELECT COUNT(*) FROM "posts"
255
- TRANSACTION (0.0ms) rollback transaction
256
- TRANSACTION (0.0ms) begin transaction
257
- ---------------------------------------------
258
- ActiveSortOrderTest: test_exposes_main_module
259
- ---------------------------------------------
260
- TRANSACTION (0.0ms) rollback transaction
261
- TRANSACTION (0.0ms) begin transaction
262
- -----------------------------------
263
- ActiveSortOrderTest: test_sort_only
264
- -----------------------------------
265
-  (0.1ms) SELECT COUNT(*) FROM "posts"
266
- TRANSACTION (0.0ms) rollback transaction
267
- TRANSACTION (0.0ms) begin transaction
268
- -----------------------------------------
269
- ActiveSortOrderTest: test_exposes_version
270
- -----------------------------------------
271
- TRANSACTION (0.0ms) rollback transaction
272
- TRANSACTION (0.0ms) begin transaction
273
- -------------------------------------------------------
274
- ActiveSortOrderTest: test_base_sort_order_default_value
275
- -------------------------------------------------------
276
- TRANSACTION (0.0ms) rollback transaction
277
- PostWithBaseOrderA Load (0.2ms) SELECT "posts".* FROM "posts" /* loading for inspect */ ORDER BY "posts"."b" DESC LIMIT ? [["LIMIT", 11]]
278
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ ORDER BY "posts"."b" DESC LIMIT ? [["LIMIT", 11]]
279
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
280
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
281
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
282
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
283
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
284
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
285
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
286
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" /* loading for inspect */ LIMIT ? [["LIMIT", 11]]
287
-  (0.7ms) SELECT sqlite_version(*)
288
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
289
-  (0.0ms) SELECT sqlite_version(*)
290
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
291
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
292
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
293
-  (1.8ms) DELETE FROM posts;
294
-  (1.4ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
295
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 1], ["b", 3], ["LIMIT", 1]]
296
- TRANSACTION (0.0ms) begin transaction
297
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 1], ["b", 3]]
298
- TRANSACTION (0.8ms) commit transaction
299
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 2], ["b", 2], ["LIMIT", 1]]
300
- TRANSACTION (0.0ms) begin transaction
301
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 2], ["b", 2]]
302
- TRANSACTION (0.7ms) commit transaction
303
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 3], ["b", 2], ["LIMIT", 1]]
304
- TRANSACTION (0.0ms) begin transaction
305
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 3], ["b", 2]]
306
- TRANSACTION (0.7ms) commit transaction
307
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 4], ["b", 1], ["LIMIT", 1]]
308
- TRANSACTION (0.0ms) begin transaction
309
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 4], ["b", 1]]
310
- TRANSACTION (0.7ms) commit transaction
311
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 5], ["b", 1], ["LIMIT", 1]]
312
- TRANSACTION (0.0ms) begin transaction
313
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 5], ["b", 1]]
314
- TRANSACTION (0.7ms) commit transaction
315
- TRANSACTION (0.0ms) begin transaction
316
- ---------------------------------------------
317
- ActiveSortOrderTest: test_exposes_main_module
318
- ---------------------------------------------
319
- TRANSACTION (0.0ms) rollback transaction
320
- TRANSACTION (0.0ms) begin transaction
321
- -------------------------------------------------------
322
- ActiveSortOrderTest: test_override_base_sort_order_only
323
- -------------------------------------------------------
324
-  (0.1ms) SELECT COUNT(*) FROM "posts"
325
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
326
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
327
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
328
- TRANSACTION (0.0ms) rollback transaction
329
- TRANSACTION (0.0ms) begin transaction
330
- -----------------------------------
331
- ActiveSortOrderTest: test_sort_only
332
- -----------------------------------
333
-  (0.1ms) SELECT COUNT(*) FROM "posts"
334
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC
335
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
336
- TRANSACTION (0.0ms) rollback transaction
337
- TRANSACTION (0.0ms) begin transaction
338
- -----------------------------------------
339
- ActiveSortOrderTest: test_exposes_version
340
- -----------------------------------------
341
- TRANSACTION (0.0ms) rollback transaction
342
- TRANSACTION (0.0ms) begin transaction
343
- --------------------------------------------------
344
- ActiveSortOrderTest: test_base_sort_order_and_sort
345
- --------------------------------------------------
346
-  (0.1ms) SELECT COUNT(*) FROM "posts"
347
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
348
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC
349
- TRANSACTION (0.0ms) rollback transaction
350
- TRANSACTION (0.0ms) begin transaction
351
- -------------------------------------------------
352
- ActiveSortOrderTest: test_sort_on_multiple_fields
353
- -------------------------------------------------
354
-  (0.1ms) SELECT COUNT(*) FROM "posts"
355
- TRANSACTION (0.0ms) rollback transaction
356
- TRANSACTION (0.0ms) begin transaction
357
- -------------------------------------------------------
358
- ActiveSortOrderTest: test_base_sort_order_default_value
359
- -------------------------------------------------------
360
- TRANSACTION (0.0ms) rollback transaction
361
- TRANSACTION (0.0ms) begin transaction
362
- ----------------------------------------------------
363
- ActiveSortOrderTest: test_class_base_sort_order_only
364
- ----------------------------------------------------
365
-  (0.1ms) SELECT COUNT(*) FROM "posts"
366
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC
367
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
368
- PostWithBaseOrderAAndB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC
369
- PostWithBaseOrderBAndA Load (0.8ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC
370
- TRANSACTION (0.1ms) rollback transaction
371
-  (0.7ms) SELECT sqlite_version(*)
372
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
373
-  (0.0ms) SELECT sqlite_version(*)
374
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
375
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
376
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
377
-  (1.2ms) DELETE FROM posts;
378
-  (0.9ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
379
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 1], ["b", 3], ["LIMIT", 1]]
380
- TRANSACTION (0.0ms) begin transaction
381
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 1], ["b", 3]]
382
- TRANSACTION (0.7ms) commit transaction
383
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 2], ["b", 2], ["LIMIT", 1]]
384
- TRANSACTION (0.0ms) begin transaction
385
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 2], ["b", 2]]
386
- TRANSACTION (0.7ms) commit transaction
387
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 3], ["b", 2], ["LIMIT", 1]]
388
- TRANSACTION (0.0ms) begin transaction
389
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 3], ["b", 2]]
390
- TRANSACTION (0.7ms) commit transaction
391
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 4], ["b", 1], ["LIMIT", 1]]
392
- TRANSACTION (0.0ms) begin transaction
393
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 4], ["b", 1]]
394
- TRANSACTION (0.7ms) commit transaction
395
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 5], ["b", 1], ["LIMIT", 1]]
396
- TRANSACTION (0.0ms) begin transaction
397
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 5], ["b", 1]]
398
- TRANSACTION (0.7ms) commit transaction
399
- TRANSACTION (0.0ms) begin transaction
400
- -----------------------------------
401
- ActiveSortOrderTest: test_sort_only
402
- -----------------------------------
403
-  (0.1ms) SELECT COUNT(*) FROM "posts"
404
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC
405
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
406
- TRANSACTION (0.0ms) rollback transaction
407
- TRANSACTION (0.0ms) begin transaction
408
- ---------------------------------------------
409
- ActiveSortOrderTest: test_exposes_main_module
410
- ---------------------------------------------
411
- TRANSACTION (0.0ms) rollback transaction
412
- TRANSACTION (0.0ms) begin transaction
413
- -----------------------------------------
414
- ActiveSortOrderTest: test_exposes_version
415
- -----------------------------------------
416
- TRANSACTION (0.0ms) rollback transaction
417
- TRANSACTION (0.0ms) begin transaction
418
- ----------------------------------------------------
419
- ActiveSortOrderTest: test_class_base_sort_order_only
420
- ----------------------------------------------------
421
-  (0.1ms) SELECT COUNT(*) FROM "posts"
422
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC
423
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
424
- PostWithBaseOrderAAndB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC
425
- PostWithBaseOrderBAndA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC
426
- TRANSACTION (0.0ms) rollback transaction
427
- TRANSACTION (0.0ms) begin transaction
428
- -------------------------------------------------------
429
- ActiveSortOrderTest: test_override_base_sort_order_only
430
- -------------------------------------------------------
431
-  (0.1ms) SELECT COUNT(*) FROM "posts"
432
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
433
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
434
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
435
- TRANSACTION (0.0ms) rollback transaction
436
- TRANSACTION (0.0ms) begin transaction
437
- -------------------------------------------------------
438
- ActiveSortOrderTest: test_base_sort_order_default_value
439
- -------------------------------------------------------
440
- TRANSACTION (0.0ms) rollback transaction
441
- TRANSACTION (0.0ms) begin transaction
442
- --------------------------------------------------
443
- ActiveSortOrderTest: test_base_sort_order_and_sort
444
- --------------------------------------------------
445
-  (0.1ms) SELECT COUNT(*) FROM "posts"
446
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
447
- PostWithBaseOrderB Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC
448
- TRANSACTION (0.0ms) rollback transaction
449
- TRANSACTION (0.0ms) begin transaction
450
- -------------------------------------------------
451
- ActiveSortOrderTest: test_sort_on_multiple_fields
452
- -------------------------------------------------
453
-  (0.1ms) SELECT COUNT(*) FROM "posts"
454
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY b asc, a asc, posts.a ASC
455
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY b desc, a desc, posts.a ASC
456
- TRANSACTION (0.0ms) rollback transaction
457
-  (0.7ms) SELECT sqlite_version(*)
458
-  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? [["key", "schema_sha1"]]
459
-  (0.0ms) SELECT sqlite_version(*)
460
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
461
-  (0.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
462
- ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]]
463
-  (1.3ms) DELETE FROM posts;
464
-  (0.7ms) UPDATE `sqlite_sequence` SET `seq` = 0 WHERE `name` = 'posts';
465
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 1], ["b", 3], ["LIMIT", 1]]
466
- TRANSACTION (0.0ms) begin transaction
467
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 1], ["b", 3]]
468
- TRANSACTION (0.7ms) commit transaction
469
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 2], ["b", 2], ["LIMIT", 1]]
470
- TRANSACTION (0.0ms) begin transaction
471
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 2], ["b", 2]]
472
- TRANSACTION (0.6ms) commit transaction
473
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 3], ["b", 2], ["LIMIT", 1]]
474
- TRANSACTION (0.0ms) begin transaction
475
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 3], ["b", 2]]
476
- TRANSACTION (0.8ms) commit transaction
477
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 4], ["b", 1], ["LIMIT", 1]]
478
- TRANSACTION (0.0ms) begin transaction
479
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 4], ["b", 1]]
480
- TRANSACTION (0.7ms) commit transaction
481
- Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."a" = ? AND "posts"."b" = ? LIMIT ? [["a", 5], ["b", 1], ["LIMIT", 1]]
482
- TRANSACTION (0.0ms) begin transaction
483
- Post Create (0.2ms) INSERT INTO "posts" ("a", "b") VALUES (?, ?) [["a", 5], ["b", 1]]
484
- TRANSACTION (0.7ms) commit transaction
485
- TRANSACTION (0.0ms) begin transaction
486
- -------------------------------------------------
487
- ActiveSortOrderTest: test_sort_on_multiple_fields
488
- -------------------------------------------------
489
-  (0.1ms) SELECT COUNT(*) FROM "posts"
490
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY b asc, a asc, posts.a ASC
491
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY b desc, a desc, posts.a ASC
492
- TRANSACTION (0.1ms) rollback transaction
493
- TRANSACTION (0.0ms) begin transaction
494
- ----------------------------------------------------
495
- ActiveSortOrderTest: test_class_base_sort_order_only
496
- ----------------------------------------------------
497
-  (0.1ms) SELECT COUNT(*) FROM "posts"
498
- PostWithBaseOrderA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC
499
- PostWithBaseOrderB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
500
- PostWithBaseOrderAAndB Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.a ASC, posts.b ASC
501
- PostWithBaseOrderBAndA Load (0.1ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC, posts.a ASC
502
- TRANSACTION (0.0ms) rollback transaction
503
- TRANSACTION (0.0ms) begin transaction
504
- --------------------------------------------------
505
- ActiveSortOrderTest: test_base_sort_order_and_sort
506
- --------------------------------------------------
507
-  (0.1ms) SELECT COUNT(*) FROM "posts"
508
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
509
- PostWithBaseOrderB Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.b DESC, posts.b ASC
510
- TRANSACTION (0.0ms) rollback transaction
511
- TRANSACTION (0.0ms) begin transaction
512
- -----------------------------------------
513
- ActiveSortOrderTest: test_exposes_version
514
- -----------------------------------------
515
- TRANSACTION (0.0ms) rollback transaction
516
- TRANSACTION (0.0ms) begin transaction
517
- -----------------------------------
518
- ActiveSortOrderTest: test_sort_only
519
- -----------------------------------
520
-  (0.1ms) SELECT COUNT(*) FROM "posts"
521
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY a desc, posts.a ASC
522
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.a DESC, posts.a ASC
523
- TRANSACTION (0.0ms) rollback transaction
524
- TRANSACTION (0.0ms) begin transaction
525
- -------------------------------------------------------
526
- ActiveSortOrderTest: test_base_sort_order_default_value
527
- -------------------------------------------------------
528
- TRANSACTION (0.0ms) rollback transaction
529
- TRANSACTION (0.0ms) begin transaction
530
- -------------------------------------------------------
531
- ActiveSortOrderTest: test_override_base_sort_order_only
532
- -------------------------------------------------------
533
-  (0.1ms) SELECT COUNT(*) FROM "posts"
534
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY posts.b ASC
535
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
536
- PostWithBaseOrderA Load (0.0ms) SELECT "posts".* FROM "posts" ORDER BY "posts"."id" ASC
537
- TRANSACTION (0.0ms) rollback transaction
538
- TRANSACTION (0.0ms) begin transaction
539
- ---------------------------------------------
540
- ActiveSortOrderTest: test_exposes_main_module
541
- ---------------------------------------------
542
- TRANSACTION (0.0ms) rollback transaction