squint 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/squint.rb +14 -3
- data/lib/squint/version.rb +1 -1
- data/test/dummy/log/test.log +2229 -0
- data/test/squint_test.rb +7 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a5809890b110fc3863311aad72c13db199e7e88
|
4
|
+
data.tar.gz: '080abf910d75ad22c8fbe88888dfdcc3eb097e85'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dae6174d587f03165c68a23c29a587b36a10020e58e8270cbd9140a51b206677df2dc5f78f54184baef9ec1caf1c03df483589d93f32baece688a09397a9aff5
|
7
|
+
data.tar.gz: 0e14e56fda9c7f06fd164a1005e686622ebfc29b07d4208e0030c3b00f63bda28b79182d473a059cc77df03d763a82c6f23e6b3e0f50c37dac128e23c32373ac
|
data/lib/squint.rb
CHANGED
@@ -12,8 +12,13 @@ module Squint
|
|
12
12
|
# build_where(jsonb_column: {key1: value1}, regular_column: value)
|
13
13
|
# build_where(jsonb_column: {key1: value1}, association: {column: value))
|
14
14
|
def build_where(*args)
|
15
|
-
|
16
|
-
|
15
|
+
save_args = []
|
16
|
+
reln = args.inject([]) do |memo, arg|
|
17
|
+
if !save_args.empty?
|
18
|
+
save_args << arg
|
19
|
+
memo += super(save_args)
|
20
|
+
save_args = []
|
21
|
+
elsif arg.is_a?(Hash)
|
17
22
|
arg.keys.each do |key|
|
18
23
|
if arg[key].is_a?(Hash) && HASH_DATA_COLUMNS[key]
|
19
24
|
memo << hash_field_reln(key => arg[key])
|
@@ -22,10 +27,16 @@ module Squint
|
|
22
27
|
end
|
23
28
|
end
|
24
29
|
elsif arg.present?
|
25
|
-
|
30
|
+
if arg.is_a? String
|
31
|
+
save_args << arg
|
32
|
+
else
|
33
|
+
memo += super(arg)
|
34
|
+
end
|
26
35
|
end
|
27
36
|
memo
|
28
37
|
end
|
38
|
+
reln += super(save_args) unless save_args.empty?
|
39
|
+
reln
|
29
40
|
end
|
30
41
|
|
31
42
|
# hash_field_reln
|
data/lib/squint/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -27197,3 +27197,2232 @@ SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
|
|
27197
27197
|
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))[0m
|
27198
27198
|
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1 [["id", 113629430]]
|
27199
27199
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27200
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27201
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
|
27202
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27203
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "posts"
|
27204
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post One Title', 'Post One Body', '{"referer":"http://example.com/one"}', '"referer"=>"http://example.com/one"', '2017-06-30 19:44:16', '2017-06-30 19:44:16', 980190962)[0m
|
27205
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post Two Title', 'Post Two Body', '{"referer":"http://example.com/two"}', '"referer"=>"http://example.com/two"', '2017-06-30 19:44:16', '2017-06-30 19:44:16', 298486374)
|
27206
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "created_at", "updated_at", "id") VALUES ('Post Three Title', 'Post Three Body', '2017-06-30 19:44:16', '2017-06-30 19:44:16', 113629430)[0m
|
27207
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext title', 'With Storext title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"35124"}', '"hstore_zip_code"=>"35124"', '2017-06-30 19:44:16', '2017-06-30 19:44:16', 1031054186)
|
27208
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext friends title', 'With Storext friends title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36081","jsonb_friend_count":10}', '"hstore_zip_code"=>"36081", "hstore_friend_count"=>"10"', '2017-06-30 19:44:16', '2017-06-30 19:44:16', 433859201)[0m
|
27209
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is awesome title', 'With Storext is awesome title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":false}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"false"', '2017-06-30 19:44:16', '2017-06-30 19:44:16', 996585442)
|
27210
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is aweesome not default title', 'With Storext is awesome not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":true}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"true"', '2017-06-30 19:44:16', '2017-06-30 19:44:16', 423633666)[0m
|
27211
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present default title', 'With Storext is present default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"nil"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"nil"', '2017-06-30 19:44:16', '2017-06-30 19:44:16', 813641888)
|
27212
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present not default title', 'With Storext is present not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"Heck Yeah"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"Heck Yeah"', '2017-06-30 19:44:16', '2017-06-30 19:44:16', 199613990)[0m
|
27213
|
+
[1m[35m (0.1ms)[0m COMMIT
|
27214
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL[0m
|
27215
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27216
|
+
-------------------------------------------------------
|
27217
|
+
SquintTest: test_finds_records_for_properties_populated
|
27218
|
+
-------------------------------------------------------
|
27219
|
+
[1m[36m (1.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'[0m
|
27220
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
27221
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27222
|
+
------------------------------------------------------------------
|
27223
|
+
SquintTest: test_finds_records_for_properties_populated_with_array
|
27224
|
+
------------------------------------------------------------------
|
27225
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
|
27226
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
27227
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27228
|
+
---------------------------------------------------------
|
27229
|
+
SquintTest: test_finds_records_for_request_info_populated
|
27230
|
+
---------------------------------------------------------
|
27231
|
+
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'[0m
|
27232
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
27233
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
27234
|
+
-----------------------------------------------------------------------------------------
|
27235
|
+
SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
|
27236
|
+
-----------------------------------------------------------------------------------------
|
27237
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts"
|
27238
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL[0m
|
27239
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
27240
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27241
|
+
--------------------------------------------------------
|
27242
|
+
SquintTest: test_finds_records_for_request_info_with_nil
|
27243
|
+
--------------------------------------------------------
|
27244
|
+
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL
|
27245
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
27246
|
+
[1m[35m (0.3ms)[0m BEGIN
|
27247
|
+
---------------------------------------------------------------------
|
27248
|
+
SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
|
27249
|
+
---------------------------------------------------------------------
|
27250
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27251
|
+
[1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_is_awesome' = 'false' OR ((exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') IS NULL))
|
27252
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
27253
|
+
[1m[35m (0.2ms)[0m BEGIN
|
27254
|
+
-----------------------------------------------------------------
|
27255
|
+
SquintTest: test_detects_present_integer_storext_jsonb_attributes
|
27256
|
+
-----------------------------------------------------------------
|
27257
|
+
[1m[36m (0.9ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'[0m
|
27258
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
27259
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
27260
|
+
---------------------------------------------------------
|
27261
|
+
SquintTest: test_detects_present_storext_jsonb_attributes
|
27262
|
+
---------------------------------------------------------
|
27263
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
|
27264
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
27265
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27266
|
+
------------------------------------------------------------------
|
27267
|
+
SquintTest: test_detects_present_integer_storext_hstore_attributes
|
27268
|
+
------------------------------------------------------------------
|
27269
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'[0m
|
27270
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
27271
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27272
|
+
---------------------------------------------
|
27273
|
+
SquintTest: test_generates_SQL_for_properties
|
27274
|
+
---------------------------------------------
|
27275
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
27276
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27277
|
+
--------------------------------------------------------------------
|
27278
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array
|
27279
|
+
--------------------------------------------------------------------
|
27280
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
|
27281
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
27282
|
+
[1m[35m (0.2ms)[0m BEGIN
|
27283
|
+
-------------------------------------------------------------------------------------------------
|
27284
|
+
SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
|
27285
|
+
-------------------------------------------------------------------------------------------------
|
27286
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'[0m
|
27287
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
27288
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27289
|
+
---------------------------------------------------------------------------
|
27290
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
|
27291
|
+
---------------------------------------------------------------------------
|
27292
|
+
[1m[35mPost Load (1.7ms)[0m SELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1
|
27293
|
+
[1m[36m (0.9ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))[0m
|
27294
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1 [["id", 113629430]]
|
27295
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
27296
|
+
[1m[35m (0.3ms)[0m BEGIN
|
27297
|
+
-----------------------------------------------------------------
|
27298
|
+
SquintTest: test_detects_default_integer_storext_jsonb_attributes
|
27299
|
+
-----------------------------------------------------------------
|
27300
|
+
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27301
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '0' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') = FALSE))
|
27302
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
27303
|
+
[1m[35m (0.3ms)[0m BEGIN
|
27304
|
+
-------------------------------------------------------------------------------------------
|
27305
|
+
SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
|
27306
|
+
-------------------------------------------------------------------------------------------
|
27307
|
+
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27308
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL
|
27309
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
27310
|
+
[1m[35m (0.3ms)[0m BEGIN
|
27311
|
+
---------------------------------------------------------------------------------------------------
|
27312
|
+
SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
|
27313
|
+
---------------------------------------------------------------------------------------------------
|
27314
|
+
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'[0m
|
27315
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
27316
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
27317
|
+
--------------------------------------------------------------------------------
|
27318
|
+
SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
|
27319
|
+
--------------------------------------------------------------------------------
|
27320
|
+
[1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
|
27321
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
27322
|
+
[1m[35m (0.3ms)[0m BEGIN
|
27323
|
+
----------------------------------------------------------------------------
|
27324
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
|
27325
|
+
----------------------------------------------------------------------------
|
27326
|
+
[1m[36mPost Load (1.1ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
27327
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
27328
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
27329
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
27330
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27331
|
+
----------------------------------------------------------------------
|
27332
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
|
27333
|
+
----------------------------------------------------------------------
|
27334
|
+
[1m[35mPost Load (1.0ms)[0m SELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1
|
27335
|
+
[1m[36m (1.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))[0m
|
27336
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1 [["id", 113629430]]
|
27337
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
27338
|
+
[1m[35m (0.2ms)[0m BEGIN
|
27339
|
+
---------------------------------------------------------------------
|
27340
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
|
27341
|
+
---------------------------------------------------------------------
|
27342
|
+
[1m[36mPost Load (1.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
27343
|
+
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
27344
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
27345
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
27346
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27347
|
+
------------------------------------------------------------------
|
27348
|
+
SquintTest: test_detects_default_integer_storext_hstore_attributes
|
27349
|
+
------------------------------------------------------------------
|
27350
|
+
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "posts"
|
27351
|
+
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_friend_count' = '0' OR ((exist("posts"."storext_hstore_attributes", 'hstore_friend_count') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_friend_count') IS NULL))[0m
|
27352
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
27353
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27354
|
+
----------------------------------------------------------
|
27355
|
+
SquintTest: test_detects_default_storext_hstore_attributes
|
27356
|
+
----------------------------------------------------------
|
27357
|
+
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "posts"
|
27358
|
+
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))[0m
|
27359
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
27360
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
27361
|
+
---------------------------------------------------------
|
27362
|
+
SquintTest: test_detects_default_storext_jsonb_attributes
|
27363
|
+
---------------------------------------------------------
|
27364
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "posts"
|
27365
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))[0m
|
27366
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
27367
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
27368
|
+
----------------------------------------------------------------------------------
|
27369
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
|
27370
|
+
----------------------------------------------------------------------------------
|
27371
|
+
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
|
27372
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
27373
|
+
[1m[35m (0.3ms)[0m BEGIN
|
27374
|
+
--------------------------------------------------------------------
|
27375
|
+
SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
|
27376
|
+
--------------------------------------------------------------------
|
27377
|
+
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27378
|
+
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_is_awesome' = 'false' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') = FALSE))
|
27379
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
27380
|
+
[1m[35m (0.3ms)[0m BEGIN
|
27381
|
+
----------------------------------------------------------
|
27382
|
+
SquintTest: test_detects_present_storext_hstore_attributes
|
27383
|
+
----------------------------------------------------------
|
27384
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'[0m
|
27385
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
27386
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27387
|
+
------------------------------------------------------
|
27388
|
+
SquintTest: test_finds_records_for_properties_with_nil
|
27389
|
+
------------------------------------------------------
|
27390
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
|
27391
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
27392
|
+
[1m[35m (0.3ms)[0m BEGIN
|
27393
|
+
-----------------------------------------------
|
27394
|
+
SquintTest: test_generates_SQL_for_request_info
|
27395
|
+
-----------------------------------------------
|
27396
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
27397
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27398
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27399
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27400
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27401
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
|
27402
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
27403
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "posts"
|
27404
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post One Title', 'Post One Body', '{"referer":"http://example.com/one"}', '"referer"=>"http://example.com/one"', '2017-06-30 19:57:58', '2017-06-30 19:57:58', 980190962)[0m
|
27405
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post Two Title', 'Post Two Body', '{"referer":"http://example.com/two"}', '"referer"=>"http://example.com/two"', '2017-06-30 19:57:58', '2017-06-30 19:57:58', 298486374)
|
27406
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "created_at", "updated_at", "id") VALUES ('Post Three Title', 'Post Three Body', '2017-06-30 19:57:58', '2017-06-30 19:57:58', 113629430)[0m
|
27407
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext title', 'With Storext title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"35124"}', '"hstore_zip_code"=>"35124"', '2017-06-30 19:57:58', '2017-06-30 19:57:58', 1031054186)
|
27408
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext friends title', 'With Storext friends title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36081","jsonb_friend_count":10}', '"hstore_zip_code"=>"36081", "hstore_friend_count"=>"10"', '2017-06-30 19:57:58', '2017-06-30 19:57:58', 433859201)[0m
|
27409
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is awesome title', 'With Storext is awesome title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":false}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"false"', '2017-06-30 19:57:58', '2017-06-30 19:57:58', 996585442)
|
27410
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is aweesome not default title', 'With Storext is awesome not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":true}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"true"', '2017-06-30 19:57:58', '2017-06-30 19:57:58', 423633666)[0m
|
27411
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present default title', 'With Storext is present default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"nil"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"nil"', '2017-06-30 19:57:58', '2017-06-30 19:57:58', 813641888)
|
27412
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present not default title', 'With Storext is present not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"Heck Yeah"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"Heck Yeah"', '2017-06-30 19:57:58', '2017-06-30 19:57:58', 199613990)[0m
|
27413
|
+
[1m[35m (0.1ms)[0m COMMIT
|
27414
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL[0m
|
27415
|
+
[1m[35m (0.2ms)[0m BEGIN
|
27416
|
+
---------------------------------------------------------
|
27417
|
+
SquintTest: test_detects_present_storext_jsonb_attributes
|
27418
|
+
---------------------------------------------------------
|
27419
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'[0m
|
27420
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
27421
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27422
|
+
-----------------------------------------------------------------
|
27423
|
+
SquintTest: test_detects_present_integer_storext_jsonb_attributes
|
27424
|
+
-----------------------------------------------------------------
|
27425
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
|
27426
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27427
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27428
|
+
---------------------------------------------
|
27429
|
+
SquintTest: test_generates_SQL_for_properties
|
27430
|
+
---------------------------------------------
|
27431
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27432
|
+
[1m[35m (0.2ms)[0m BEGIN
|
27433
|
+
-------------------------------------------------------------------------------------------
|
27434
|
+
SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
|
27435
|
+
-------------------------------------------------------------------------------------------
|
27436
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27437
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL
|
27438
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27439
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27440
|
+
----------------------------------------------------------------------------
|
27441
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
|
27442
|
+
----------------------------------------------------------------------------
|
27443
|
+
[1m[36mPost Load (0.4ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
27444
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
27445
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
27446
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
27447
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27448
|
+
-------------------------------------------------------
|
27449
|
+
SquintTest: test_finds_records_for_properties_populated
|
27450
|
+
-------------------------------------------------------
|
27451
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
|
27452
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27453
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27454
|
+
------------------------------------------------------------------
|
27455
|
+
SquintTest: test_detects_present_integer_storext_hstore_attributes
|
27456
|
+
------------------------------------------------------------------
|
27457
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'[0m
|
27458
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27459
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27460
|
+
--------------------------------------------------------------------------------
|
27461
|
+
SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
|
27462
|
+
--------------------------------------------------------------------------------
|
27463
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
|
27464
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27465
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27466
|
+
--------------------------------------------------------
|
27467
|
+
SquintTest: test_finds_records_for_request_info_with_nil
|
27468
|
+
--------------------------------------------------------
|
27469
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL[0m
|
27470
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27471
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27472
|
+
----------------------------------------------------------
|
27473
|
+
SquintTest: test_detects_present_storext_hstore_attributes
|
27474
|
+
----------------------------------------------------------
|
27475
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
|
27476
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27477
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27478
|
+
----------------------------------------------------------------------
|
27479
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
|
27480
|
+
----------------------------------------------------------------------
|
27481
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
27482
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
27483
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
27484
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
27485
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27486
|
+
------------------------------------------------------------------
|
27487
|
+
SquintTest: test_finds_records_for_properties_populated_with_array
|
27488
|
+
------------------------------------------------------------------
|
27489
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
|
27490
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27491
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27492
|
+
---------------------------------------------------------------------
|
27493
|
+
SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
|
27494
|
+
---------------------------------------------------------------------
|
27495
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27496
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_is_awesome' = 'false' OR ((exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') IS NULL))
|
27497
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27498
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27499
|
+
-----------------------------------------------------------------------------------------
|
27500
|
+
SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
|
27501
|
+
-----------------------------------------------------------------------------------------
|
27502
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27503
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
|
27504
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27505
|
+
[1m[35m (0.0ms)[0m BEGIN
|
27506
|
+
---------------------------------------------------------
|
27507
|
+
SquintTest: test_finds_records_for_request_info_populated
|
27508
|
+
---------------------------------------------------------
|
27509
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'[0m
|
27510
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
27511
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27512
|
+
-----------------------------------------------
|
27513
|
+
SquintTest: test_generates_SQL_for_request_info
|
27514
|
+
-----------------------------------------------
|
27515
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
27516
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
27517
|
+
-------------------------------------------------------------------------------------------------
|
27518
|
+
SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
|
27519
|
+
-------------------------------------------------------------------------------------------------
|
27520
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'
|
27521
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27522
|
+
[1m[35m (0.0ms)[0m BEGIN
|
27523
|
+
-----------------------------------------------------------------
|
27524
|
+
SquintTest: test_detects_default_integer_storext_jsonb_attributes
|
27525
|
+
-----------------------------------------------------------------
|
27526
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27527
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '0' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') = FALSE))
|
27528
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
27529
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27530
|
+
---------------------------------------------------------
|
27531
|
+
SquintTest: test_detects_default_storext_jsonb_attributes
|
27532
|
+
---------------------------------------------------------
|
27533
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27534
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
27535
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27536
|
+
[1m[35m (0.0ms)[0m BEGIN
|
27537
|
+
------------------------------------------------------
|
27538
|
+
SquintTest: test_finds_records_for_properties_with_nil
|
27539
|
+
------------------------------------------------------
|
27540
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL[0m
|
27541
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27542
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27543
|
+
---------------------------------------------------------------------------------------------------
|
27544
|
+
SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
|
27545
|
+
---------------------------------------------------------------------------------------------------
|
27546
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'
|
27547
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27548
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27549
|
+
------------------------------------------
|
27550
|
+
SquintTest: test_handles_string_parameters
|
27551
|
+
------------------------------------------
|
27552
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27553
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27554
|
+
---------------------------------------------------------------------------
|
27555
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
|
27556
|
+
---------------------------------------------------------------------------
|
27557
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
27558
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
27559
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
27560
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27561
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27562
|
+
--------------------------------------------------------------------
|
27563
|
+
SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
|
27564
|
+
--------------------------------------------------------------------
|
27565
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts"
|
27566
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_is_awesome' = 'false' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') = FALSE))[0m
|
27567
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27568
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27569
|
+
----------------------------------------------------------
|
27570
|
+
SquintTest: test_detects_default_storext_hstore_attributes
|
27571
|
+
----------------------------------------------------------
|
27572
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
27573
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))[0m
|
27574
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
27575
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27576
|
+
----------------------------------------------------------------------------------
|
27577
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
|
27578
|
+
----------------------------------------------------------------------------------
|
27579
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
|
27580
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27581
|
+
[1m[35m (0.0ms)[0m BEGIN
|
27582
|
+
--------------------------------------------------------------------
|
27583
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array
|
27584
|
+
--------------------------------------------------------------------
|
27585
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')[0m
|
27586
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27587
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27588
|
+
------------------------------------------------------------------
|
27589
|
+
SquintTest: test_detects_default_integer_storext_hstore_attributes
|
27590
|
+
------------------------------------------------------------------
|
27591
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
27592
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_friend_count' = '0' OR ((exist("posts"."storext_hstore_attributes", 'hstore_friend_count') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_friend_count') IS NULL))[0m
|
27593
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27594
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
27595
|
+
---------------------------------------------------------------------
|
27596
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
|
27597
|
+
---------------------------------------------------------------------
|
27598
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1
|
27599
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))[0m
|
27600
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1 [["id", 113629430]]
|
27601
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27602
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27603
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
|
27604
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27605
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "posts"
|
27606
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post One Title', 'Post One Body', '{"referer":"http://example.com/one"}', '"referer"=>"http://example.com/one"', '2017-06-30 19:58:32', '2017-06-30 19:58:32', 980190962)[0m
|
27607
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post Two Title', 'Post Two Body', '{"referer":"http://example.com/two"}', '"referer"=>"http://example.com/two"', '2017-06-30 19:58:32', '2017-06-30 19:58:32', 298486374)
|
27608
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "created_at", "updated_at", "id") VALUES ('Post Three Title', 'Post Three Body', '2017-06-30 19:58:32', '2017-06-30 19:58:32', 113629430)[0m
|
27609
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext title', 'With Storext title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"35124"}', '"hstore_zip_code"=>"35124"', '2017-06-30 19:58:32', '2017-06-30 19:58:32', 1031054186)
|
27610
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext friends title', 'With Storext friends title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36081","jsonb_friend_count":10}', '"hstore_zip_code"=>"36081", "hstore_friend_count"=>"10"', '2017-06-30 19:58:32', '2017-06-30 19:58:32', 433859201)[0m
|
27611
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is awesome title', 'With Storext is awesome title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":false}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"false"', '2017-06-30 19:58:32', '2017-06-30 19:58:32', 996585442)
|
27612
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is aweesome not default title', 'With Storext is awesome not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":true}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"true"', '2017-06-30 19:58:32', '2017-06-30 19:58:32', 423633666)[0m
|
27613
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present default title', 'With Storext is present default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"nil"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"nil"', '2017-06-30 19:58:32', '2017-06-30 19:58:32', 813641888)
|
27614
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present not default title', 'With Storext is present not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"Heck Yeah"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"Heck Yeah"', '2017-06-30 19:58:32', '2017-06-30 19:58:32', 199613990)[0m
|
27615
|
+
[1m[35m (0.1ms)[0m COMMIT
|
27616
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL[0m
|
27617
|
+
[1m[35m (0.2ms)[0m BEGIN
|
27618
|
+
------------------------------------------------------------------
|
27619
|
+
SquintTest: test_detects_default_integer_storext_hstore_attributes
|
27620
|
+
------------------------------------------------------------------
|
27621
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27622
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_friend_count' = '0' OR ((exist("posts"."storext_hstore_attributes", 'hstore_friend_count') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_friend_count') IS NULL))
|
27623
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
27624
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27625
|
+
----------------------------------------------------------------------------------
|
27626
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
|
27627
|
+
----------------------------------------------------------------------------------
|
27628
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)[0m
|
27629
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27630
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27631
|
+
-----------------------------------------------------------------
|
27632
|
+
SquintTest: test_detects_present_integer_storext_jsonb_attributes
|
27633
|
+
-----------------------------------------------------------------
|
27634
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
|
27635
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27636
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27637
|
+
---------------------------------------------------------------------------
|
27638
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
|
27639
|
+
---------------------------------------------------------------------------
|
27640
|
+
[1m[36mPost Load (0.4ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
27641
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
27642
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
27643
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
27644
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27645
|
+
------------------------------------------------------------------
|
27646
|
+
SquintTest: test_finds_records_for_properties_populated_with_array
|
27647
|
+
------------------------------------------------------------------
|
27648
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
|
27649
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
27650
|
+
[1m[35m (0.2ms)[0m BEGIN
|
27651
|
+
------------------------------------------------------
|
27652
|
+
SquintTest: test_finds_records_for_properties_with_nil
|
27653
|
+
------------------------------------------------------
|
27654
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL[0m
|
27655
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27656
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27657
|
+
--------------------------------------------------------------------------------
|
27658
|
+
SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
|
27659
|
+
--------------------------------------------------------------------------------
|
27660
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
|
27661
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27662
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27663
|
+
--------------------------------------------------------------------
|
27664
|
+
SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
|
27665
|
+
--------------------------------------------------------------------
|
27666
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27667
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_is_awesome' = 'false' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') = FALSE))
|
27668
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27669
|
+
[1m[35m (0.0ms)[0m BEGIN
|
27670
|
+
----------------------------------------------------------
|
27671
|
+
SquintTest: test_detects_present_storext_hstore_attributes
|
27672
|
+
----------------------------------------------------------
|
27673
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'[0m
|
27674
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27675
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27676
|
+
---------------------------------------------------------
|
27677
|
+
SquintTest: test_detects_default_storext_jsonb_attributes
|
27678
|
+
---------------------------------------------------------
|
27679
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
27680
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))[0m
|
27681
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27682
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27683
|
+
-----------------------------------------------------------------------------------------
|
27684
|
+
SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
|
27685
|
+
-----------------------------------------------------------------------------------------
|
27686
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
27687
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL[0m
|
27688
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27689
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27690
|
+
----------------------------------------------------------
|
27691
|
+
SquintTest: test_detects_default_storext_hstore_attributes
|
27692
|
+
----------------------------------------------------------
|
27693
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
27694
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))[0m
|
27695
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27696
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
27697
|
+
---------------------------------------------------------
|
27698
|
+
SquintTest: test_detects_present_storext_jsonb_attributes
|
27699
|
+
---------------------------------------------------------
|
27700
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
|
27701
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27702
|
+
[1m[35m (0.0ms)[0m BEGIN
|
27703
|
+
----------------------------------------------------------------------------
|
27704
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
|
27705
|
+
----------------------------------------------------------------------------
|
27706
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
27707
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
27708
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
27709
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27710
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
27711
|
+
-----------------------------------------------
|
27712
|
+
SquintTest: test_generates_SQL_for_request_info
|
27713
|
+
-----------------------------------------------
|
27714
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
27715
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
27716
|
+
-------------------------------------------------------------------------------------------------
|
27717
|
+
SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
|
27718
|
+
-------------------------------------------------------------------------------------------------
|
27719
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'
|
27720
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27721
|
+
[1m[35m (0.0ms)[0m BEGIN
|
27722
|
+
---------------------------------------------------------------------------------------------------
|
27723
|
+
SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
|
27724
|
+
---------------------------------------------------------------------------------------------------
|
27725
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'[0m
|
27726
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27727
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27728
|
+
-------------------------------------------------------
|
27729
|
+
SquintTest: test_finds_records_for_properties_populated
|
27730
|
+
-------------------------------------------------------
|
27731
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
|
27732
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27733
|
+
[1m[35m (0.0ms)[0m BEGIN
|
27734
|
+
---------------------------------------------------------------------
|
27735
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
|
27736
|
+
---------------------------------------------------------------------
|
27737
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
27738
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
27739
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
27740
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
27741
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27742
|
+
-----------------------------------------------------------------
|
27743
|
+
SquintTest: test_detects_default_integer_storext_jsonb_attributes
|
27744
|
+
-----------------------------------------------------------------
|
27745
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts"
|
27746
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '0' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') = FALSE))[0m
|
27747
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27748
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27749
|
+
------------------------------------------------------------------
|
27750
|
+
SquintTest: test_detects_present_integer_storext_hstore_attributes
|
27751
|
+
------------------------------------------------------------------
|
27752
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'
|
27753
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27754
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27755
|
+
----------------------------------------------------------------------
|
27756
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
|
27757
|
+
----------------------------------------------------------------------
|
27758
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
27759
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
27760
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
27761
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27762
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
27763
|
+
---------------------------------------------------------------------
|
27764
|
+
SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
|
27765
|
+
---------------------------------------------------------------------
|
27766
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts"
|
27767
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_is_awesome' = 'false' OR ((exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') IS NULL))[0m
|
27768
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27769
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27770
|
+
---------------------------------------------------------
|
27771
|
+
SquintTest: test_finds_records_for_request_info_populated
|
27772
|
+
---------------------------------------------------------
|
27773
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'
|
27774
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27775
|
+
[1m[35m (0.0ms)[0m BEGIN
|
27776
|
+
---------------------------------------------
|
27777
|
+
SquintTest: test_generates_SQL_for_properties
|
27778
|
+
---------------------------------------------
|
27779
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
27780
|
+
[1m[35m (0.0ms)[0m BEGIN
|
27781
|
+
------------------------------------------
|
27782
|
+
SquintTest: test_handles_string_parameters
|
27783
|
+
------------------------------------------
|
27784
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'#jsob_friend_count' = '0' AND (posts.title = 'With Storext is aweesome not default title') ORDER BY "posts"."id" ASC LIMIT 1[0m
|
27785
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27786
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
27787
|
+
--------------------------------------------------------------------
|
27788
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array
|
27789
|
+
--------------------------------------------------------------------
|
27790
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
|
27791
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27792
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27793
|
+
--------------------------------------------------------
|
27794
|
+
SquintTest: test_finds_records_for_request_info_with_nil
|
27795
|
+
--------------------------------------------------------
|
27796
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL[0m
|
27797
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27798
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
27799
|
+
-------------------------------------------------------------------------------------------
|
27800
|
+
SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
|
27801
|
+
-------------------------------------------------------------------------------------------
|
27802
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
27803
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL[0m
|
27804
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27805
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27806
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
|
27807
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
27808
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "posts"
|
27809
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post One Title', 'Post One Body', '{"referer":"http://example.com/one"}', '"referer"=>"http://example.com/one"', '2017-06-30 19:59:05', '2017-06-30 19:59:05', 980190962)[0m
|
27810
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post Two Title', 'Post Two Body', '{"referer":"http://example.com/two"}', '"referer"=>"http://example.com/two"', '2017-06-30 19:59:05', '2017-06-30 19:59:05', 298486374)
|
27811
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "created_at", "updated_at", "id") VALUES ('Post Three Title', 'Post Three Body', '2017-06-30 19:59:05', '2017-06-30 19:59:05', 113629430)[0m
|
27812
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext title', 'With Storext title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"35124"}', '"hstore_zip_code"=>"35124"', '2017-06-30 19:59:05', '2017-06-30 19:59:05', 1031054186)
|
27813
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext friends title', 'With Storext friends title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36081","jsonb_friend_count":10}', '"hstore_zip_code"=>"36081", "hstore_friend_count"=>"10"', '2017-06-30 19:59:05', '2017-06-30 19:59:05', 433859201)[0m
|
27814
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is awesome title', 'With Storext is awesome title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":false}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"false"', '2017-06-30 19:59:05', '2017-06-30 19:59:05', 996585442)
|
27815
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is aweesome not default title', 'With Storext is awesome not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":true}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"true"', '2017-06-30 19:59:05', '2017-06-30 19:59:05', 423633666)[0m
|
27816
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present default title', 'With Storext is present default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"nil"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"nil"', '2017-06-30 19:59:05', '2017-06-30 19:59:05', 813641888)
|
27817
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present not default title', 'With Storext is present not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"Heck Yeah"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"Heck Yeah"', '2017-06-30 19:59:05', '2017-06-30 19:59:05', 199613990)[0m
|
27818
|
+
[1m[35m (0.1ms)[0m COMMIT
|
27819
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL[0m
|
27820
|
+
[1m[35m (0.2ms)[0m BEGIN
|
27821
|
+
------------------------------------------------------------------
|
27822
|
+
SquintTest: test_detects_default_integer_storext_hstore_attributes
|
27823
|
+
------------------------------------------------------------------
|
27824
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27825
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_friend_count' = '0' OR ((exist("posts"."storext_hstore_attributes", 'hstore_friend_count') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_friend_count') IS NULL))
|
27826
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
27827
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27828
|
+
---------------------------------------------------------
|
27829
|
+
SquintTest: test_detects_present_storext_jsonb_attributes
|
27830
|
+
---------------------------------------------------------
|
27831
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'[0m
|
27832
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27833
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27834
|
+
-----------------------------------------------------------------------------------------
|
27835
|
+
SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
|
27836
|
+
-----------------------------------------------------------------------------------------
|
27837
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
27838
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL[0m
|
27839
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
27840
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27841
|
+
------------------------------------------------------------------
|
27842
|
+
SquintTest: test_finds_records_for_properties_populated_with_array
|
27843
|
+
------------------------------------------------------------------
|
27844
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
|
27845
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
27846
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27847
|
+
---------------------------------------------------------------------
|
27848
|
+
SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
|
27849
|
+
---------------------------------------------------------------------
|
27850
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27851
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_is_awesome' = 'false' OR ((exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') IS NULL))
|
27852
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27853
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27854
|
+
-------------------------------------------------------------------------------------------------
|
27855
|
+
SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
|
27856
|
+
-------------------------------------------------------------------------------------------------
|
27857
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'[0m
|
27858
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27859
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27860
|
+
--------------------------------------------------------------------
|
27861
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array
|
27862
|
+
--------------------------------------------------------------------
|
27863
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
|
27864
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27865
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27866
|
+
---------------------------------------------
|
27867
|
+
SquintTest: test_generates_SQL_for_properties
|
27868
|
+
---------------------------------------------
|
27869
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27870
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27871
|
+
------------------------------------------------------------------
|
27872
|
+
SquintTest: test_detects_present_integer_storext_hstore_attributes
|
27873
|
+
------------------------------------------------------------------
|
27874
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'[0m
|
27875
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27876
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27877
|
+
-------------------------------------------------------
|
27878
|
+
SquintTest: test_finds_records_for_properties_populated
|
27879
|
+
-------------------------------------------------------
|
27880
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
|
27881
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27882
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27883
|
+
---------------------------------------------------------
|
27884
|
+
SquintTest: test_detects_default_storext_jsonb_attributes
|
27885
|
+
---------------------------------------------------------
|
27886
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27887
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
27888
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27889
|
+
[1m[35m (0.0ms)[0m BEGIN
|
27890
|
+
---------------------------------------------------------------------------------------------------
|
27891
|
+
SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
|
27892
|
+
---------------------------------------------------------------------------------------------------
|
27893
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'[0m
|
27894
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
27895
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27896
|
+
------------------------------------------
|
27897
|
+
SquintTest: test_handles_string_parameters
|
27898
|
+
------------------------------------------
|
27899
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'#jsob_friend_count' = '0' AND (posts.title = 'With Storext is aweesome not default title')
|
27900
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27901
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27902
|
+
----------------------------------------------------------------------------------
|
27903
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
|
27904
|
+
----------------------------------------------------------------------------------
|
27905
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)[0m
|
27906
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
27907
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
27908
|
+
-----------------------------------------------
|
27909
|
+
SquintTest: test_generates_SQL_for_request_info
|
27910
|
+
-----------------------------------------------
|
27911
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
27912
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
27913
|
+
--------------------------------------------------------
|
27914
|
+
SquintTest: test_finds_records_for_request_info_with_nil
|
27915
|
+
--------------------------------------------------------
|
27916
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL
|
27917
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27918
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27919
|
+
----------------------------------------------------------------------
|
27920
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
|
27921
|
+
----------------------------------------------------------------------
|
27922
|
+
[1m[36mPost Load (0.4ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
27923
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
27924
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
27925
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27926
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27927
|
+
---------------------------------------------------------------------
|
27928
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
|
27929
|
+
---------------------------------------------------------------------
|
27930
|
+
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1
|
27931
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))[0m
|
27932
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1 [["id", 113629430]]
|
27933
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27934
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27935
|
+
-----------------------------------------------------------------
|
27936
|
+
SquintTest: test_detects_default_integer_storext_jsonb_attributes
|
27937
|
+
-----------------------------------------------------------------
|
27938
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27939
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '0' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') = FALSE))
|
27940
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27941
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27942
|
+
----------------------------------------------------------------------------
|
27943
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
|
27944
|
+
----------------------------------------------------------------------------
|
27945
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
27946
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
27947
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
27948
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27949
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27950
|
+
--------------------------------------------------------------------
|
27951
|
+
SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
|
27952
|
+
--------------------------------------------------------------------
|
27953
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
27954
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_is_awesome' = 'false' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') = FALSE))[0m
|
27955
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
27956
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
27957
|
+
---------------------------------------------------------------------------
|
27958
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
|
27959
|
+
---------------------------------------------------------------------------
|
27960
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1
|
27961
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))[0m
|
27962
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1 [["id", 113629430]]
|
27963
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27964
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27965
|
+
----------------------------------------------------------
|
27966
|
+
SquintTest: test_detects_default_storext_hstore_attributes
|
27967
|
+
----------------------------------------------------------
|
27968
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
27969
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
27970
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
27971
|
+
[1m[35m (0.1ms)[0m BEGIN
|
27972
|
+
--------------------------------------------------------------------------------
|
27973
|
+
SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
|
27974
|
+
--------------------------------------------------------------------------------
|
27975
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)[0m
|
27976
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
27977
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
27978
|
+
------------------------------------------------------
|
27979
|
+
SquintTest: test_finds_records_for_properties_with_nil
|
27980
|
+
------------------------------------------------------
|
27981
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
|
27982
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
27983
|
+
[1m[35m (0.0ms)[0m BEGIN
|
27984
|
+
-----------------------------------------------------------------
|
27985
|
+
SquintTest: test_detects_present_integer_storext_jsonb_attributes
|
27986
|
+
-----------------------------------------------------------------
|
27987
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'[0m
|
27988
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27989
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
27990
|
+
-------------------------------------------------------------------------------------------
|
27991
|
+
SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
|
27992
|
+
-------------------------------------------------------------------------------------------
|
27993
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
27994
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL[0m
|
27995
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
27996
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
27997
|
+
----------------------------------------------------------
|
27998
|
+
SquintTest: test_detects_present_storext_hstore_attributes
|
27999
|
+
----------------------------------------------------------
|
28000
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
|
28001
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
28002
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28003
|
+
---------------------------------------------------------
|
28004
|
+
SquintTest: test_finds_records_for_request_info_populated
|
28005
|
+
---------------------------------------------------------
|
28006
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'[0m
|
28007
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
28008
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28009
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
|
28010
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28011
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "posts"
|
28012
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post One Title', 'Post One Body', '{"referer":"http://example.com/one"}', '"referer"=>"http://example.com/one"', '2017-06-30 19:59:21', '2017-06-30 19:59:21', 980190962)[0m
|
28013
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post Two Title', 'Post Two Body', '{"referer":"http://example.com/two"}', '"referer"=>"http://example.com/two"', '2017-06-30 19:59:21', '2017-06-30 19:59:21', 298486374)
|
28014
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "created_at", "updated_at", "id") VALUES ('Post Three Title', 'Post Three Body', '2017-06-30 19:59:21', '2017-06-30 19:59:21', 113629430)[0m
|
28015
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext title', 'With Storext title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"35124"}', '"hstore_zip_code"=>"35124"', '2017-06-30 19:59:21', '2017-06-30 19:59:21', 1031054186)
|
28016
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext friends title', 'With Storext friends title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36081","jsonb_friend_count":10}', '"hstore_zip_code"=>"36081", "hstore_friend_count"=>"10"', '2017-06-30 19:59:21', '2017-06-30 19:59:21', 433859201)[0m
|
28017
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is awesome title', 'With Storext is awesome title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":false}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"false"', '2017-06-30 19:59:21', '2017-06-30 19:59:21', 996585442)
|
28018
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is aweesome not default title', 'With Storext is awesome not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":true}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"true"', '2017-06-30 19:59:21', '2017-06-30 19:59:21', 423633666)[0m
|
28019
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present default title', 'With Storext is present default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"nil"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"nil"', '2017-06-30 19:59:21', '2017-06-30 19:59:21', 813641888)
|
28020
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present not default title', 'With Storext is present not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"Heck Yeah"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"Heck Yeah"', '2017-06-30 19:59:21', '2017-06-30 19:59:21', 199613990)[0m
|
28021
|
+
[1m[35m (0.1ms)[0m COMMIT
|
28022
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL[0m
|
28023
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28024
|
+
---------------------------------------------------------------------
|
28025
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
|
28026
|
+
---------------------------------------------------------------------
|
28027
|
+
[1m[36mPost Load (0.6ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
28028
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
28029
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
28030
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28031
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28032
|
+
--------------------------------------------------------------------------------
|
28033
|
+
SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
|
28034
|
+
--------------------------------------------------------------------------------
|
28035
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
|
28036
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28037
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28038
|
+
------------------------------------------------------
|
28039
|
+
SquintTest: test_finds_records_for_properties_with_nil
|
28040
|
+
------------------------------------------------------
|
28041
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL[0m
|
28042
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28043
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28044
|
+
------------------------------------------
|
28045
|
+
SquintTest: test_handles_string_parameters
|
28046
|
+
------------------------------------------
|
28047
|
+
[1m[35m (1.5ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'#jsob_friend_count' = '0' AND (posts.title = 'With Storext is aweesome not default title')
|
28048
|
+
[1m[36m (0.7ms)[0m [1mROLLBACK[0m
|
28049
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28050
|
+
----------------------------------------------------------
|
28051
|
+
SquintTest: test_detects_default_storext_hstore_attributes
|
28052
|
+
----------------------------------------------------------
|
28053
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28054
|
+
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
28055
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
28056
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28057
|
+
---------------------------------------------------------------------------------------------------
|
28058
|
+
SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
|
28059
|
+
---------------------------------------------------------------------------------------------------
|
28060
|
+
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'[0m
|
28061
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
28062
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
28063
|
+
-------------------------------------------------------
|
28064
|
+
SquintTest: test_finds_records_for_properties_populated
|
28065
|
+
-------------------------------------------------------
|
28066
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
|
28067
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
28068
|
+
[1m[35m (0.3ms)[0m BEGIN
|
28069
|
+
--------------------------------------------------------
|
28070
|
+
SquintTest: test_finds_records_for_request_info_with_nil
|
28071
|
+
--------------------------------------------------------
|
28072
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL[0m
|
28073
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28074
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28075
|
+
-----------------------------------------------------------------
|
28076
|
+
SquintTest: test_detects_default_integer_storext_jsonb_attributes
|
28077
|
+
-----------------------------------------------------------------
|
28078
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "posts"
|
28079
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '0' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') = FALSE))[0m
|
28080
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28081
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28082
|
+
--------------------------------------------------------------------
|
28083
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array
|
28084
|
+
--------------------------------------------------------------------
|
28085
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
|
28086
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
28087
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28088
|
+
------------------------------------------------------------------
|
28089
|
+
SquintTest: test_detects_present_integer_storext_hstore_attributes
|
28090
|
+
------------------------------------------------------------------
|
28091
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'[0m
|
28092
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28093
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28094
|
+
---------------------------------------------
|
28095
|
+
SquintTest: test_generates_SQL_for_properties
|
28096
|
+
---------------------------------------------
|
28097
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28098
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28099
|
+
----------------------------------------------------------------------------
|
28100
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
|
28101
|
+
----------------------------------------------------------------------------
|
28102
|
+
[1m[35mPost Load (0.5ms)[0m SELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1
|
28103
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))[0m
|
28104
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1 [["id", 113629430]]
|
28105
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
28106
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28107
|
+
-----------------------------------------------------------------
|
28108
|
+
SquintTest: test_detects_present_integer_storext_jsonb_attributes
|
28109
|
+
-----------------------------------------------------------------
|
28110
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'[0m
|
28111
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28112
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28113
|
+
----------------------------------------------------------------------------------
|
28114
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
|
28115
|
+
----------------------------------------------------------------------------------
|
28116
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
|
28117
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28118
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28119
|
+
-------------------------------------------------------------------------------------------------
|
28120
|
+
SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
|
28121
|
+
-------------------------------------------------------------------------------------------------
|
28122
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'[0m
|
28123
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28124
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28125
|
+
----------------------------------------------------------
|
28126
|
+
SquintTest: test_detects_present_storext_hstore_attributes
|
28127
|
+
----------------------------------------------------------
|
28128
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
|
28129
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28130
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28131
|
+
-----------------------------------------------------------------------------------------
|
28132
|
+
SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
|
28133
|
+
-----------------------------------------------------------------------------------------
|
28134
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28135
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
|
28136
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28137
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28138
|
+
----------------------------------------------------------------------
|
28139
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
|
28140
|
+
----------------------------------------------------------------------
|
28141
|
+
[1m[36mPost Load (0.4ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
28142
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
28143
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
28144
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28145
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28146
|
+
---------------------------------------------------------------------
|
28147
|
+
SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
|
28148
|
+
---------------------------------------------------------------------
|
28149
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts"
|
28150
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_is_awesome' = 'false' OR ((exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') IS NULL))[0m
|
28151
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28152
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28153
|
+
---------------------------------------------------------
|
28154
|
+
SquintTest: test_detects_present_storext_jsonb_attributes
|
28155
|
+
---------------------------------------------------------
|
28156
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
|
28157
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28158
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28159
|
+
---------------------------------------------------------------------------
|
28160
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
|
28161
|
+
---------------------------------------------------------------------------
|
28162
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
28163
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
28164
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
28165
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28166
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28167
|
+
-----------------------------------------------
|
28168
|
+
SquintTest: test_generates_SQL_for_request_info
|
28169
|
+
-----------------------------------------------
|
28170
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28171
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28172
|
+
--------------------------------------------------------------------
|
28173
|
+
SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
|
28174
|
+
--------------------------------------------------------------------
|
28175
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
28176
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_is_awesome' = 'false' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') = FALSE))[0m
|
28177
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28178
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28179
|
+
------------------------------------------------------------------
|
28180
|
+
SquintTest: test_detects_default_integer_storext_hstore_attributes
|
28181
|
+
------------------------------------------------------------------
|
28182
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
28183
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_friend_count' = '0' OR ((exist("posts"."storext_hstore_attributes", 'hstore_friend_count') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_friend_count') IS NULL))[0m
|
28184
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28185
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28186
|
+
---------------------------------------------------------
|
28187
|
+
SquintTest: test_detects_default_storext_jsonb_attributes
|
28188
|
+
---------------------------------------------------------
|
28189
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
28190
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))[0m
|
28191
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28192
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28193
|
+
------------------------------------------------------------------
|
28194
|
+
SquintTest: test_finds_records_for_properties_populated_with_array
|
28195
|
+
------------------------------------------------------------------
|
28196
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
|
28197
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28198
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28199
|
+
-------------------------------------------------------------------------------------------
|
28200
|
+
SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
|
28201
|
+
-------------------------------------------------------------------------------------------
|
28202
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28203
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL
|
28204
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28205
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28206
|
+
---------------------------------------------------------
|
28207
|
+
SquintTest: test_finds_records_for_request_info_populated
|
28208
|
+
---------------------------------------------------------
|
28209
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'[0m
|
28210
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28211
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28212
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
|
28213
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28214
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "posts"
|
28215
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post One Title', 'Post One Body', '{"referer":"http://example.com/one"}', '"referer"=>"http://example.com/one"', '2017-06-30 20:00:03', '2017-06-30 20:00:03', 980190962)[0m
|
28216
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post Two Title', 'Post Two Body', '{"referer":"http://example.com/two"}', '"referer"=>"http://example.com/two"', '2017-06-30 20:00:03', '2017-06-30 20:00:03', 298486374)
|
28217
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "created_at", "updated_at", "id") VALUES ('Post Three Title', 'Post Three Body', '2017-06-30 20:00:03', '2017-06-30 20:00:03', 113629430)[0m
|
28218
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext title', 'With Storext title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"35124"}', '"hstore_zip_code"=>"35124"', '2017-06-30 20:00:03', '2017-06-30 20:00:03', 1031054186)
|
28219
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext friends title', 'With Storext friends title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36081","jsonb_friend_count":10}', '"hstore_zip_code"=>"36081", "hstore_friend_count"=>"10"', '2017-06-30 20:00:03', '2017-06-30 20:00:03', 433859201)[0m
|
28220
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is awesome title', 'With Storext is awesome title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":false}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"false"', '2017-06-30 20:00:03', '2017-06-30 20:00:03', 996585442)
|
28221
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is aweesome not default title', 'With Storext is awesome not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":true}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"true"', '2017-06-30 20:00:03', '2017-06-30 20:00:03', 423633666)[0m
|
28222
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present default title', 'With Storext is present default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"nil"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"nil"', '2017-06-30 20:00:03', '2017-06-30 20:00:03', 813641888)
|
28223
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present not default title', 'With Storext is present not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"Heck Yeah"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"Heck Yeah"', '2017-06-30 20:00:03', '2017-06-30 20:00:03', 199613990)[0m
|
28224
|
+
[1m[35m (0.1ms)[0m COMMIT
|
28225
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL[0m
|
28226
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28227
|
+
----------------------------------------------------------------------
|
28228
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
|
28229
|
+
----------------------------------------------------------------------
|
28230
|
+
[1m[36mPost Load (0.6ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
28231
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
28232
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
28233
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28234
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28235
|
+
--------------------------------------------------------------------
|
28236
|
+
SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
|
28237
|
+
--------------------------------------------------------------------
|
28238
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts"
|
28239
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_is_awesome' = 'false' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') = FALSE))[0m
|
28240
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28241
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28242
|
+
------------------------------------------
|
28243
|
+
SquintTest: test_handles_string_parameters
|
28244
|
+
------------------------------------------
|
28245
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'#jsob_friend_count' = '11' AND (posts.title = 'With Storext is aweesome not default title')
|
28246
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
28247
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28248
|
+
---------------------------------------------------------------------
|
28249
|
+
SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
|
28250
|
+
---------------------------------------------------------------------
|
28251
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28252
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_is_awesome' = 'false' OR ((exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') IS NULL))
|
28253
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
28254
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28255
|
+
----------------------------------------------------------
|
28256
|
+
SquintTest: test_detects_present_storext_hstore_attributes
|
28257
|
+
----------------------------------------------------------
|
28258
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'[0m
|
28259
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28260
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28261
|
+
--------------------------------------------------------
|
28262
|
+
SquintTest: test_finds_records_for_request_info_with_nil
|
28263
|
+
--------------------------------------------------------
|
28264
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL
|
28265
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28266
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28267
|
+
-------------------------------------------------------
|
28268
|
+
SquintTest: test_finds_records_for_properties_populated
|
28269
|
+
-------------------------------------------------------
|
28270
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'[0m
|
28271
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28272
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28273
|
+
------------------------------------------------------
|
28274
|
+
SquintTest: test_finds_records_for_properties_with_nil
|
28275
|
+
------------------------------------------------------
|
28276
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
|
28277
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28278
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28279
|
+
----------------------------------------------------------
|
28280
|
+
SquintTest: test_detects_default_storext_hstore_attributes
|
28281
|
+
----------------------------------------------------------
|
28282
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28283
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
28284
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28285
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28286
|
+
---------------------------------------------------------
|
28287
|
+
SquintTest: test_detects_default_storext_jsonb_attributes
|
28288
|
+
---------------------------------------------------------
|
28289
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28290
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
28291
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28292
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28293
|
+
------------------------------------------------------------------
|
28294
|
+
SquintTest: test_finds_records_for_properties_populated_with_array
|
28295
|
+
------------------------------------------------------------------
|
28296
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')[0m
|
28297
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28298
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28299
|
+
-----------------------------------------------------------------
|
28300
|
+
SquintTest: test_detects_default_integer_storext_jsonb_attributes
|
28301
|
+
-----------------------------------------------------------------
|
28302
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
28303
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '0' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') = FALSE))[0m
|
28304
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28305
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28306
|
+
--------------------------------------------------------------------------------
|
28307
|
+
SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
|
28308
|
+
--------------------------------------------------------------------------------
|
28309
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
|
28310
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28311
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28312
|
+
---------------------------------------------------------------------------
|
28313
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
|
28314
|
+
---------------------------------------------------------------------------
|
28315
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
28316
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
28317
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
28318
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28319
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28320
|
+
---------------------------------------------
|
28321
|
+
SquintTest: test_generates_SQL_for_properties
|
28322
|
+
---------------------------------------------
|
28323
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
28324
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28325
|
+
----------------------------------------------------------------------------
|
28326
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
|
28327
|
+
----------------------------------------------------------------------------
|
28328
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1
|
28329
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))[0m
|
28330
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1 [["id", 113629430]]
|
28331
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28332
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28333
|
+
---------------------------------------------------------------------
|
28334
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
|
28335
|
+
---------------------------------------------------------------------
|
28336
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
28337
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
28338
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
28339
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28340
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28341
|
+
---------------------------------------------------------------------------------------------------
|
28342
|
+
SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
|
28343
|
+
---------------------------------------------------------------------------------------------------
|
28344
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'
|
28345
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28346
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28347
|
+
-----------------------------------------------
|
28348
|
+
SquintTest: test_generates_SQL_for_request_info
|
28349
|
+
-----------------------------------------------
|
28350
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28351
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28352
|
+
-------------------------------------------------------------------------------------------------
|
28353
|
+
SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
|
28354
|
+
-------------------------------------------------------------------------------------------------
|
28355
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'[0m
|
28356
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28357
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28358
|
+
---------------------------------------------------------
|
28359
|
+
SquintTest: test_detects_present_storext_jsonb_attributes
|
28360
|
+
---------------------------------------------------------
|
28361
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
|
28362
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28363
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28364
|
+
---------------------------------------------------------
|
28365
|
+
SquintTest: test_finds_records_for_request_info_populated
|
28366
|
+
---------------------------------------------------------
|
28367
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'[0m
|
28368
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28369
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28370
|
+
-----------------------------------------------------------------------------------------
|
28371
|
+
SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
|
28372
|
+
-----------------------------------------------------------------------------------------
|
28373
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts"
|
28374
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL[0m
|
28375
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28376
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28377
|
+
-------------------------------------------------------------------------------------------
|
28378
|
+
SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
|
28379
|
+
-------------------------------------------------------------------------------------------
|
28380
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
28381
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL[0m
|
28382
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28383
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28384
|
+
----------------------------------------------------------------------------------
|
28385
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
|
28386
|
+
----------------------------------------------------------------------------------
|
28387
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
|
28388
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28389
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28390
|
+
--------------------------------------------------------------------
|
28391
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array
|
28392
|
+
--------------------------------------------------------------------
|
28393
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')[0m
|
28394
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28395
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28396
|
+
-----------------------------------------------------------------
|
28397
|
+
SquintTest: test_detects_present_integer_storext_jsonb_attributes
|
28398
|
+
-----------------------------------------------------------------
|
28399
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
|
28400
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28401
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28402
|
+
------------------------------------------------------------------
|
28403
|
+
SquintTest: test_detects_default_integer_storext_hstore_attributes
|
28404
|
+
------------------------------------------------------------------
|
28405
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28406
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_friend_count' = '0' OR ((exist("posts"."storext_hstore_attributes", 'hstore_friend_count') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_friend_count') IS NULL))
|
28407
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28408
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28409
|
+
------------------------------------------------------------------
|
28410
|
+
SquintTest: test_detects_present_integer_storext_hstore_attributes
|
28411
|
+
------------------------------------------------------------------
|
28412
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'[0m
|
28413
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28414
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28415
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
|
28416
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28417
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "posts"
|
28418
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post One Title', 'Post One Body', '{"referer":"http://example.com/one"}', '"referer"=>"http://example.com/one"', '2017-06-30 20:00:43', '2017-06-30 20:00:43', 980190962)[0m
|
28419
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post Two Title', 'Post Two Body', '{"referer":"http://example.com/two"}', '"referer"=>"http://example.com/two"', '2017-06-30 20:00:43', '2017-06-30 20:00:43', 298486374)
|
28420
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "created_at", "updated_at", "id") VALUES ('Post Three Title', 'Post Three Body', '2017-06-30 20:00:43', '2017-06-30 20:00:43', 113629430)[0m
|
28421
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext title', 'With Storext title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"35124"}', '"hstore_zip_code"=>"35124"', '2017-06-30 20:00:43', '2017-06-30 20:00:43', 1031054186)
|
28422
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext friends title', 'With Storext friends title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36081","jsonb_friend_count":10}', '"hstore_zip_code"=>"36081", "hstore_friend_count"=>"10"', '2017-06-30 20:00:43', '2017-06-30 20:00:43', 433859201)[0m
|
28423
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is awesome title', 'With Storext is awesome title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":false}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"false"', '2017-06-30 20:00:43', '2017-06-30 20:00:43', 996585442)
|
28424
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is aweesome not default title', 'With Storext is awesome not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":true}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"true"', '2017-06-30 20:00:43', '2017-06-30 20:00:43', 423633666)[0m
|
28425
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present default title', 'With Storext is present default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"nil"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"nil"', '2017-06-30 20:00:43', '2017-06-30 20:00:43', 813641888)
|
28426
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present not default title', 'With Storext is present not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"Heck Yeah"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"Heck Yeah"', '2017-06-30 20:00:43', '2017-06-30 20:00:43', 199613990)[0m
|
28427
|
+
[1m[35m (0.1ms)[0m COMMIT
|
28428
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL[0m
|
28429
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28430
|
+
---------------------------------------------------------------------------------------------------
|
28431
|
+
SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
|
28432
|
+
---------------------------------------------------------------------------------------------------
|
28433
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'[0m
|
28434
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28435
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28436
|
+
-----------------------------------------------------------------
|
28437
|
+
SquintTest: test_detects_present_integer_storext_jsonb_attributes
|
28438
|
+
-----------------------------------------------------------------
|
28439
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
|
28440
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
28441
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28442
|
+
--------------------------------------------------------------------------------
|
28443
|
+
SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
|
28444
|
+
--------------------------------------------------------------------------------
|
28445
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)[0m
|
28446
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28447
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28448
|
+
--------------------------------------------------------------------
|
28449
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array
|
28450
|
+
--------------------------------------------------------------------
|
28451
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
|
28452
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28453
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28454
|
+
-----------------------------------------------------------------------------------------
|
28455
|
+
SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
|
28456
|
+
-----------------------------------------------------------------------------------------
|
28457
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28458
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
|
28459
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28460
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28461
|
+
--------------------------------------------------------
|
28462
|
+
SquintTest: test_finds_records_for_request_info_with_nil
|
28463
|
+
--------------------------------------------------------
|
28464
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL[0m
|
28465
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28466
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28467
|
+
------------------------------------------------------------------
|
28468
|
+
SquintTest: test_detects_default_integer_storext_hstore_attributes
|
28469
|
+
------------------------------------------------------------------
|
28470
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
28471
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_friend_count' = '0' OR ((exist("posts"."storext_hstore_attributes", 'hstore_friend_count') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_friend_count') IS NULL))[0m
|
28472
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28473
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28474
|
+
----------------------------------------------------------------------------------
|
28475
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
|
28476
|
+
----------------------------------------------------------------------------------
|
28477
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
|
28478
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28479
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28480
|
+
-------------------------------------------------------------------------------------------------
|
28481
|
+
SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
|
28482
|
+
-------------------------------------------------------------------------------------------------
|
28483
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'[0m
|
28484
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28485
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28486
|
+
----------------------------------------------------------------------
|
28487
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
|
28488
|
+
----------------------------------------------------------------------
|
28489
|
+
[1m[35mPost Load (0.4ms)[0m SELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1
|
28490
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))[0m
|
28491
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1 [["id", 113629430]]
|
28492
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28493
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28494
|
+
---------------------------------------------------------------------
|
28495
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
|
28496
|
+
---------------------------------------------------------------------
|
28497
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
28498
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
28499
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
28500
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28501
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28502
|
+
------------------------------------------------------------------
|
28503
|
+
SquintTest: test_finds_records_for_properties_populated_with_array
|
28504
|
+
------------------------------------------------------------------
|
28505
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
|
28506
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28507
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28508
|
+
---------------------------------------------------------
|
28509
|
+
SquintTest: test_detects_present_storext_jsonb_attributes
|
28510
|
+
---------------------------------------------------------
|
28511
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'[0m
|
28512
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28513
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28514
|
+
-----------------------------------------------------------------
|
28515
|
+
SquintTest: test_detects_default_integer_storext_jsonb_attributes
|
28516
|
+
-----------------------------------------------------------------
|
28517
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
28518
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '0' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') = FALSE))[0m
|
28519
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28520
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28521
|
+
-----------------------------------------------
|
28522
|
+
SquintTest: test_generates_SQL_for_request_info
|
28523
|
+
-----------------------------------------------
|
28524
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28525
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28526
|
+
---------------------------------------------------------
|
28527
|
+
SquintTest: test_finds_records_for_request_info_populated
|
28528
|
+
---------------------------------------------------------
|
28529
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'
|
28530
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28531
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28532
|
+
---------------------------------------------------------
|
28533
|
+
SquintTest: test_detects_default_storext_jsonb_attributes
|
28534
|
+
---------------------------------------------------------
|
28535
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28536
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
28537
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28538
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28539
|
+
------------------------------------------------------------------
|
28540
|
+
SquintTest: test_detects_present_integer_storext_hstore_attributes
|
28541
|
+
------------------------------------------------------------------
|
28542
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'[0m
|
28543
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28544
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28545
|
+
---------------------------------------------
|
28546
|
+
SquintTest: test_generates_SQL_for_properties
|
28547
|
+
---------------------------------------------
|
28548
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28549
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28550
|
+
------------------------------------------
|
28551
|
+
SquintTest: test_handles_string_parameters
|
28552
|
+
------------------------------------------
|
28553
|
+
[1m[35m (1.8ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'#jsob_friend_count' = '11' AND (posts.title = 'With Storext is aweesome not default title')
|
28554
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
28555
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28556
|
+
----------------------------------------------------------------------------
|
28557
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
|
28558
|
+
----------------------------------------------------------------------------
|
28559
|
+
[1m[36mPost Load (1.0ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
28560
|
+
[1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
28561
|
+
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
28562
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28563
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28564
|
+
---------------------------------------------------------------------------
|
28565
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
|
28566
|
+
---------------------------------------------------------------------------
|
28567
|
+
[1m[35mPost Load (0.7ms)[0m SELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1
|
28568
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))[0m
|
28569
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1 [["id", 113629430]]
|
28570
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
28571
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28572
|
+
--------------------------------------------------------------------
|
28573
|
+
SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
|
28574
|
+
--------------------------------------------------------------------
|
28575
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28576
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_is_awesome' = 'false' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') = FALSE))
|
28577
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28578
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28579
|
+
---------------------------------------------------------------------
|
28580
|
+
SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
|
28581
|
+
---------------------------------------------------------------------
|
28582
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28583
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_is_awesome' = 'false' OR ((exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') IS NULL))
|
28584
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28585
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28586
|
+
-------------------------------------------------------
|
28587
|
+
SquintTest: test_finds_records_for_properties_populated
|
28588
|
+
-------------------------------------------------------
|
28589
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'[0m
|
28590
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28591
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28592
|
+
-------------------------------------------------------------------------------------------
|
28593
|
+
SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
|
28594
|
+
-------------------------------------------------------------------------------------------
|
28595
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts"
|
28596
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL[0m
|
28597
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28598
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28599
|
+
----------------------------------------------------------
|
28600
|
+
SquintTest: test_detects_present_storext_hstore_attributes
|
28601
|
+
----------------------------------------------------------
|
28602
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
|
28603
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
28604
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28605
|
+
----------------------------------------------------------
|
28606
|
+
SquintTest: test_detects_default_storext_hstore_attributes
|
28607
|
+
----------------------------------------------------------
|
28608
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28609
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
28610
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
28611
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28612
|
+
------------------------------------------------------
|
28613
|
+
SquintTest: test_finds_records_for_properties_with_nil
|
28614
|
+
------------------------------------------------------
|
28615
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL[0m
|
28616
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28617
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28618
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
|
28619
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28620
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "posts"
|
28621
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post One Title', 'Post One Body', '{"referer":"http://example.com/one"}', '"referer"=>"http://example.com/one"', '2017-06-30 20:01:08', '2017-06-30 20:01:08', 980190962)[0m
|
28622
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post Two Title', 'Post Two Body', '{"referer":"http://example.com/two"}', '"referer"=>"http://example.com/two"', '2017-06-30 20:01:08', '2017-06-30 20:01:08', 298486374)
|
28623
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "created_at", "updated_at", "id") VALUES ('Post Three Title', 'Post Three Body', '2017-06-30 20:01:08', '2017-06-30 20:01:08', 113629430)[0m
|
28624
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext title', 'With Storext title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"35124"}', '"hstore_zip_code"=>"35124"', '2017-06-30 20:01:08', '2017-06-30 20:01:08', 1031054186)
|
28625
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext friends title', 'With Storext friends title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36081","jsonb_friend_count":10}', '"hstore_zip_code"=>"36081", "hstore_friend_count"=>"10"', '2017-06-30 20:01:08', '2017-06-30 20:01:08', 433859201)[0m
|
28626
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is awesome title', 'With Storext is awesome title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":false}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"false"', '2017-06-30 20:01:08', '2017-06-30 20:01:08', 996585442)
|
28627
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is aweesome not default title', 'With Storext is awesome not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":true}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"true"', '2017-06-30 20:01:08', '2017-06-30 20:01:08', 423633666)[0m
|
28628
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present default title', 'With Storext is present default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"nil"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"nil"', '2017-06-30 20:01:08', '2017-06-30 20:01:08', 813641888)
|
28629
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present not default title', 'With Storext is present not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"Heck Yeah"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"Heck Yeah"', '2017-06-30 20:01:08', '2017-06-30 20:01:08', 199613990)[0m
|
28630
|
+
[1m[35m (0.1ms)[0m COMMIT
|
28631
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL[0m
|
28632
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28633
|
+
------------------------------------------
|
28634
|
+
SquintTest: test_handles_string_parameters
|
28635
|
+
------------------------------------------
|
28636
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsob_friend_count' = '11' AND (posts.title = 'With Storext is aweesome not default title')[0m
|
28637
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28638
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28639
|
+
-----------------------------------------------------------------
|
28640
|
+
SquintTest: test_detects_present_integer_storext_jsonb_attributes
|
28641
|
+
-----------------------------------------------------------------
|
28642
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
|
28643
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28644
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28645
|
+
---------------------------------------------------------
|
28646
|
+
SquintTest: test_detects_default_storext_jsonb_attributes
|
28647
|
+
---------------------------------------------------------
|
28648
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28649
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
28650
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28651
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28652
|
+
----------------------------------------------------------------------
|
28653
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
|
28654
|
+
----------------------------------------------------------------------
|
28655
|
+
[1m[36mPost Load (0.5ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
28656
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
28657
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
28658
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28659
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28660
|
+
--------------------------------------------------------------------
|
28661
|
+
SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
|
28662
|
+
--------------------------------------------------------------------
|
28663
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts"
|
28664
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_is_awesome' = 'false' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') = FALSE))[0m
|
28665
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28666
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28667
|
+
-----------------------------------------------------------------------------------------
|
28668
|
+
SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
|
28669
|
+
-----------------------------------------------------------------------------------------
|
28670
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
28671
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL[0m
|
28672
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28673
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28674
|
+
-------------------------------------------------------
|
28675
|
+
SquintTest: test_finds_records_for_properties_populated
|
28676
|
+
-------------------------------------------------------
|
28677
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
|
28678
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28679
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28680
|
+
----------------------------------------------------------
|
28681
|
+
SquintTest: test_detects_present_storext_hstore_attributes
|
28682
|
+
----------------------------------------------------------
|
28683
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'[0m
|
28684
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28685
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28686
|
+
------------------------------------------------------------------
|
28687
|
+
SquintTest: test_detects_present_integer_storext_hstore_attributes
|
28688
|
+
------------------------------------------------------------------
|
28689
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'
|
28690
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28691
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28692
|
+
--------------------------------------------------------------------
|
28693
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array
|
28694
|
+
--------------------------------------------------------------------
|
28695
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')[0m
|
28696
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28697
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28698
|
+
----------------------------------------------------------------------------------
|
28699
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
|
28700
|
+
----------------------------------------------------------------------------------
|
28701
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
|
28702
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28703
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28704
|
+
------------------------------------------------------------------
|
28705
|
+
SquintTest: test_detects_default_integer_storext_hstore_attributes
|
28706
|
+
------------------------------------------------------------------
|
28707
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28708
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_friend_count' = '0' OR ((exist("posts"."storext_hstore_attributes", 'hstore_friend_count') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_friend_count') IS NULL))
|
28709
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28710
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28711
|
+
---------------------------------------------------------
|
28712
|
+
SquintTest: test_finds_records_for_request_info_populated
|
28713
|
+
---------------------------------------------------------
|
28714
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'[0m
|
28715
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28716
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28717
|
+
---------------------------------------------------------------------
|
28718
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
|
28719
|
+
---------------------------------------------------------------------
|
28720
|
+
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1
|
28721
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))[0m
|
28722
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1 [["id", 113629430]]
|
28723
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
28724
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28725
|
+
-----------------------------------------------
|
28726
|
+
SquintTest: test_generates_SQL_for_request_info
|
28727
|
+
-----------------------------------------------
|
28728
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28729
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28730
|
+
---------------------------------------------------------------------
|
28731
|
+
SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
|
28732
|
+
---------------------------------------------------------------------
|
28733
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28734
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_is_awesome' = 'false' OR ((exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') IS NULL))
|
28735
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28736
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28737
|
+
---------------------------------------------------------------------------------------------------
|
28738
|
+
SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
|
28739
|
+
---------------------------------------------------------------------------------------------------
|
28740
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'[0m
|
28741
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28742
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28743
|
+
----------------------------------------------------------
|
28744
|
+
SquintTest: test_detects_default_storext_hstore_attributes
|
28745
|
+
----------------------------------------------------------
|
28746
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
28747
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))[0m
|
28748
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28749
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28750
|
+
-------------------------------------------------------------------------------------------
|
28751
|
+
SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
|
28752
|
+
-------------------------------------------------------------------------------------------
|
28753
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
28754
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL[0m
|
28755
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28756
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28757
|
+
-----------------------------------------------------------------
|
28758
|
+
SquintTest: test_detects_default_integer_storext_jsonb_attributes
|
28759
|
+
-----------------------------------------------------------------
|
28760
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
28761
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '0' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') = FALSE))[0m
|
28762
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28763
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28764
|
+
----------------------------------------------------------------------------
|
28765
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
|
28766
|
+
----------------------------------------------------------------------------
|
28767
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1
|
28768
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))[0m
|
28769
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1 [["id", 113629430]]
|
28770
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28771
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28772
|
+
---------------------------------------------------------
|
28773
|
+
SquintTest: test_detects_present_storext_jsonb_attributes
|
28774
|
+
---------------------------------------------------------
|
28775
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'[0m
|
28776
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28777
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28778
|
+
--------------------------------------------------------------------------------
|
28779
|
+
SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
|
28780
|
+
--------------------------------------------------------------------------------
|
28781
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
|
28782
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28783
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28784
|
+
-------------------------------------------------------------------------------------------------
|
28785
|
+
SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
|
28786
|
+
-------------------------------------------------------------------------------------------------
|
28787
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'[0m
|
28788
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28789
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28790
|
+
---------------------------------------------------------------------------
|
28791
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
|
28792
|
+
---------------------------------------------------------------------------
|
28793
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1
|
28794
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))[0m
|
28795
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1 [["id", 113629430]]
|
28796
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28797
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28798
|
+
------------------------------------------------------------------
|
28799
|
+
SquintTest: test_finds_records_for_properties_populated_with_array
|
28800
|
+
------------------------------------------------------------------
|
28801
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')[0m
|
28802
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28803
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28804
|
+
------------------------------------------------------
|
28805
|
+
SquintTest: test_finds_records_for_properties_with_nil
|
28806
|
+
------------------------------------------------------
|
28807
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
|
28808
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28809
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28810
|
+
---------------------------------------------
|
28811
|
+
SquintTest: test_generates_SQL_for_properties
|
28812
|
+
---------------------------------------------
|
28813
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28814
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28815
|
+
--------------------------------------------------------
|
28816
|
+
SquintTest: test_finds_records_for_request_info_with_nil
|
28817
|
+
--------------------------------------------------------
|
28818
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL[0m
|
28819
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28820
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
28821
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
|
28822
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28823
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "posts"
|
28824
|
+
[1m[36mFixture Insert (0.5ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post One Title', 'Post One Body', '{"referer":"http://example.com/one"}', '"referer"=>"http://example.com/one"', '2017-06-30 20:01:18', '2017-06-30 20:01:18', 980190962)[0m
|
28825
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post Two Title', 'Post Two Body', '{"referer":"http://example.com/two"}', '"referer"=>"http://example.com/two"', '2017-06-30 20:01:18', '2017-06-30 20:01:18', 298486374)
|
28826
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "created_at", "updated_at", "id") VALUES ('Post Three Title', 'Post Three Body', '2017-06-30 20:01:18', '2017-06-30 20:01:18', 113629430)[0m
|
28827
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext title', 'With Storext title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"35124"}', '"hstore_zip_code"=>"35124"', '2017-06-30 20:01:18', '2017-06-30 20:01:18', 1031054186)
|
28828
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext friends title', 'With Storext friends title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36081","jsonb_friend_count":10}', '"hstore_zip_code"=>"36081", "hstore_friend_count"=>"10"', '2017-06-30 20:01:18', '2017-06-30 20:01:18', 433859201)[0m
|
28829
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is awesome title', 'With Storext is awesome title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":false}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"false"', '2017-06-30 20:01:18', '2017-06-30 20:01:18', 996585442)
|
28830
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is aweesome not default title', 'With Storext is awesome not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":true}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"true"', '2017-06-30 20:01:18', '2017-06-30 20:01:18', 423633666)[0m
|
28831
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present default title', 'With Storext is present default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"nil"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"nil"', '2017-06-30 20:01:18', '2017-06-30 20:01:18', 813641888)
|
28832
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present not default title', 'With Storext is present not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"Heck Yeah"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"Heck Yeah"', '2017-06-30 20:01:18', '2017-06-30 20:01:18', 199613990)[0m
|
28833
|
+
[1m[35m (0.1ms)[0m COMMIT
|
28834
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL[0m
|
28835
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28836
|
+
----------------------------------------------------------
|
28837
|
+
SquintTest: test_detects_present_storext_hstore_attributes
|
28838
|
+
----------------------------------------------------------
|
28839
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'[0m
|
28840
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28841
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28842
|
+
-------------------------------------------------------------------------------------------
|
28843
|
+
SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
|
28844
|
+
-------------------------------------------------------------------------------------------
|
28845
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts"
|
28846
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL[0m
|
28847
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28848
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28849
|
+
-----------------------------------------------
|
28850
|
+
SquintTest: test_generates_SQL_for_request_info
|
28851
|
+
-----------------------------------------------
|
28852
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28853
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28854
|
+
---------------------------------------------------------
|
28855
|
+
SquintTest: test_detects_default_storext_jsonb_attributes
|
28856
|
+
---------------------------------------------------------
|
28857
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
28858
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))[0m
|
28859
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28860
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28861
|
+
------------------------------------------------------
|
28862
|
+
SquintTest: test_finds_records_for_properties_with_nil
|
28863
|
+
------------------------------------------------------
|
28864
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
|
28865
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28866
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28867
|
+
-----------------------------------------------------------------------------------------
|
28868
|
+
SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
|
28869
|
+
-----------------------------------------------------------------------------------------
|
28870
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
28871
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
|
28872
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28873
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28874
|
+
---------------------------------------------
|
28875
|
+
SquintTest: test_generates_SQL_for_properties
|
28876
|
+
---------------------------------------------
|
28877
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28878
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28879
|
+
--------------------------------------------------------------------
|
28880
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array
|
28881
|
+
--------------------------------------------------------------------
|
28882
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')[0m
|
28883
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28884
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28885
|
+
-----------------------------------------------------------------
|
28886
|
+
SquintTest: test_detects_present_integer_storext_jsonb_attributes
|
28887
|
+
-----------------------------------------------------------------
|
28888
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
|
28889
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28890
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28891
|
+
---------------------------------------------------------
|
28892
|
+
SquintTest: test_finds_records_for_request_info_populated
|
28893
|
+
---------------------------------------------------------
|
28894
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'[0m
|
28895
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
28896
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28897
|
+
---------------------------------------------------------------------------------------------------
|
28898
|
+
SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
|
28899
|
+
---------------------------------------------------------------------------------------------------
|
28900
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'
|
28901
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
28902
|
+
[1m[35m (0.0ms)[0m BEGIN
|
28903
|
+
----------------------------------------------------------------------
|
28904
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
|
28905
|
+
----------------------------------------------------------------------
|
28906
|
+
[1m[36mPost Load (0.4ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
28907
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
28908
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
28909
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28910
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28911
|
+
---------------------------------------------------------------------
|
28912
|
+
SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
|
28913
|
+
---------------------------------------------------------------------
|
28914
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
28915
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_is_awesome' = 'false' OR ((exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') IS NULL))[0m
|
28916
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28917
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28918
|
+
--------------------------------------------------------------------
|
28919
|
+
SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
|
28920
|
+
--------------------------------------------------------------------
|
28921
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
28922
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_is_awesome' = 'false' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') = FALSE))[0m
|
28923
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28924
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28925
|
+
------------------------------------------------------------------
|
28926
|
+
SquintTest: test_detects_present_integer_storext_hstore_attributes
|
28927
|
+
------------------------------------------------------------------
|
28928
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'
|
28929
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28930
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28931
|
+
--------------------------------------------------------------------------------
|
28932
|
+
SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
|
28933
|
+
--------------------------------------------------------------------------------
|
28934
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)[0m
|
28935
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28936
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28937
|
+
--------------------------------------------------------
|
28938
|
+
SquintTest: test_finds_records_for_request_info_with_nil
|
28939
|
+
--------------------------------------------------------
|
28940
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL
|
28941
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28942
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28943
|
+
---------------------------------------------------------------------
|
28944
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
|
28945
|
+
---------------------------------------------------------------------
|
28946
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
28947
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
28948
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
28949
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28950
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28951
|
+
-----------------------------------------------------------------
|
28952
|
+
SquintTest: test_detects_default_integer_storext_jsonb_attributes
|
28953
|
+
-----------------------------------------------------------------
|
28954
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts"
|
28955
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '0' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') = FALSE))[0m
|
28956
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28957
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28958
|
+
----------------------------------------------------------------------------------
|
28959
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
|
28960
|
+
----------------------------------------------------------------------------------
|
28961
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
|
28962
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
28963
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28964
|
+
------------------------------------------------------------------
|
28965
|
+
SquintTest: test_finds_records_for_properties_populated_with_array
|
28966
|
+
------------------------------------------------------------------
|
28967
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')[0m
|
28968
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28969
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
28970
|
+
----------------------------------------------------------------------------
|
28971
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
|
28972
|
+
----------------------------------------------------------------------------
|
28973
|
+
[1m[35mPost Load (0.2ms)[0m SELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1
|
28974
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))[0m
|
28975
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1 [["id", 113629430]]
|
28976
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
28977
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28978
|
+
---------------------------------------------------------------------------
|
28979
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
|
28980
|
+
---------------------------------------------------------------------------
|
28981
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
28982
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
28983
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
28984
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
28985
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28986
|
+
---------------------------------------------------------
|
28987
|
+
SquintTest: test_detects_present_storext_jsonb_attributes
|
28988
|
+
---------------------------------------------------------
|
28989
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
|
28990
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
28991
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28992
|
+
------------------------------------------
|
28993
|
+
SquintTest: test_handles_string_parameters
|
28994
|
+
------------------------------------------
|
28995
|
+
[1m[36m (1.5ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsob_friend_count' = '11' AND (posts.title = 'With Storext is aweesome not default title')[0m
|
28996
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
28997
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
28998
|
+
----------------------------------------------------------
|
28999
|
+
SquintTest: test_detects_default_storext_hstore_attributes
|
29000
|
+
----------------------------------------------------------
|
29001
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "posts"
|
29002
|
+
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))[0m
|
29003
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
29004
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
29005
|
+
-------------------------------------------------------
|
29006
|
+
SquintTest: test_finds_records_for_properties_populated
|
29007
|
+
-------------------------------------------------------
|
29008
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
|
29009
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
29010
|
+
[1m[35m (0.3ms)[0m BEGIN
|
29011
|
+
-------------------------------------------------------------------------------------------------
|
29012
|
+
SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
|
29013
|
+
-------------------------------------------------------------------------------------------------
|
29014
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'[0m
|
29015
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29016
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29017
|
+
------------------------------------------------------------------
|
29018
|
+
SquintTest: test_detects_default_integer_storext_hstore_attributes
|
29019
|
+
------------------------------------------------------------------
|
29020
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts"
|
29021
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_friend_count' = '0' OR ((exist("posts"."storext_hstore_attributes", 'hstore_friend_count') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_friend_count') IS NULL))[0m
|
29022
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
29023
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29024
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
|
29025
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29026
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "posts"
|
29027
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post One Title', 'Post One Body', '{"referer":"http://example.com/one"}', '"referer"=>"http://example.com/one"', '2017-06-30 20:01:35', '2017-06-30 20:01:35', 980190962)[0m
|
29028
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post Two Title', 'Post Two Body', '{"referer":"http://example.com/two"}', '"referer"=>"http://example.com/two"', '2017-06-30 20:01:35', '2017-06-30 20:01:35', 298486374)
|
29029
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "created_at", "updated_at", "id") VALUES ('Post Three Title', 'Post Three Body', '2017-06-30 20:01:35', '2017-06-30 20:01:35', 113629430)[0m
|
29030
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext title', 'With Storext title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"35124"}', '"hstore_zip_code"=>"35124"', '2017-06-30 20:01:35', '2017-06-30 20:01:35', 1031054186)
|
29031
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext friends title', 'With Storext friends title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36081","jsonb_friend_count":10}', '"hstore_zip_code"=>"36081", "hstore_friend_count"=>"10"', '2017-06-30 20:01:35', '2017-06-30 20:01:35', 433859201)[0m
|
29032
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is awesome title', 'With Storext is awesome title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":false}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"false"', '2017-06-30 20:01:35', '2017-06-30 20:01:35', 996585442)
|
29033
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is aweesome not default title', 'With Storext is awesome not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":true}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"true"', '2017-06-30 20:01:35', '2017-06-30 20:01:35', 423633666)[0m
|
29034
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present default title', 'With Storext is present default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"nil"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"nil"', '2017-06-30 20:01:35', '2017-06-30 20:01:35', 813641888)
|
29035
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present not default title', 'With Storext is present not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"Heck Yeah"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"Heck Yeah"', '2017-06-30 20:01:35', '2017-06-30 20:01:35', 199613990)[0m
|
29036
|
+
[1m[35m (0.1ms)[0m COMMIT
|
29037
|
+
[1m[36m (0.2ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL[0m
|
29038
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29039
|
+
----------------------------------------------------------------------------
|
29040
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
|
29041
|
+
----------------------------------------------------------------------------
|
29042
|
+
[1m[36mPost Load (0.6ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
29043
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
29044
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
29045
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29046
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29047
|
+
--------------------------------------------------------------------------------
|
29048
|
+
SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
|
29049
|
+
--------------------------------------------------------------------------------
|
29050
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
|
29051
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
29052
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29053
|
+
---------------------------------------------------------------------
|
29054
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
|
29055
|
+
---------------------------------------------------------------------
|
29056
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
29057
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
29058
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
29059
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29060
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29061
|
+
---------------------------------------------
|
29062
|
+
SquintTest: test_generates_SQL_for_properties
|
29063
|
+
---------------------------------------------
|
29064
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29065
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29066
|
+
------------------------------------------------------------------
|
29067
|
+
SquintTest: test_detects_default_integer_storext_hstore_attributes
|
29068
|
+
------------------------------------------------------------------
|
29069
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
29070
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_friend_count' = '0' OR ((exist("posts"."storext_hstore_attributes", 'hstore_friend_count') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_friend_count') IS NULL))[0m
|
29071
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29072
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
29073
|
+
----------------------------------------------------------
|
29074
|
+
SquintTest: test_detects_default_storext_hstore_attributes
|
29075
|
+
----------------------------------------------------------
|
29076
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
29077
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))[0m
|
29078
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29079
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
29080
|
+
------------------------------------------------------------------
|
29081
|
+
SquintTest: test_finds_records_for_properties_populated_with_array
|
29082
|
+
------------------------------------------------------------------
|
29083
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
|
29084
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29085
|
+
[1m[35m (0.0ms)[0m BEGIN
|
29086
|
+
-----------------------------------------------------------------
|
29087
|
+
SquintTest: test_detects_default_integer_storext_jsonb_attributes
|
29088
|
+
-----------------------------------------------------------------
|
29089
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
29090
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '0' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') = FALSE))
|
29091
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29092
|
+
[1m[35m (0.0ms)[0m BEGIN
|
29093
|
+
-------------------------------------------------------
|
29094
|
+
SquintTest: test_finds_records_for_properties_populated
|
29095
|
+
-------------------------------------------------------
|
29096
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'[0m
|
29097
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29098
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
29099
|
+
---------------------------------------------------------------------------------------------------
|
29100
|
+
SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
|
29101
|
+
---------------------------------------------------------------------------------------------------
|
29102
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'
|
29103
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
29104
|
+
[1m[35m (0.0ms)[0m BEGIN
|
29105
|
+
---------------------------------------------------------
|
29106
|
+
SquintTest: test_detects_default_storext_jsonb_attributes
|
29107
|
+
---------------------------------------------------------
|
29108
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
29109
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
29110
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29111
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29112
|
+
---------------------------------------------------------
|
29113
|
+
SquintTest: test_finds_records_for_request_info_populated
|
29114
|
+
---------------------------------------------------------
|
29115
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'[0m
|
29116
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29117
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
29118
|
+
--------------------------------------------------------------------
|
29119
|
+
SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
|
29120
|
+
--------------------------------------------------------------------
|
29121
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
29122
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_is_awesome' = 'false' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') = FALSE))[0m
|
29123
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29124
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
29125
|
+
---------------------------------------------------------------------
|
29126
|
+
SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
|
29127
|
+
---------------------------------------------------------------------
|
29128
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
29129
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_is_awesome' = 'false' OR ((exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') IS NULL))[0m
|
29130
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29131
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
29132
|
+
-----------------------------------------------------------------
|
29133
|
+
SquintTest: test_detects_present_integer_storext_jsonb_attributes
|
29134
|
+
-----------------------------------------------------------------
|
29135
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
|
29136
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29137
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29138
|
+
--------------------------------------------------------
|
29139
|
+
SquintTest: test_finds_records_for_request_info_with_nil
|
29140
|
+
--------------------------------------------------------
|
29141
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL[0m
|
29142
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29143
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29144
|
+
--------------------------------------------------------------------
|
29145
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array
|
29146
|
+
--------------------------------------------------------------------
|
29147
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
|
29148
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29149
|
+
[1m[35m (0.0ms)[0m BEGIN
|
29150
|
+
------------------------------------------------------------------
|
29151
|
+
SquintTest: test_detects_present_integer_storext_hstore_attributes
|
29152
|
+
------------------------------------------------------------------
|
29153
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'[0m
|
29154
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29155
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
29156
|
+
----------------------------------------------------------
|
29157
|
+
SquintTest: test_detects_present_storext_hstore_attributes
|
29158
|
+
----------------------------------------------------------
|
29159
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
|
29160
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29161
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29162
|
+
-----------------------------------------------
|
29163
|
+
SquintTest: test_generates_SQL_for_request_info
|
29164
|
+
-----------------------------------------------
|
29165
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29166
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29167
|
+
----------------------------------------------------------------------------------
|
29168
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
|
29169
|
+
----------------------------------------------------------------------------------
|
29170
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)[0m
|
29171
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29172
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29173
|
+
-------------------------------------------------------------------------------------------------
|
29174
|
+
SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
|
29175
|
+
-------------------------------------------------------------------------------------------------
|
29176
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'
|
29177
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29178
|
+
[1m[35m (0.0ms)[0m BEGIN
|
29179
|
+
------------------------------------------
|
29180
|
+
SquintTest: test_handles_string_parameters
|
29181
|
+
------------------------------------------
|
29182
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '11' AND (posts.title = 'With Storext is aweesome not default title')[0m
|
29183
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29184
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29185
|
+
------------------------------------------------------
|
29186
|
+
SquintTest: test_finds_records_for_properties_with_nil
|
29187
|
+
------------------------------------------------------
|
29188
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
|
29189
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29190
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29191
|
+
---------------------------------------------------------------------------
|
29192
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
|
29193
|
+
---------------------------------------------------------------------------
|
29194
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
29195
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
29196
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
29197
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29198
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29199
|
+
---------------------------------------------------------
|
29200
|
+
SquintTest: test_detects_present_storext_jsonb_attributes
|
29201
|
+
---------------------------------------------------------
|
29202
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
|
29203
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29204
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29205
|
+
-------------------------------------------------------------------------------------------
|
29206
|
+
SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
|
29207
|
+
-------------------------------------------------------------------------------------------
|
29208
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
29209
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL
|
29210
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29211
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29212
|
+
----------------------------------------------------------------------
|
29213
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
|
29214
|
+
----------------------------------------------------------------------
|
29215
|
+
[1m[36mPost Load (0.3ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
29216
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
29217
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
29218
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29219
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29220
|
+
-----------------------------------------------------------------------------------------
|
29221
|
+
SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
|
29222
|
+
-----------------------------------------------------------------------------------------
|
29223
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "posts"
|
29224
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL[0m
|
29225
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29226
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
29227
|
+
[1m[35m (0.2ms)[0m ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
|
29228
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29229
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "posts"
|
29230
|
+
[1m[36mFixture Insert (0.6ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post One Title', 'Post One Body', '{"referer":"http://example.com/one"}', '"referer"=>"http://example.com/one"', '2017-06-30 20:01:50', '2017-06-30 20:01:50', 980190962)[0m
|
29231
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "created_at", "updated_at", "id") VALUES ('Post Two Title', 'Post Two Body', '{"referer":"http://example.com/two"}', '"referer"=>"http://example.com/two"', '2017-06-30 20:01:50', '2017-06-30 20:01:50', 298486374)
|
29232
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "posts" ("title", "body", "created_at", "updated_at", "id") VALUES ('Post Three Title', 'Post Three Body', '2017-06-30 20:01:50', '2017-06-30 20:01:50', 113629430)[0m
|
29233
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext title', 'With Storext title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"35124"}', '"hstore_zip_code"=>"35124"', '2017-06-30 20:01:50', '2017-06-30 20:01:50', 1031054186)
|
29234
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext friends title', 'With Storext friends title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36081","jsonb_friend_count":10}', '"hstore_zip_code"=>"36081", "hstore_friend_count"=>"10"', '2017-06-30 20:01:50', '2017-06-30 20:01:50', 433859201)[0m
|
29235
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is awesome title', 'With Storext is awesome title', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":false}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"false"', '2017-06-30 20:01:50', '2017-06-30 20:01:50', 996585442)
|
29236
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is aweesome not default title', 'With Storext is awesome not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_awesome":true}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_awesome"=>"true"', '2017-06-30 20:01:50', '2017-06-30 20:01:50', 423633666)[0m
|
29237
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present default title', 'With Storext is present default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"nil"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"nil"', '2017-06-30 20:01:50', '2017-06-30 20:01:50', 813641888)
|
29238
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "posts" ("title", "body", "request_info", "properties", "storext_jsonb_attributes", "storext_hstore_attributes", "created_at", "updated_at", "id") VALUES ('With Storext is present not default title', 'With Storext is present not default body', '{"referer":"http://example.com/random"}', '"referer"=>"http://example.com/random"', '{"jsonb_zip_code":"36085","jsonb_friend_count":11,"jsonb_is_present":"Heck Yeah"}', '"hstore_zip_code"=>"36085", "hstore_friend_count"=>"11", "hstore_is_present"=>"Heck Yeah"', '2017-06-30 20:01:50', '2017-06-30 20:01:50', 199613990)[0m
|
29239
|
+
[1m[35m (0.1ms)[0m COMMIT
|
29240
|
+
[1m[36m (0.1ms)[0m [1mALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL[0m
|
29241
|
+
[1m[35m (0.0ms)[0m BEGIN
|
29242
|
+
--------------------------------------------------------------------
|
29243
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array
|
29244
|
+
--------------------------------------------------------------------
|
29245
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')[0m
|
29246
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29247
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29248
|
+
---------------------------------------------
|
29249
|
+
SquintTest: test_generates_SQL_for_properties
|
29250
|
+
---------------------------------------------
|
29251
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29252
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29253
|
+
-----------------------------------------------------------------
|
29254
|
+
SquintTest: test_detects_default_integer_storext_jsonb_attributes
|
29255
|
+
-----------------------------------------------------------------
|
29256
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
29257
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '0' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_friend_count') = FALSE))[0m
|
29258
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29259
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29260
|
+
------------------------------------------------------------------
|
29261
|
+
SquintTest: test_detects_default_integer_storext_hstore_attributes
|
29262
|
+
------------------------------------------------------------------
|
29263
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
29264
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_friend_count' = '0' OR ((exist("posts"."storext_hstore_attributes", 'hstore_friend_count') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_friend_count') IS NULL))[0m
|
29265
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29266
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29267
|
+
-----------------------------------------------------------------
|
29268
|
+
SquintTest: test_detects_present_integer_storext_jsonb_attributes
|
29269
|
+
-----------------------------------------------------------------
|
29270
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
|
29271
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29272
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29273
|
+
------------------------------------------------------------------
|
29274
|
+
SquintTest: test_finds_records_for_properties_populated_with_array
|
29275
|
+
------------------------------------------------------------------
|
29276
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')[0m
|
29277
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29278
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29279
|
+
-------------------------------------------------------------------------------------------
|
29280
|
+
SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
|
29281
|
+
-------------------------------------------------------------------------------------------
|
29282
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
29283
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL[0m
|
29284
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29285
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
29286
|
+
-----------------------------------------------
|
29287
|
+
SquintTest: test_generates_SQL_for_request_info
|
29288
|
+
-----------------------------------------------
|
29289
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29290
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29291
|
+
----------------------------------------------------------------------------------
|
29292
|
+
SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
|
29293
|
+
----------------------------------------------------------------------------------
|
29294
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
|
29295
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29296
|
+
[1m[35m (0.0ms)[0m BEGIN
|
29297
|
+
-------------------------------------------------------------------------------------------------
|
29298
|
+
SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
|
29299
|
+
-------------------------------------------------------------------------------------------------
|
29300
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'[0m
|
29301
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29302
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
29303
|
+
---------------------------------------------------------
|
29304
|
+
SquintTest: test_finds_records_for_request_info_populated
|
29305
|
+
---------------------------------------------------------
|
29306
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'
|
29307
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29308
|
+
[1m[35m (0.0ms)[0m BEGIN
|
29309
|
+
------------------------------------------
|
29310
|
+
SquintTest: test_handles_string_parameters
|
29311
|
+
------------------------------------------
|
29312
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '11' AND (posts.title = 'With Storext is aweesome not default title')[0m
|
29313
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
29314
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
29315
|
+
------------------------------------------------------------------
|
29316
|
+
SquintTest: test_detects_present_integer_storext_hstore_attributes
|
29317
|
+
------------------------------------------------------------------
|
29318
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'
|
29319
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29320
|
+
[1m[35m (0.0ms)[0m BEGIN
|
29321
|
+
--------------------------------------------------------
|
29322
|
+
SquintTest: test_finds_records_for_request_info_with_nil
|
29323
|
+
--------------------------------------------------------
|
29324
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL[0m
|
29325
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29326
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
29327
|
+
---------------------------------------------------------------------------
|
29328
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
|
29329
|
+
---------------------------------------------------------------------------
|
29330
|
+
[1m[35mPost Load (0.3ms)[0m SELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1
|
29331
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))[0m
|
29332
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1 [["id", 113629430]]
|
29333
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
29334
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29335
|
+
----------------------------------------------------------------------------
|
29336
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
|
29337
|
+
----------------------------------------------------------------------------
|
29338
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
29339
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
29340
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
29341
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29342
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29343
|
+
---------------------------------------------------------------------
|
29344
|
+
SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
|
29345
|
+
---------------------------------------------------------------------
|
29346
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts"
|
29347
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_is_awesome' = 'false' OR ((exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_is_awesome') IS NULL))[0m
|
29348
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29349
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29350
|
+
--------------------------------------------------------------------
|
29351
|
+
SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
|
29352
|
+
--------------------------------------------------------------------
|
29353
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts"
|
29354
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_is_awesome' = 'false' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_is_awesome') = FALSE))[0m
|
29355
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29356
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29357
|
+
--------------------------------------------------------------------------------
|
29358
|
+
SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
|
29359
|
+
--------------------------------------------------------------------------------
|
29360
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
|
29361
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29362
|
+
[1m[35m (0.0ms)[0m BEGIN
|
29363
|
+
----------------------------------------------------------
|
29364
|
+
SquintTest: test_detects_default_storext_hstore_attributes
|
29365
|
+
----------------------------------------------------------
|
29366
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
29367
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
29368
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29369
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29370
|
+
---------------------------------------------------------------------------------------------------
|
29371
|
+
SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
|
29372
|
+
---------------------------------------------------------------------------------------------------
|
29373
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'[0m
|
29374
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29375
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29376
|
+
---------------------------------------------------------
|
29377
|
+
SquintTest: test_detects_present_storext_jsonb_attributes
|
29378
|
+
---------------------------------------------------------
|
29379
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
|
29380
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29381
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29382
|
+
----------------------------------------------------------------------
|
29383
|
+
SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
|
29384
|
+
----------------------------------------------------------------------
|
29385
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
29386
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL))
|
29387
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_hstore_attributes"->'hstore_zip_code' = '90210' OR ((exist("posts"."storext_hstore_attributes", 'hstore_zip_code') = FALSE) OR exist("posts"."storext_hstore_attributes", 'hstore_zip_code') IS NULL)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
29388
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29389
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29390
|
+
---------------------------------------------------------
|
29391
|
+
SquintTest: test_detects_default_storext_jsonb_attributes
|
29392
|
+
---------------------------------------------------------
|
29393
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts"
|
29394
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))[0m
|
29395
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
29396
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29397
|
+
----------------------------------------------------------
|
29398
|
+
SquintTest: test_detects_present_storext_hstore_attributes
|
29399
|
+
----------------------------------------------------------
|
29400
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
|
29401
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29402
|
+
[1m[35m (0.0ms)[0m BEGIN
|
29403
|
+
-----------------------------------------------------------------------------------------
|
29404
|
+
SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
|
29405
|
+
-----------------------------------------------------------------------------------------
|
29406
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts"[0m
|
29407
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
|
29408
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
29409
|
+
[1m[35m (0.0ms)[0m BEGIN
|
29410
|
+
-------------------------------------------------------
|
29411
|
+
SquintTest: test_finds_records_for_properties_populated
|
29412
|
+
-------------------------------------------------------
|
29413
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'[0m
|
29414
|
+
[1m[35m (0.0ms)[0m ROLLBACK
|
29415
|
+
[1m[36m (0.0ms)[0m [1mBEGIN[0m
|
29416
|
+
------------------------------------------------------
|
29417
|
+
SquintTest: test_finds_records_for_properties_with_nil
|
29418
|
+
------------------------------------------------------
|
29419
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
|
29420
|
+
[1m[36m (0.0ms)[0m [1mROLLBACK[0m
|
29421
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29422
|
+
---------------------------------------------------------------------
|
29423
|
+
SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
|
29424
|
+
---------------------------------------------------------------------
|
29425
|
+
[1m[36mPost Load (0.2ms)[0m [1mSELECT "posts".* FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) ORDER BY "posts"."id" ASC LIMIT 1[0m
|
29426
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE))
|
29427
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "posts" WHERE ("posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '90210' OR (("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') IS NULL OR ("posts"."storext_jsonb_attributes" ? 'jsonb_zip_code') = FALSE)) AND "posts"."id" = $1[0m [["id", 113629430]]
|
29428
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|