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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fec97dc85dd083e4a957f2f4096b0ea02292582b
4
- data.tar.gz: 53764ef0ad978f8cc7f9e8c85703166abda7d262
3
+ metadata.gz: 9a5809890b110fc3863311aad72c13db199e7e88
4
+ data.tar.gz: '080abf910d75ad22c8fbe88888dfdcc3eb097e85'
5
5
  SHA512:
6
- metadata.gz: 332e6d79f31fc3e799e012cf6cf828156bc0c292aff29a306677c719a97699f64a113531c8a844ed96efefaa2294916ada5dfc0812748b51dad72fe388e4d7b1
7
- data.tar.gz: 81c2aedc39702bbe42bdbb9f106331c13420dbb157a2f84f44189df35d6fbe7022ca651a29bbcdd4083ac508a431048f71d74a29acb832ea20b750281e8a2070
6
+ metadata.gz: dae6174d587f03165c68a23c29a587b36a10020e58e8270cbd9140a51b206677df2dc5f78f54184baef9ec1caf1c03df483589d93f32baece688a09397a9aff5
7
+ data.tar.gz: 0e14e56fda9c7f06fd164a1005e686622ebfc29b07d4208e0030c3b00f63bda28b79182d473a059cc77df03d763a82c6f23e6b3e0f50c37dac128e23c32373ac
@@ -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
- args.inject([]) do |memo, arg|
16
- if arg.is_a?(Hash)
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
- memo += super(arg)
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
@@ -1,3 +1,3 @@
1
1
  module Squint
2
- VERSION = "0.0.1".freeze
2
+ VERSION = "0.0.2".freeze
3
3
  end
@@ -27197,3 +27197,2232 @@ SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
27197
27197
   (0.1ms) 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))
27198
27198
   (0.1ms) 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
   (0.1ms) ROLLBACK
27200
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
27201
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
27202
+  (0.2ms) BEGIN
27203
+ Fixture Delete (0.4ms) DELETE FROM "posts"
27204
+ Fixture Insert (0.6ms) INSERT 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)
27205
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
27207
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
27209
+ Fixture Insert (0.3ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
27211
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
27213
+  (0.1ms) COMMIT
27214
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL
27215
+  (0.1ms) BEGIN
27216
+ -------------------------------------------------------
27217
+ SquintTest: test_finds_records_for_properties_populated
27218
+ -------------------------------------------------------
27219
+  (1.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
27220
+  (0.5ms) ROLLBACK
27221
+  (0.2ms) BEGIN
27222
+ ------------------------------------------------------------------
27223
+ SquintTest: test_finds_records_for_properties_populated_with_array
27224
+ ------------------------------------------------------------------
27225
+  (0.4ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
27226
+  (0.2ms) ROLLBACK
27227
+  (0.1ms) BEGIN
27228
+ ---------------------------------------------------------
27229
+ SquintTest: test_finds_records_for_request_info_populated
27230
+ ---------------------------------------------------------
27231
+  (1.0ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'
27232
+  (0.3ms) ROLLBACK
27233
+  (0.3ms) BEGIN
27234
+ -----------------------------------------------------------------------------------------
27235
+ SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
27236
+ -----------------------------------------------------------------------------------------
27237
+  (0.3ms) SELECT COUNT(*) FROM "posts"
27238
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
27239
+  (0.2ms) ROLLBACK
27240
+  (0.1ms) BEGIN
27241
+ --------------------------------------------------------
27242
+ SquintTest: test_finds_records_for_request_info_with_nil
27243
+ --------------------------------------------------------
27244
+  (0.8ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL
27245
+  (0.3ms) ROLLBACK
27246
+  (0.3ms) BEGIN
27247
+ ---------------------------------------------------------------------
27248
+ SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
27249
+ ---------------------------------------------------------------------
27250
+  (0.7ms) SELECT COUNT(*) FROM "posts"
27251
+  (0.9ms) 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
+  (0.5ms) ROLLBACK
27253
+  (0.2ms) BEGIN
27254
+ -----------------------------------------------------------------
27255
+ SquintTest: test_detects_present_integer_storext_jsonb_attributes
27256
+ -----------------------------------------------------------------
27257
+  (0.9ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
27258
+  (0.3ms) ROLLBACK
27259
+  (0.3ms) BEGIN
27260
+ ---------------------------------------------------------
27261
+ SquintTest: test_detects_present_storext_jsonb_attributes
27262
+ ---------------------------------------------------------
27263
+  (0.7ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
27264
+  (0.3ms) ROLLBACK
27265
+  (0.1ms) BEGIN
27266
+ ------------------------------------------------------------------
27267
+ SquintTest: test_detects_present_integer_storext_hstore_attributes
27268
+ ------------------------------------------------------------------
27269
+  (0.7ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'
27270
+  (0.3ms) ROLLBACK
27271
+  (0.1ms) BEGIN
27272
+ ---------------------------------------------
27273
+ SquintTest: test_generates_SQL_for_properties
27274
+ ---------------------------------------------
27275
+  (0.2ms) ROLLBACK
27276
+  (0.1ms) BEGIN
27277
+ --------------------------------------------------------------------
27278
+ SquintTest: test_finds_records_for_request_info_populated_with_array
27279
+ --------------------------------------------------------------------
27280
+  (0.7ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
27281
+  (0.2ms) ROLLBACK
27282
+  (0.2ms) BEGIN
27283
+ -------------------------------------------------------------------------------------------------
27284
+ SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
27285
+ -------------------------------------------------------------------------------------------------
27286
+  (0.7ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'
27287
+  (0.3ms) ROLLBACK
27288
+  (0.2ms) BEGIN
27289
+ ---------------------------------------------------------------------------
27290
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
27291
+ ---------------------------------------------------------------------------
27292
+ Post Load (1.7ms) 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
+  (0.9ms) 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))
27294
+  (0.7ms) 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
+  (0.4ms) ROLLBACK
27296
+  (0.3ms) BEGIN
27297
+ -----------------------------------------------------------------
27298
+ SquintTest: test_detects_default_integer_storext_jsonb_attributes
27299
+ -----------------------------------------------------------------
27300
+  (0.8ms) SELECT COUNT(*) FROM "posts"
27301
+  (0.7ms) 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
+  (0.3ms) ROLLBACK
27303
+  (0.3ms) BEGIN
27304
+ -------------------------------------------------------------------------------------------
27305
+ SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
27306
+ -------------------------------------------------------------------------------------------
27307
+  (0.8ms) SELECT COUNT(*) FROM "posts"
27308
+  (0.6ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL
27309
+  (0.3ms) ROLLBACK
27310
+  (0.3ms) BEGIN
27311
+ ---------------------------------------------------------------------------------------------------
27312
+ SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
27313
+ ---------------------------------------------------------------------------------------------------
27314
+  (0.8ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'
27315
+  (0.4ms) ROLLBACK
27316
+  (0.3ms) BEGIN
27317
+ --------------------------------------------------------------------------------
27318
+ SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
27319
+ --------------------------------------------------------------------------------
27320
+  (0.9ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
27321
+  (0.3ms) ROLLBACK
27322
+  (0.3ms) BEGIN
27323
+ ----------------------------------------------------------------------------
27324
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
27325
+ ----------------------------------------------------------------------------
27326
+ Post Load (1.1ms) 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
27327
+  (0.4ms) 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
+  (0.3ms) 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]]
27329
+  (0.2ms) ROLLBACK
27330
+  (0.2ms) BEGIN
27331
+ ----------------------------------------------------------------------
27332
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
27333
+ ----------------------------------------------------------------------
27334
+ Post Load (1.0ms) 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
+  (1.1ms) 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))
27336
+  (0.6ms) 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
+  (0.3ms) ROLLBACK
27338
+  (0.2ms) BEGIN
27339
+ ---------------------------------------------------------------------
27340
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
27341
+ ---------------------------------------------------------------------
27342
+ Post Load (1.2ms) 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
27343
+  (1.0ms) 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
+  (0.6ms) 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]]
27345
+  (0.4ms) ROLLBACK
27346
+  (0.2ms) BEGIN
27347
+ ------------------------------------------------------------------
27348
+ SquintTest: test_detects_default_integer_storext_hstore_attributes
27349
+ ------------------------------------------------------------------
27350
+  (0.8ms) SELECT COUNT(*) FROM "posts"
27351
+  (0.8ms) 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))
27352
+  (0.3ms) ROLLBACK
27353
+  (0.2ms) BEGIN
27354
+ ----------------------------------------------------------
27355
+ SquintTest: test_detects_default_storext_hstore_attributes
27356
+ ----------------------------------------------------------
27357
+  (0.8ms) SELECT COUNT(*) FROM "posts"
27358
+  (0.8ms) 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))
27359
+  (0.4ms) ROLLBACK
27360
+  (0.3ms) BEGIN
27361
+ ---------------------------------------------------------
27362
+ SquintTest: test_detects_default_storext_jsonb_attributes
27363
+ ---------------------------------------------------------
27364
+  (0.7ms) SELECT COUNT(*) FROM "posts"
27365
+  (0.7ms) 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))
27366
+  (0.4ms) ROLLBACK
27367
+  (0.3ms) BEGIN
27368
+ ----------------------------------------------------------------------------------
27369
+ SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
27370
+ ----------------------------------------------------------------------------------
27371
+  (0.8ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
27372
+  (0.3ms) ROLLBACK
27373
+  (0.3ms) BEGIN
27374
+ --------------------------------------------------------------------
27375
+ SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
27376
+ --------------------------------------------------------------------
27377
+  (0.8ms) SELECT COUNT(*) FROM "posts"
27378
+  (0.8ms) 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
+  (0.3ms) ROLLBACK
27380
+  (0.3ms) BEGIN
27381
+ ----------------------------------------------------------
27382
+ SquintTest: test_detects_present_storext_hstore_attributes
27383
+ ----------------------------------------------------------
27384
+  (0.4ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
27385
+  (0.2ms) ROLLBACK
27386
+  (0.1ms) BEGIN
27387
+ ------------------------------------------------------
27388
+ SquintTest: test_finds_records_for_properties_with_nil
27389
+ ------------------------------------------------------
27390
+  (0.7ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
27391
+  (0.3ms) ROLLBACK
27392
+  (0.3ms) BEGIN
27393
+ -----------------------------------------------
27394
+ SquintTest: test_generates_SQL_for_request_info
27395
+ -----------------------------------------------
27396
+  (0.2ms) ROLLBACK
27397
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
27398
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
27399
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
27400
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
27401
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
27402
+  (0.3ms) BEGIN
27403
+ Fixture Delete (0.3ms) DELETE FROM "posts"
27404
+ Fixture Insert (0.6ms) INSERT 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)
27405
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
27407
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
27409
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
27411
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
27413
+  (0.1ms) COMMIT
27414
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL
27415
+  (0.2ms) BEGIN
27416
+ ---------------------------------------------------------
27417
+ SquintTest: test_detects_present_storext_jsonb_attributes
27418
+ ---------------------------------------------------------
27419
+  (0.4ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
27420
+  (0.2ms) ROLLBACK
27421
+  (0.2ms) BEGIN
27422
+ -----------------------------------------------------------------
27423
+ SquintTest: test_detects_present_integer_storext_jsonb_attributes
27424
+ -----------------------------------------------------------------
27425
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
27426
+  (0.1ms) ROLLBACK
27427
+  (0.1ms) BEGIN
27428
+ ---------------------------------------------
27429
+ SquintTest: test_generates_SQL_for_properties
27430
+ ---------------------------------------------
27431
+  (0.1ms) ROLLBACK
27432
+  (0.2ms) BEGIN
27433
+ -------------------------------------------------------------------------------------------
27434
+ SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
27435
+ -------------------------------------------------------------------------------------------
27436
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27437
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL
27438
+  (0.1ms) ROLLBACK
27439
+  (0.1ms) BEGIN
27440
+ ----------------------------------------------------------------------------
27441
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
27442
+ ----------------------------------------------------------------------------
27443
+ Post Load (0.4ms) 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
27444
+  (0.3ms) 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
+  (0.2ms) 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]]
27446
+  (0.2ms) ROLLBACK
27447
+  (0.2ms) BEGIN
27448
+ -------------------------------------------------------
27449
+ SquintTest: test_finds_records_for_properties_populated
27450
+ -------------------------------------------------------
27451
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
27452
+  (0.1ms) ROLLBACK
27453
+  (0.1ms) BEGIN
27454
+ ------------------------------------------------------------------
27455
+ SquintTest: test_detects_present_integer_storext_hstore_attributes
27456
+ ------------------------------------------------------------------
27457
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'
27458
+  (0.1ms) ROLLBACK
27459
+  (0.1ms) BEGIN
27460
+ --------------------------------------------------------------------------------
27461
+ SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
27462
+ --------------------------------------------------------------------------------
27463
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
27464
+  (0.1ms) ROLLBACK
27465
+  (0.1ms) BEGIN
27466
+ --------------------------------------------------------
27467
+ SquintTest: test_finds_records_for_request_info_with_nil
27468
+ --------------------------------------------------------
27469
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL
27470
+  (0.1ms) ROLLBACK
27471
+  (0.1ms) BEGIN
27472
+ ----------------------------------------------------------
27473
+ SquintTest: test_detects_present_storext_hstore_attributes
27474
+ ----------------------------------------------------------
27475
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
27476
+  (0.1ms) ROLLBACK
27477
+  (0.1ms) BEGIN
27478
+ ----------------------------------------------------------------------
27479
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
27480
+ ----------------------------------------------------------------------
27481
+ Post Load (0.2ms) 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
27482
+  (0.2ms) 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
+  (0.2ms) 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]]
27484
+  (0.2ms) ROLLBACK
27485
+  (0.1ms) BEGIN
27486
+ ------------------------------------------------------------------
27487
+ SquintTest: test_finds_records_for_properties_populated_with_array
27488
+ ------------------------------------------------------------------
27489
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
27490
+  (0.1ms) ROLLBACK
27491
+  (0.1ms) BEGIN
27492
+ ---------------------------------------------------------------------
27493
+ SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
27494
+ ---------------------------------------------------------------------
27495
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27496
+  (0.2ms) 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
+  (0.1ms) ROLLBACK
27498
+  (0.1ms) BEGIN
27499
+ -----------------------------------------------------------------------------------------
27500
+ SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
27501
+ -----------------------------------------------------------------------------------------
27502
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27503
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
27504
+  (0.1ms) ROLLBACK
27505
+  (0.0ms) BEGIN
27506
+ ---------------------------------------------------------
27507
+ SquintTest: test_finds_records_for_request_info_populated
27508
+ ---------------------------------------------------------
27509
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'
27510
+  (0.0ms) ROLLBACK
27511
+  (0.1ms) BEGIN
27512
+ -----------------------------------------------
27513
+ SquintTest: test_generates_SQL_for_request_info
27514
+ -----------------------------------------------
27515
+  (0.0ms) ROLLBACK
27516
+  (0.0ms) BEGIN
27517
+ -------------------------------------------------------------------------------------------------
27518
+ SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
27519
+ -------------------------------------------------------------------------------------------------
27520
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'
27521
+  (0.1ms) ROLLBACK
27522
+  (0.0ms) BEGIN
27523
+ -----------------------------------------------------------------
27524
+ SquintTest: test_detects_default_integer_storext_jsonb_attributes
27525
+ -----------------------------------------------------------------
27526
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27527
+  (0.2ms) 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
+  (0.0ms) ROLLBACK
27529
+  (0.1ms) BEGIN
27530
+ ---------------------------------------------------------
27531
+ SquintTest: test_detects_default_storext_jsonb_attributes
27532
+ ---------------------------------------------------------
27533
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27534
+  (0.2ms) 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
+  (0.1ms) ROLLBACK
27536
+  (0.0ms) BEGIN
27537
+ ------------------------------------------------------
27538
+ SquintTest: test_finds_records_for_properties_with_nil
27539
+ ------------------------------------------------------
27540
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
27541
+  (0.1ms) ROLLBACK
27542
+  (0.1ms) BEGIN
27543
+ ---------------------------------------------------------------------------------------------------
27544
+ SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
27545
+ ---------------------------------------------------------------------------------------------------
27546
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'
27547
+  (0.1ms) ROLLBACK
27548
+  (0.1ms) BEGIN
27549
+ ------------------------------------------
27550
+ SquintTest: test_handles_string_parameters
27551
+ ------------------------------------------
27552
+  (0.1ms) ROLLBACK
27553
+  (0.1ms) BEGIN
27554
+ ---------------------------------------------------------------------------
27555
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
27556
+ ---------------------------------------------------------------------------
27557
+ Post Load (0.3ms) 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
27558
+  (0.3ms) 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
+  (0.2ms) 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]]
27560
+  (0.1ms) ROLLBACK
27561
+  (0.1ms) BEGIN
27562
+ --------------------------------------------------------------------
27563
+ SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
27564
+ --------------------------------------------------------------------
27565
+  (0.2ms) SELECT COUNT(*) FROM "posts"
27566
+  (0.2ms) 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))
27567
+  (0.1ms) ROLLBACK
27568
+  (0.1ms) BEGIN
27569
+ ----------------------------------------------------------
27570
+ SquintTest: test_detects_default_storext_hstore_attributes
27571
+ ----------------------------------------------------------
27572
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27573
+  (0.3ms) 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))
27574
+  (0.2ms) ROLLBACK
27575
+  (0.1ms) BEGIN
27576
+ ----------------------------------------------------------------------------------
27577
+ SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
27578
+ ----------------------------------------------------------------------------------
27579
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
27580
+  (0.1ms) ROLLBACK
27581
+  (0.0ms) BEGIN
27582
+ --------------------------------------------------------------------
27583
+ SquintTest: test_finds_records_for_request_info_populated_with_array
27584
+ --------------------------------------------------------------------
27585
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
27586
+  (0.1ms) ROLLBACK
27587
+  (0.1ms) BEGIN
27588
+ ------------------------------------------------------------------
27589
+ SquintTest: test_detects_default_integer_storext_hstore_attributes
27590
+ ------------------------------------------------------------------
27591
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27592
+  (0.1ms) 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))
27593
+  (0.1ms) ROLLBACK
27594
+  (0.0ms) BEGIN
27595
+ ---------------------------------------------------------------------
27596
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
27597
+ ---------------------------------------------------------------------
27598
+ Post Load (0.2ms) 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
+  (0.1ms) 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))
27600
+  (0.1ms) 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
+  (0.1ms) ROLLBACK
27602
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
27603
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
27604
+  (0.2ms) BEGIN
27605
+ Fixture Delete (0.3ms) DELETE FROM "posts"
27606
+ Fixture Insert (0.6ms) INSERT 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)
27607
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
27609
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
27611
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
27613
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
27615
+  (0.1ms) COMMIT
27616
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL
27617
+  (0.2ms) BEGIN
27618
+ ------------------------------------------------------------------
27619
+ SquintTest: test_detects_default_integer_storext_hstore_attributes
27620
+ ------------------------------------------------------------------
27621
+  (0.3ms) SELECT COUNT(*) FROM "posts"
27622
+  (0.4ms) 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
+  (0.2ms) ROLLBACK
27624
+  (0.1ms) BEGIN
27625
+ ----------------------------------------------------------------------------------
27626
+ SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
27627
+ ----------------------------------------------------------------------------------
27628
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
27629
+  (0.1ms) ROLLBACK
27630
+  (0.1ms) BEGIN
27631
+ -----------------------------------------------------------------
27632
+ SquintTest: test_detects_present_integer_storext_jsonb_attributes
27633
+ -----------------------------------------------------------------
27634
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
27635
+  (0.1ms) ROLLBACK
27636
+  (0.1ms) BEGIN
27637
+ ---------------------------------------------------------------------------
27638
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
27639
+ ---------------------------------------------------------------------------
27640
+ Post Load (0.4ms) 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
27641
+  (0.2ms) 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
+  (0.3ms) 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]]
27643
+  (0.2ms) ROLLBACK
27644
+  (0.1ms) BEGIN
27645
+ ------------------------------------------------------------------
27646
+ SquintTest: test_finds_records_for_properties_populated_with_array
27647
+ ------------------------------------------------------------------
27648
+  (0.4ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
27649
+  (0.2ms) ROLLBACK
27650
+  (0.2ms) BEGIN
27651
+ ------------------------------------------------------
27652
+ SquintTest: test_finds_records_for_properties_with_nil
27653
+ ------------------------------------------------------
27654
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
27655
+  (0.1ms) ROLLBACK
27656
+  (0.1ms) BEGIN
27657
+ --------------------------------------------------------------------------------
27658
+ SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
27659
+ --------------------------------------------------------------------------------
27660
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
27661
+  (0.1ms) ROLLBACK
27662
+  (0.1ms) BEGIN
27663
+ --------------------------------------------------------------------
27664
+ SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
27665
+ --------------------------------------------------------------------
27666
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27667
+  (0.2ms) 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
+  (0.1ms) ROLLBACK
27669
+  (0.0ms) BEGIN
27670
+ ----------------------------------------------------------
27671
+ SquintTest: test_detects_present_storext_hstore_attributes
27672
+ ----------------------------------------------------------
27673
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
27674
+  (0.1ms) ROLLBACK
27675
+  (0.1ms) BEGIN
27676
+ ---------------------------------------------------------
27677
+ SquintTest: test_detects_default_storext_jsonb_attributes
27678
+ ---------------------------------------------------------
27679
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27680
+  (0.1ms) 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))
27681
+  (0.1ms) ROLLBACK
27682
+  (0.1ms) BEGIN
27683
+ -----------------------------------------------------------------------------------------
27684
+ SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
27685
+ -----------------------------------------------------------------------------------------
27686
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27687
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
27688
+  (0.1ms) ROLLBACK
27689
+  (0.1ms) BEGIN
27690
+ ----------------------------------------------------------
27691
+ SquintTest: test_detects_default_storext_hstore_attributes
27692
+ ----------------------------------------------------------
27693
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27694
+  (0.1ms) 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))
27695
+  (0.1ms) ROLLBACK
27696
+  (0.0ms) BEGIN
27697
+ ---------------------------------------------------------
27698
+ SquintTest: test_detects_present_storext_jsonb_attributes
27699
+ ---------------------------------------------------------
27700
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
27701
+  (0.1ms) ROLLBACK
27702
+  (0.0ms) BEGIN
27703
+ ----------------------------------------------------------------------------
27704
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
27705
+ ----------------------------------------------------------------------------
27706
+ Post Load (0.2ms) 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
27707
+  (0.1ms) 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
+  (0.1ms) 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]]
27709
+  (0.1ms) ROLLBACK
27710
+  (0.0ms) BEGIN
27711
+ -----------------------------------------------
27712
+ SquintTest: test_generates_SQL_for_request_info
27713
+ -----------------------------------------------
27714
+  (0.0ms) ROLLBACK
27715
+  (0.0ms) BEGIN
27716
+ -------------------------------------------------------------------------------------------------
27717
+ SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
27718
+ -------------------------------------------------------------------------------------------------
27719
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'
27720
+  (0.1ms) ROLLBACK
27721
+  (0.0ms) BEGIN
27722
+ ---------------------------------------------------------------------------------------------------
27723
+ SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
27724
+ ---------------------------------------------------------------------------------------------------
27725
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'
27726
+  (0.1ms) ROLLBACK
27727
+  (0.1ms) BEGIN
27728
+ -------------------------------------------------------
27729
+ SquintTest: test_finds_records_for_properties_populated
27730
+ -------------------------------------------------------
27731
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
27732
+  (0.1ms) ROLLBACK
27733
+  (0.0ms) BEGIN
27734
+ ---------------------------------------------------------------------
27735
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
27736
+ ---------------------------------------------------------------------
27737
+ Post Load (0.3ms) 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
27738
+  (0.2ms) 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
+  (0.1ms) 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]]
27740
+  (0.2ms) ROLLBACK
27741
+  (0.1ms) BEGIN
27742
+ -----------------------------------------------------------------
27743
+ SquintTest: test_detects_default_integer_storext_jsonb_attributes
27744
+ -----------------------------------------------------------------
27745
+  (0.2ms) SELECT COUNT(*) FROM "posts"
27746
+  (0.2ms) 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))
27747
+  (0.1ms) ROLLBACK
27748
+  (0.1ms) BEGIN
27749
+ ------------------------------------------------------------------
27750
+ SquintTest: test_detects_present_integer_storext_hstore_attributes
27751
+ ------------------------------------------------------------------
27752
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'
27753
+  (0.1ms) ROLLBACK
27754
+  (0.1ms) BEGIN
27755
+ ----------------------------------------------------------------------
27756
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
27757
+ ----------------------------------------------------------------------
27758
+ Post Load (0.2ms) 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
27759
+  (0.2ms) 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
+  (0.1ms) 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]]
27761
+  (0.1ms) ROLLBACK
27762
+  (0.0ms) BEGIN
27763
+ ---------------------------------------------------------------------
27764
+ SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
27765
+ ---------------------------------------------------------------------
27766
+  (0.2ms) SELECT COUNT(*) FROM "posts"
27767
+  (0.2ms) 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))
27768
+  (0.1ms) ROLLBACK
27769
+  (0.1ms) BEGIN
27770
+ ---------------------------------------------------------
27771
+ SquintTest: test_finds_records_for_request_info_populated
27772
+ ---------------------------------------------------------
27773
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'
27774
+  (0.1ms) ROLLBACK
27775
+  (0.0ms) BEGIN
27776
+ ---------------------------------------------
27777
+ SquintTest: test_generates_SQL_for_properties
27778
+ ---------------------------------------------
27779
+  (0.0ms) ROLLBACK
27780
+  (0.0ms) BEGIN
27781
+ ------------------------------------------
27782
+ SquintTest: test_handles_string_parameters
27783
+ ------------------------------------------
27784
+ Post Load (0.3ms) SELECT "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
27785
+  (0.1ms) ROLLBACK
27786
+  (0.0ms) BEGIN
27787
+ --------------------------------------------------------------------
27788
+ SquintTest: test_finds_records_for_request_info_populated_with_array
27789
+ --------------------------------------------------------------------
27790
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
27791
+  (0.1ms) ROLLBACK
27792
+  (0.1ms) BEGIN
27793
+ --------------------------------------------------------
27794
+ SquintTest: test_finds_records_for_request_info_with_nil
27795
+ --------------------------------------------------------
27796
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL
27797
+  (0.1ms) ROLLBACK
27798
+  (0.0ms) BEGIN
27799
+ -------------------------------------------------------------------------------------------
27800
+ SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
27801
+ -------------------------------------------------------------------------------------------
27802
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27803
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL
27804
+  (0.1ms) ROLLBACK
27805
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
27806
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
27807
+  (0.2ms) BEGIN
27808
+ Fixture Delete (0.3ms) DELETE FROM "posts"
27809
+ Fixture Insert (0.6ms) INSERT 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)
27810
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
27812
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
27814
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
27816
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
27818
+  (0.1ms) COMMIT
27819
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL
27820
+  (0.2ms) BEGIN
27821
+ ------------------------------------------------------------------
27822
+ SquintTest: test_detects_default_integer_storext_hstore_attributes
27823
+ ------------------------------------------------------------------
27824
+  (0.3ms) SELECT COUNT(*) FROM "posts"
27825
+  (0.4ms) 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
+  (0.2ms) ROLLBACK
27827
+  (0.1ms) BEGIN
27828
+ ---------------------------------------------------------
27829
+ SquintTest: test_detects_present_storext_jsonb_attributes
27830
+ ---------------------------------------------------------
27831
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
27832
+  (0.1ms) ROLLBACK
27833
+  (0.1ms) BEGIN
27834
+ -----------------------------------------------------------------------------------------
27835
+ SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
27836
+ -----------------------------------------------------------------------------------------
27837
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27838
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
27839
+  (0.2ms) ROLLBACK
27840
+  (0.1ms) BEGIN
27841
+ ------------------------------------------------------------------
27842
+ SquintTest: test_finds_records_for_properties_populated_with_array
27843
+ ------------------------------------------------------------------
27844
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
27845
+  (0.2ms) ROLLBACK
27846
+  (0.1ms) BEGIN
27847
+ ---------------------------------------------------------------------
27848
+ SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
27849
+ ---------------------------------------------------------------------
27850
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27851
+  (0.1ms) 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
+  (0.1ms) ROLLBACK
27853
+  (0.1ms) BEGIN
27854
+ -------------------------------------------------------------------------------------------------
27855
+ SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
27856
+ -------------------------------------------------------------------------------------------------
27857
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'
27858
+  (0.1ms) ROLLBACK
27859
+  (0.1ms) BEGIN
27860
+ --------------------------------------------------------------------
27861
+ SquintTest: test_finds_records_for_request_info_populated_with_array
27862
+ --------------------------------------------------------------------
27863
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
27864
+  (0.1ms) ROLLBACK
27865
+  (0.1ms) BEGIN
27866
+ ---------------------------------------------
27867
+ SquintTest: test_generates_SQL_for_properties
27868
+ ---------------------------------------------
27869
+  (0.1ms) ROLLBACK
27870
+  (0.1ms) BEGIN
27871
+ ------------------------------------------------------------------
27872
+ SquintTest: test_detects_present_integer_storext_hstore_attributes
27873
+ ------------------------------------------------------------------
27874
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'
27875
+  (0.1ms) ROLLBACK
27876
+  (0.1ms) BEGIN
27877
+ -------------------------------------------------------
27878
+ SquintTest: test_finds_records_for_properties_populated
27879
+ -------------------------------------------------------
27880
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
27881
+  (0.1ms) ROLLBACK
27882
+  (0.1ms) BEGIN
27883
+ ---------------------------------------------------------
27884
+ SquintTest: test_detects_default_storext_jsonb_attributes
27885
+ ---------------------------------------------------------
27886
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27887
+  (0.2ms) 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
+  (0.1ms) ROLLBACK
27889
+  (0.0ms) BEGIN
27890
+ ---------------------------------------------------------------------------------------------------
27891
+ SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
27892
+ ---------------------------------------------------------------------------------------------------
27893
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'
27894
+  (0.0ms) ROLLBACK
27895
+  (0.1ms) BEGIN
27896
+ ------------------------------------------
27897
+ SquintTest: test_handles_string_parameters
27898
+ ------------------------------------------
27899
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'#jsob_friend_count' = '0' AND (posts.title = 'With Storext is aweesome not default title')
27900
+  (0.1ms) ROLLBACK
27901
+  (0.1ms) BEGIN
27902
+ ----------------------------------------------------------------------------------
27903
+ SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
27904
+ ----------------------------------------------------------------------------------
27905
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
27906
+  (0.0ms) ROLLBACK
27907
+  (0.0ms) BEGIN
27908
+ -----------------------------------------------
27909
+ SquintTest: test_generates_SQL_for_request_info
27910
+ -----------------------------------------------
27911
+  (0.0ms) ROLLBACK
27912
+  (0.0ms) BEGIN
27913
+ --------------------------------------------------------
27914
+ SquintTest: test_finds_records_for_request_info_with_nil
27915
+ --------------------------------------------------------
27916
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL
27917
+  (0.1ms) ROLLBACK
27918
+  (0.1ms) BEGIN
27919
+ ----------------------------------------------------------------------
27920
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
27921
+ ----------------------------------------------------------------------
27922
+ Post Load (0.4ms) 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
27923
+  (0.3ms) 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
+  (0.2ms) 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]]
27925
+  (0.1ms) ROLLBACK
27926
+  (0.1ms) BEGIN
27927
+ ---------------------------------------------------------------------
27928
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
27929
+ ---------------------------------------------------------------------
27930
+ Post Load (0.3ms) 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
+  (0.2ms) 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))
27932
+  (0.1ms) 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
+  (0.1ms) ROLLBACK
27934
+  (0.1ms) BEGIN
27935
+ -----------------------------------------------------------------
27936
+ SquintTest: test_detects_default_integer_storext_jsonb_attributes
27937
+ -----------------------------------------------------------------
27938
+  (0.3ms) SELECT COUNT(*) FROM "posts"
27939
+  (0.3ms) 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
+  (0.1ms) ROLLBACK
27941
+  (0.1ms) BEGIN
27942
+ ----------------------------------------------------------------------------
27943
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
27944
+ ----------------------------------------------------------------------------
27945
+ Post Load (0.2ms) 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
27946
+  (0.3ms) 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
+  (0.2ms) 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]]
27948
+  (0.1ms) ROLLBACK
27949
+  (0.1ms) BEGIN
27950
+ --------------------------------------------------------------------
27951
+ SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
27952
+ --------------------------------------------------------------------
27953
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27954
+  (0.2ms) 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))
27955
+  (0.2ms) ROLLBACK
27956
+  (0.1ms) BEGIN
27957
+ ---------------------------------------------------------------------------
27958
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
27959
+ ---------------------------------------------------------------------------
27960
+ Post Load (0.2ms) 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
+  (0.3ms) 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))
27962
+  (0.2ms) 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
+  (0.1ms) ROLLBACK
27964
+  (0.1ms) BEGIN
27965
+ ----------------------------------------------------------
27966
+ SquintTest: test_detects_default_storext_hstore_attributes
27967
+ ----------------------------------------------------------
27968
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27969
+  (0.2ms) 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
+  (0.2ms) ROLLBACK
27971
+  (0.1ms) BEGIN
27972
+ --------------------------------------------------------------------------------
27973
+ SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
27974
+ --------------------------------------------------------------------------------
27975
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
27976
+  (0.2ms) ROLLBACK
27977
+  (0.0ms) BEGIN
27978
+ ------------------------------------------------------
27979
+ SquintTest: test_finds_records_for_properties_with_nil
27980
+ ------------------------------------------------------
27981
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
27982
+  (0.1ms) ROLLBACK
27983
+  (0.0ms) BEGIN
27984
+ -----------------------------------------------------------------
27985
+ SquintTest: test_detects_present_integer_storext_jsonb_attributes
27986
+ -----------------------------------------------------------------
27987
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
27988
+  (0.1ms) ROLLBACK
27989
+  (0.0ms) BEGIN
27990
+ -------------------------------------------------------------------------------------------
27991
+ SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
27992
+ -------------------------------------------------------------------------------------------
27993
+  (0.1ms) SELECT COUNT(*) FROM "posts"
27994
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL
27995
+  (0.1ms) ROLLBACK
27996
+  (0.0ms) BEGIN
27997
+ ----------------------------------------------------------
27998
+ SquintTest: test_detects_present_storext_hstore_attributes
27999
+ ----------------------------------------------------------
28000
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
28001
+  (0.0ms) ROLLBACK
28002
+  (0.0ms) BEGIN
28003
+ ---------------------------------------------------------
28004
+ SquintTest: test_finds_records_for_request_info_populated
28005
+ ---------------------------------------------------------
28006
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'
28007
+  (0.0ms) ROLLBACK
28008
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
28009
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
28010
+  (0.1ms) BEGIN
28011
+ Fixture Delete (0.4ms) DELETE FROM "posts"
28012
+ Fixture Insert (0.6ms) INSERT 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)
28013
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
28015
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
28017
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
28019
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
28021
+  (0.1ms) COMMIT
28022
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL
28023
+  (0.0ms) BEGIN
28024
+ ---------------------------------------------------------------------
28025
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
28026
+ ---------------------------------------------------------------------
28027
+ Post Load (0.6ms) 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
28028
+  (0.4ms) 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
+  (0.2ms) 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]]
28030
+  (0.1ms) ROLLBACK
28031
+  (0.0ms) BEGIN
28032
+ --------------------------------------------------------------------------------
28033
+ SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
28034
+ --------------------------------------------------------------------------------
28035
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
28036
+  (0.1ms) ROLLBACK
28037
+  (0.0ms) BEGIN
28038
+ ------------------------------------------------------
28039
+ SquintTest: test_finds_records_for_properties_with_nil
28040
+ ------------------------------------------------------
28041
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
28042
+  (0.1ms) ROLLBACK
28043
+  (0.1ms) BEGIN
28044
+ ------------------------------------------
28045
+ SquintTest: test_handles_string_parameters
28046
+ ------------------------------------------
28047
+  (1.5ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'#jsob_friend_count' = '0' AND (posts.title = 'With Storext is aweesome not default title')
28048
+  (0.7ms) ROLLBACK
28049
+  (0.2ms) BEGIN
28050
+ ----------------------------------------------------------
28051
+ SquintTest: test_detects_default_storext_hstore_attributes
28052
+ ----------------------------------------------------------
28053
+  (0.6ms) SELECT COUNT(*) FROM "posts"
28054
+  (0.8ms) 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
+  (0.4ms) ROLLBACK
28056
+  (0.2ms) BEGIN
28057
+ ---------------------------------------------------------------------------------------------------
28058
+ SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
28059
+ ---------------------------------------------------------------------------------------------------
28060
+  (0.8ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'
28061
+  (0.4ms) ROLLBACK
28062
+  (0.3ms) BEGIN
28063
+ -------------------------------------------------------
28064
+ SquintTest: test_finds_records_for_properties_populated
28065
+ -------------------------------------------------------
28066
+  (0.7ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
28067
+  (0.4ms) ROLLBACK
28068
+  (0.3ms) BEGIN
28069
+ --------------------------------------------------------
28070
+ SquintTest: test_finds_records_for_request_info_with_nil
28071
+ --------------------------------------------------------
28072
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL
28073
+  (0.2ms) ROLLBACK
28074
+  (0.2ms) BEGIN
28075
+ -----------------------------------------------------------------
28076
+ SquintTest: test_detects_default_integer_storext_jsonb_attributes
28077
+ -----------------------------------------------------------------
28078
+  (0.4ms) SELECT COUNT(*) FROM "posts"
28079
+  (0.4ms) 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))
28080
+  (0.3ms) ROLLBACK
28081
+  (0.1ms) BEGIN
28082
+ --------------------------------------------------------------------
28083
+ SquintTest: test_finds_records_for_request_info_populated_with_array
28084
+ --------------------------------------------------------------------
28085
+  (0.6ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
28086
+  (0.3ms) ROLLBACK
28087
+  (0.2ms) BEGIN
28088
+ ------------------------------------------------------------------
28089
+ SquintTest: test_detects_present_integer_storext_hstore_attributes
28090
+ ------------------------------------------------------------------
28091
+  (0.4ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'
28092
+  (0.2ms) ROLLBACK
28093
+  (0.1ms) BEGIN
28094
+ ---------------------------------------------
28095
+ SquintTest: test_generates_SQL_for_properties
28096
+ ---------------------------------------------
28097
+  (0.1ms) ROLLBACK
28098
+  (0.1ms) BEGIN
28099
+ ----------------------------------------------------------------------------
28100
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
28101
+ ----------------------------------------------------------------------------
28102
+ Post Load (0.5ms) 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
+  (0.4ms) 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))
28104
+  (0.4ms) 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
+  (0.2ms) ROLLBACK
28106
+  (0.2ms) BEGIN
28107
+ -----------------------------------------------------------------
28108
+ SquintTest: test_detects_present_integer_storext_jsonb_attributes
28109
+ -----------------------------------------------------------------
28110
+  (0.4ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
28111
+  (0.2ms) ROLLBACK
28112
+  (0.1ms) BEGIN
28113
+ ----------------------------------------------------------------------------------
28114
+ SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
28115
+ ----------------------------------------------------------------------------------
28116
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
28117
+  (0.1ms) ROLLBACK
28118
+  (0.1ms) BEGIN
28119
+ -------------------------------------------------------------------------------------------------
28120
+ SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
28121
+ -------------------------------------------------------------------------------------------------
28122
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'
28123
+  (0.1ms) ROLLBACK
28124
+  (0.1ms) BEGIN
28125
+ ----------------------------------------------------------
28126
+ SquintTest: test_detects_present_storext_hstore_attributes
28127
+ ----------------------------------------------------------
28128
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
28129
+  (0.1ms) ROLLBACK
28130
+  (0.1ms) BEGIN
28131
+ -----------------------------------------------------------------------------------------
28132
+ SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
28133
+ -----------------------------------------------------------------------------------------
28134
+  (0.2ms) SELECT COUNT(*) FROM "posts"
28135
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
28136
+  (0.1ms) ROLLBACK
28137
+  (0.1ms) BEGIN
28138
+ ----------------------------------------------------------------------
28139
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
28140
+ ----------------------------------------------------------------------
28141
+ Post Load (0.4ms) 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
28142
+  (0.3ms) 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
+  (0.2ms) 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]]
28144
+  (0.1ms) ROLLBACK
28145
+  (0.1ms) BEGIN
28146
+ ---------------------------------------------------------------------
28147
+ SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
28148
+ ---------------------------------------------------------------------
28149
+  (0.3ms) SELECT COUNT(*) FROM "posts"
28150
+  (0.4ms) 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))
28151
+  (0.1ms) ROLLBACK
28152
+  (0.1ms) BEGIN
28153
+ ---------------------------------------------------------
28154
+ SquintTest: test_detects_present_storext_jsonb_attributes
28155
+ ---------------------------------------------------------
28156
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
28157
+  (0.1ms) ROLLBACK
28158
+  (0.1ms) BEGIN
28159
+ ---------------------------------------------------------------------------
28160
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
28161
+ ---------------------------------------------------------------------------
28162
+ Post Load (0.3ms) 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
28163
+  (0.2ms) 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
+  (0.2ms) 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]]
28165
+  (0.1ms) ROLLBACK
28166
+  (0.0ms) BEGIN
28167
+ -----------------------------------------------
28168
+ SquintTest: test_generates_SQL_for_request_info
28169
+ -----------------------------------------------
28170
+  (0.1ms) ROLLBACK
28171
+  (0.0ms) BEGIN
28172
+ --------------------------------------------------------------------
28173
+ SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
28174
+ --------------------------------------------------------------------
28175
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28176
+  (0.2ms) 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))
28177
+  (0.1ms) ROLLBACK
28178
+  (0.0ms) BEGIN
28179
+ ------------------------------------------------------------------
28180
+ SquintTest: test_detects_default_integer_storext_hstore_attributes
28181
+ ------------------------------------------------------------------
28182
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28183
+  (0.2ms) 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))
28184
+  (0.1ms) ROLLBACK
28185
+  (0.0ms) BEGIN
28186
+ ---------------------------------------------------------
28187
+ SquintTest: test_detects_default_storext_jsonb_attributes
28188
+ ---------------------------------------------------------
28189
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28190
+  (0.2ms) 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))
28191
+  (0.1ms) ROLLBACK
28192
+  (0.0ms) BEGIN
28193
+ ------------------------------------------------------------------
28194
+ SquintTest: test_finds_records_for_properties_populated_with_array
28195
+ ------------------------------------------------------------------
28196
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
28197
+  (0.1ms) ROLLBACK
28198
+  (0.0ms) BEGIN
28199
+ -------------------------------------------------------------------------------------------
28200
+ SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
28201
+ -------------------------------------------------------------------------------------------
28202
+  (0.2ms) SELECT COUNT(*) FROM "posts"
28203
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL
28204
+  (0.1ms) ROLLBACK
28205
+  (0.0ms) BEGIN
28206
+ ---------------------------------------------------------
28207
+ SquintTest: test_finds_records_for_request_info_populated
28208
+ ---------------------------------------------------------
28209
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'
28210
+  (0.1ms) ROLLBACK
28211
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
28212
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
28213
+  (0.2ms) BEGIN
28214
+ Fixture Delete (0.4ms) DELETE FROM "posts"
28215
+ Fixture Insert (0.6ms) INSERT 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)
28216
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
28218
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.3ms) INSERT 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)
28220
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
28222
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
28224
+  (0.1ms) COMMIT
28225
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL
28226
+  (0.0ms) BEGIN
28227
+ ----------------------------------------------------------------------
28228
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
28229
+ ----------------------------------------------------------------------
28230
+ Post Load (0.6ms) 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
28231
+  (0.3ms) 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
+  (0.2ms) 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]]
28233
+  (0.1ms) ROLLBACK
28234
+  (0.1ms) BEGIN
28235
+ --------------------------------------------------------------------
28236
+ SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
28237
+ --------------------------------------------------------------------
28238
+  (0.3ms) SELECT COUNT(*) FROM "posts"
28239
+  (0.3ms) 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))
28240
+  (0.2ms) ROLLBACK
28241
+  (0.1ms) BEGIN
28242
+ ------------------------------------------
28243
+ SquintTest: test_handles_string_parameters
28244
+ ------------------------------------------
28245
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'#jsob_friend_count' = '11' AND (posts.title = 'With Storext is aweesome not default title')
28246
+  (0.2ms) ROLLBACK
28247
+  (0.1ms) BEGIN
28248
+ ---------------------------------------------------------------------
28249
+ SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
28250
+ ---------------------------------------------------------------------
28251
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28252
+  (0.1ms) 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
+  (0.0ms) ROLLBACK
28254
+  (0.1ms) BEGIN
28255
+ ----------------------------------------------------------
28256
+ SquintTest: test_detects_present_storext_hstore_attributes
28257
+ ----------------------------------------------------------
28258
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
28259
+  (0.1ms) ROLLBACK
28260
+  (0.1ms) BEGIN
28261
+ --------------------------------------------------------
28262
+ SquintTest: test_finds_records_for_request_info_with_nil
28263
+ --------------------------------------------------------
28264
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL
28265
+  (0.1ms) ROLLBACK
28266
+  (0.1ms) BEGIN
28267
+ -------------------------------------------------------
28268
+ SquintTest: test_finds_records_for_properties_populated
28269
+ -------------------------------------------------------
28270
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
28271
+  (0.1ms) ROLLBACK
28272
+  (0.1ms) BEGIN
28273
+ ------------------------------------------------------
28274
+ SquintTest: test_finds_records_for_properties_with_nil
28275
+ ------------------------------------------------------
28276
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
28277
+  (0.1ms) ROLLBACK
28278
+  (0.0ms) BEGIN
28279
+ ----------------------------------------------------------
28280
+ SquintTest: test_detects_default_storext_hstore_attributes
28281
+ ----------------------------------------------------------
28282
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28283
+  (0.1ms) 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
+  (0.1ms) ROLLBACK
28285
+  (0.1ms) BEGIN
28286
+ ---------------------------------------------------------
28287
+ SquintTest: test_detects_default_storext_jsonb_attributes
28288
+ ---------------------------------------------------------
28289
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28290
+  (0.1ms) 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
+  (0.1ms) ROLLBACK
28292
+  (0.1ms) BEGIN
28293
+ ------------------------------------------------------------------
28294
+ SquintTest: test_finds_records_for_properties_populated_with_array
28295
+ ------------------------------------------------------------------
28296
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
28297
+  (0.1ms) ROLLBACK
28298
+  (0.0ms) BEGIN
28299
+ -----------------------------------------------------------------
28300
+ SquintTest: test_detects_default_integer_storext_jsonb_attributes
28301
+ -----------------------------------------------------------------
28302
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28303
+  (0.2ms) 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))
28304
+  (0.1ms) ROLLBACK
28305
+  (0.1ms) BEGIN
28306
+ --------------------------------------------------------------------------------
28307
+ SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
28308
+ --------------------------------------------------------------------------------
28309
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
28310
+  (0.1ms) ROLLBACK
28311
+  (0.0ms) BEGIN
28312
+ ---------------------------------------------------------------------------
28313
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
28314
+ ---------------------------------------------------------------------------
28315
+ Post Load (0.2ms) 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
28316
+  (0.3ms) 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
+  (0.1ms) 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]]
28318
+  (0.1ms) ROLLBACK
28319
+  (0.0ms) BEGIN
28320
+ ---------------------------------------------
28321
+ SquintTest: test_generates_SQL_for_properties
28322
+ ---------------------------------------------
28323
+  (0.0ms) ROLLBACK
28324
+  (0.0ms) BEGIN
28325
+ ----------------------------------------------------------------------------
28326
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
28327
+ ----------------------------------------------------------------------------
28328
+ Post Load (0.2ms) 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
+  (0.2ms) 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))
28330
+  (0.1ms) 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
+  (0.1ms) ROLLBACK
28332
+  (0.1ms) BEGIN
28333
+ ---------------------------------------------------------------------
28334
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
28335
+ ---------------------------------------------------------------------
28336
+ Post Load (0.2ms) 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
28337
+  (0.2ms) 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
+  (0.1ms) 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]]
28339
+  (0.1ms) ROLLBACK
28340
+  (0.0ms) BEGIN
28341
+ ---------------------------------------------------------------------------------------------------
28342
+ SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
28343
+ ---------------------------------------------------------------------------------------------------
28344
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'
28345
+  (0.1ms) ROLLBACK
28346
+  (0.0ms) BEGIN
28347
+ -----------------------------------------------
28348
+ SquintTest: test_generates_SQL_for_request_info
28349
+ -----------------------------------------------
28350
+  (0.1ms) ROLLBACK
28351
+  (0.0ms) BEGIN
28352
+ -------------------------------------------------------------------------------------------------
28353
+ SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
28354
+ -------------------------------------------------------------------------------------------------
28355
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'
28356
+  (0.1ms) ROLLBACK
28357
+  (0.1ms) BEGIN
28358
+ ---------------------------------------------------------
28359
+ SquintTest: test_detects_present_storext_jsonb_attributes
28360
+ ---------------------------------------------------------
28361
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
28362
+  (0.1ms) ROLLBACK
28363
+  (0.0ms) BEGIN
28364
+ ---------------------------------------------------------
28365
+ SquintTest: test_finds_records_for_request_info_populated
28366
+ ---------------------------------------------------------
28367
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'
28368
+  (0.1ms) ROLLBACK
28369
+  (0.1ms) BEGIN
28370
+ -----------------------------------------------------------------------------------------
28371
+ SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
28372
+ -----------------------------------------------------------------------------------------
28373
+  (0.2ms) SELECT COUNT(*) FROM "posts"
28374
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
28375
+  (0.1ms) ROLLBACK
28376
+  (0.1ms) BEGIN
28377
+ -------------------------------------------------------------------------------------------
28378
+ SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
28379
+ -------------------------------------------------------------------------------------------
28380
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28381
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL
28382
+  (0.1ms) ROLLBACK
28383
+  (0.1ms) BEGIN
28384
+ ----------------------------------------------------------------------------------
28385
+ SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
28386
+ ----------------------------------------------------------------------------------
28387
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
28388
+  (0.1ms) ROLLBACK
28389
+  (0.0ms) BEGIN
28390
+ --------------------------------------------------------------------
28391
+ SquintTest: test_finds_records_for_request_info_populated_with_array
28392
+ --------------------------------------------------------------------
28393
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
28394
+  (0.1ms) ROLLBACK
28395
+  (0.1ms) BEGIN
28396
+ -----------------------------------------------------------------
28397
+ SquintTest: test_detects_present_integer_storext_jsonb_attributes
28398
+ -----------------------------------------------------------------
28399
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
28400
+  (0.1ms) ROLLBACK
28401
+  (0.0ms) BEGIN
28402
+ ------------------------------------------------------------------
28403
+ SquintTest: test_detects_default_integer_storext_hstore_attributes
28404
+ ------------------------------------------------------------------
28405
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28406
+  (0.2ms) 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
+  (0.1ms) ROLLBACK
28408
+  (0.0ms) BEGIN
28409
+ ------------------------------------------------------------------
28410
+ SquintTest: test_detects_present_integer_storext_hstore_attributes
28411
+ ------------------------------------------------------------------
28412
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'
28413
+  (0.1ms) ROLLBACK
28414
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
28415
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
28416
+  (0.2ms) BEGIN
28417
+ Fixture Delete (0.3ms) DELETE FROM "posts"
28418
+ Fixture Insert (0.5ms) INSERT 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)
28419
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
28421
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
28423
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
28425
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
28427
+  (0.1ms) COMMIT
28428
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL
28429
+  (0.1ms) BEGIN
28430
+ ---------------------------------------------------------------------------------------------------
28431
+ SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
28432
+ ---------------------------------------------------------------------------------------------------
28433
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'
28434
+  (0.1ms) ROLLBACK
28435
+  (0.1ms) BEGIN
28436
+ -----------------------------------------------------------------
28437
+ SquintTest: test_detects_present_integer_storext_jsonb_attributes
28438
+ -----------------------------------------------------------------
28439
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
28440
+  (0.2ms) ROLLBACK
28441
+  (0.1ms) BEGIN
28442
+ --------------------------------------------------------------------------------
28443
+ SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
28444
+ --------------------------------------------------------------------------------
28445
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
28446
+  (0.1ms) ROLLBACK
28447
+  (0.1ms) BEGIN
28448
+ --------------------------------------------------------------------
28449
+ SquintTest: test_finds_records_for_request_info_populated_with_array
28450
+ --------------------------------------------------------------------
28451
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
28452
+  (0.1ms) ROLLBACK
28453
+  (0.0ms) BEGIN
28454
+ -----------------------------------------------------------------------------------------
28455
+ SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
28456
+ -----------------------------------------------------------------------------------------
28457
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28458
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
28459
+  (0.1ms) ROLLBACK
28460
+  (0.0ms) BEGIN
28461
+ --------------------------------------------------------
28462
+ SquintTest: test_finds_records_for_request_info_with_nil
28463
+ --------------------------------------------------------
28464
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL
28465
+  (0.2ms) ROLLBACK
28466
+  (0.1ms) BEGIN
28467
+ ------------------------------------------------------------------
28468
+ SquintTest: test_detects_default_integer_storext_hstore_attributes
28469
+ ------------------------------------------------------------------
28470
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28471
+  (0.2ms) 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))
28472
+  (0.1ms) ROLLBACK
28473
+  (0.0ms) BEGIN
28474
+ ----------------------------------------------------------------------------------
28475
+ SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
28476
+ ----------------------------------------------------------------------------------
28477
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
28478
+  (0.1ms) ROLLBACK
28479
+  (0.1ms) BEGIN
28480
+ -------------------------------------------------------------------------------------------------
28481
+ SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
28482
+ -------------------------------------------------------------------------------------------------
28483
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'
28484
+  (0.1ms) ROLLBACK
28485
+  (0.0ms) BEGIN
28486
+ ----------------------------------------------------------------------
28487
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
28488
+ ----------------------------------------------------------------------
28489
+ Post Load (0.4ms) 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
+  (0.3ms) 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))
28491
+  (0.2ms) 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
+  (0.1ms) ROLLBACK
28493
+  (0.1ms) BEGIN
28494
+ ---------------------------------------------------------------------
28495
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
28496
+ ---------------------------------------------------------------------
28497
+ Post Load (0.2ms) 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
28498
+  (0.2ms) 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
+  (0.2ms) 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]]
28500
+  (0.1ms) ROLLBACK
28501
+  (0.1ms) BEGIN
28502
+ ------------------------------------------------------------------
28503
+ SquintTest: test_finds_records_for_properties_populated_with_array
28504
+ ------------------------------------------------------------------
28505
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
28506
+  (0.1ms) ROLLBACK
28507
+  (0.0ms) BEGIN
28508
+ ---------------------------------------------------------
28509
+ SquintTest: test_detects_present_storext_jsonb_attributes
28510
+ ---------------------------------------------------------
28511
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
28512
+  (0.1ms) ROLLBACK
28513
+  (0.0ms) BEGIN
28514
+ -----------------------------------------------------------------
28515
+ SquintTest: test_detects_default_integer_storext_jsonb_attributes
28516
+ -----------------------------------------------------------------
28517
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28518
+  (0.3ms) 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))
28519
+  (0.2ms) ROLLBACK
28520
+  (0.1ms) BEGIN
28521
+ -----------------------------------------------
28522
+ SquintTest: test_generates_SQL_for_request_info
28523
+ -----------------------------------------------
28524
+  (0.1ms) ROLLBACK
28525
+  (0.0ms) BEGIN
28526
+ ---------------------------------------------------------
28527
+ SquintTest: test_finds_records_for_request_info_populated
28528
+ ---------------------------------------------------------
28529
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'
28530
+  (0.1ms) ROLLBACK
28531
+  (0.1ms) BEGIN
28532
+ ---------------------------------------------------------
28533
+ SquintTest: test_detects_default_storext_jsonb_attributes
28534
+ ---------------------------------------------------------
28535
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28536
+  (0.2ms) 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
+  (0.1ms) ROLLBACK
28538
+  (0.1ms) BEGIN
28539
+ ------------------------------------------------------------------
28540
+ SquintTest: test_detects_present_integer_storext_hstore_attributes
28541
+ ------------------------------------------------------------------
28542
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'
28543
+  (0.1ms) ROLLBACK
28544
+  (0.1ms) BEGIN
28545
+ ---------------------------------------------
28546
+ SquintTest: test_generates_SQL_for_properties
28547
+ ---------------------------------------------
28548
+  (0.1ms) ROLLBACK
28549
+  (0.1ms) BEGIN
28550
+ ------------------------------------------
28551
+ SquintTest: test_handles_string_parameters
28552
+ ------------------------------------------
28553
+  (1.8ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'#jsob_friend_count' = '11' AND (posts.title = 'With Storext is aweesome not default title')
28554
+  (0.6ms) ROLLBACK
28555
+  (0.2ms) BEGIN
28556
+ ----------------------------------------------------------------------------
28557
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
28558
+ ----------------------------------------------------------------------------
28559
+ Post Load (1.0ms) 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
28560
+  (0.9ms) 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
+  (0.8ms) 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]]
28562
+  (0.3ms) ROLLBACK
28563
+  (0.1ms) BEGIN
28564
+ ---------------------------------------------------------------------------
28565
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
28566
+ ---------------------------------------------------------------------------
28567
+ Post Load (0.7ms) 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
+  (0.3ms) 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))
28569
+  (0.3ms) 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
+  (0.2ms) ROLLBACK
28571
+  (0.1ms) BEGIN
28572
+ --------------------------------------------------------------------
28573
+ SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
28574
+ --------------------------------------------------------------------
28575
+  (0.2ms) SELECT COUNT(*) FROM "posts"
28576
+  (0.3ms) 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
+  (0.1ms) ROLLBACK
28578
+  (0.1ms) BEGIN
28579
+ ---------------------------------------------------------------------
28580
+ SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
28581
+ ---------------------------------------------------------------------
28582
+  (0.3ms) SELECT COUNT(*) FROM "posts"
28583
+  (0.4ms) 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
+  (0.1ms) ROLLBACK
28585
+  (0.1ms) BEGIN
28586
+ -------------------------------------------------------
28587
+ SquintTest: test_finds_records_for_properties_populated
28588
+ -------------------------------------------------------
28589
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
28590
+  (0.1ms) ROLLBACK
28591
+  (0.1ms) BEGIN
28592
+ -------------------------------------------------------------------------------------------
28593
+ SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
28594
+ -------------------------------------------------------------------------------------------
28595
+  (0.2ms) SELECT COUNT(*) FROM "posts"
28596
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL
28597
+  (0.1ms) ROLLBACK
28598
+  (0.1ms) BEGIN
28599
+ ----------------------------------------------------------
28600
+ SquintTest: test_detects_present_storext_hstore_attributes
28601
+ ----------------------------------------------------------
28602
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
28603
+  (0.2ms) ROLLBACK
28604
+  (0.1ms) BEGIN
28605
+ ----------------------------------------------------------
28606
+ SquintTest: test_detects_default_storext_hstore_attributes
28607
+ ----------------------------------------------------------
28608
+  (0.2ms) SELECT COUNT(*) FROM "posts"
28609
+  (0.2ms) 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
+  (0.2ms) ROLLBACK
28611
+  (0.2ms) BEGIN
28612
+ ------------------------------------------------------
28613
+ SquintTest: test_finds_records_for_properties_with_nil
28614
+ ------------------------------------------------------
28615
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
28616
+  (0.2ms) ROLLBACK
28617
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
28618
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
28619
+  (0.2ms) BEGIN
28620
+ Fixture Delete (0.4ms) DELETE FROM "posts"
28621
+ Fixture Insert (0.6ms) INSERT 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)
28622
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
28624
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
28626
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
28628
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
28630
+  (0.1ms) COMMIT
28631
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL
28632
+  (0.0ms) BEGIN
28633
+ ------------------------------------------
28634
+ SquintTest: test_handles_string_parameters
28635
+ ------------------------------------------
28636
+  (0.6ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsob_friend_count' = '11' AND (posts.title = 'With Storext is aweesome not default title')
28637
+  (0.2ms) ROLLBACK
28638
+  (0.1ms) BEGIN
28639
+ -----------------------------------------------------------------
28640
+ SquintTest: test_detects_present_integer_storext_jsonb_attributes
28641
+ -----------------------------------------------------------------
28642
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
28643
+  (0.1ms) ROLLBACK
28644
+  (0.1ms) BEGIN
28645
+ ---------------------------------------------------------
28646
+ SquintTest: test_detects_default_storext_jsonb_attributes
28647
+ ---------------------------------------------------------
28648
+  (0.2ms) SELECT COUNT(*) FROM "posts"
28649
+  (0.3ms) 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
+  (0.1ms) ROLLBACK
28651
+  (0.1ms) BEGIN
28652
+ ----------------------------------------------------------------------
28653
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
28654
+ ----------------------------------------------------------------------
28655
+ Post Load (0.5ms) 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
28656
+  (0.4ms) 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
+  (0.3ms) 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]]
28658
+  (0.1ms) ROLLBACK
28659
+  (0.1ms) BEGIN
28660
+ --------------------------------------------------------------------
28661
+ SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
28662
+ --------------------------------------------------------------------
28663
+  (0.2ms) SELECT COUNT(*) FROM "posts"
28664
+  (0.2ms) 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))
28665
+  (0.1ms) ROLLBACK
28666
+  (0.1ms) BEGIN
28667
+ -----------------------------------------------------------------------------------------
28668
+ SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
28669
+ -----------------------------------------------------------------------------------------
28670
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28671
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
28672
+  (0.1ms) ROLLBACK
28673
+  (0.1ms) BEGIN
28674
+ -------------------------------------------------------
28675
+ SquintTest: test_finds_records_for_properties_populated
28676
+ -------------------------------------------------------
28677
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
28678
+  (0.1ms) ROLLBACK
28679
+  (0.1ms) BEGIN
28680
+ ----------------------------------------------------------
28681
+ SquintTest: test_detects_present_storext_hstore_attributes
28682
+ ----------------------------------------------------------
28683
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
28684
+  (0.1ms) ROLLBACK
28685
+  (0.1ms) BEGIN
28686
+ ------------------------------------------------------------------
28687
+ SquintTest: test_detects_present_integer_storext_hstore_attributes
28688
+ ------------------------------------------------------------------
28689
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'
28690
+  (0.1ms) ROLLBACK
28691
+  (0.1ms) BEGIN
28692
+ --------------------------------------------------------------------
28693
+ SquintTest: test_finds_records_for_request_info_populated_with_array
28694
+ --------------------------------------------------------------------
28695
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
28696
+  (0.1ms) ROLLBACK
28697
+  (0.1ms) BEGIN
28698
+ ----------------------------------------------------------------------------------
28699
+ SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
28700
+ ----------------------------------------------------------------------------------
28701
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
28702
+  (0.1ms) ROLLBACK
28703
+  (0.1ms) BEGIN
28704
+ ------------------------------------------------------------------
28705
+ SquintTest: test_detects_default_integer_storext_hstore_attributes
28706
+ ------------------------------------------------------------------
28707
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28708
+  (0.2ms) 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
+  (0.1ms) ROLLBACK
28710
+  (0.1ms) BEGIN
28711
+ ---------------------------------------------------------
28712
+ SquintTest: test_finds_records_for_request_info_populated
28713
+ ---------------------------------------------------------
28714
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'
28715
+  (0.1ms) ROLLBACK
28716
+  (0.0ms) BEGIN
28717
+ ---------------------------------------------------------------------
28718
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
28719
+ ---------------------------------------------------------------------
28720
+ Post Load (0.3ms) 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
+  (0.2ms) 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))
28722
+  (0.2ms) 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
+  (0.2ms) ROLLBACK
28724
+  (0.1ms) BEGIN
28725
+ -----------------------------------------------
28726
+ SquintTest: test_generates_SQL_for_request_info
28727
+ -----------------------------------------------
28728
+  (0.1ms) ROLLBACK
28729
+  (0.1ms) BEGIN
28730
+ ---------------------------------------------------------------------
28731
+ SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
28732
+ ---------------------------------------------------------------------
28733
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28734
+  (0.2ms) 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
+  (0.1ms) ROLLBACK
28736
+  (0.1ms) BEGIN
28737
+ ---------------------------------------------------------------------------------------------------
28738
+ SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
28739
+ ---------------------------------------------------------------------------------------------------
28740
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'
28741
+  (0.1ms) ROLLBACK
28742
+  (0.0ms) BEGIN
28743
+ ----------------------------------------------------------
28744
+ SquintTest: test_detects_default_storext_hstore_attributes
28745
+ ----------------------------------------------------------
28746
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28747
+  (0.2ms) 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))
28748
+  (0.1ms) ROLLBACK
28749
+  (0.1ms) BEGIN
28750
+ -------------------------------------------------------------------------------------------
28751
+ SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
28752
+ -------------------------------------------------------------------------------------------
28753
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28754
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL
28755
+  (0.1ms) ROLLBACK
28756
+  (0.0ms) BEGIN
28757
+ -----------------------------------------------------------------
28758
+ SquintTest: test_detects_default_integer_storext_jsonb_attributes
28759
+ -----------------------------------------------------------------
28760
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28761
+  (0.1ms) 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))
28762
+  (0.1ms) ROLLBACK
28763
+  (0.1ms) BEGIN
28764
+ ----------------------------------------------------------------------------
28765
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
28766
+ ----------------------------------------------------------------------------
28767
+ Post Load (0.2ms) 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
+  (0.2ms) 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))
28769
+  (0.1ms) 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
+  (0.1ms) ROLLBACK
28771
+  (0.1ms) BEGIN
28772
+ ---------------------------------------------------------
28773
+ SquintTest: test_detects_present_storext_jsonb_attributes
28774
+ ---------------------------------------------------------
28775
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
28776
+  (0.1ms) ROLLBACK
28777
+  (0.1ms) BEGIN
28778
+ --------------------------------------------------------------------------------
28779
+ SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
28780
+ --------------------------------------------------------------------------------
28781
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
28782
+  (0.1ms) ROLLBACK
28783
+  (0.1ms) BEGIN
28784
+ -------------------------------------------------------------------------------------------------
28785
+ SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
28786
+ -------------------------------------------------------------------------------------------------
28787
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'
28788
+  (0.1ms) ROLLBACK
28789
+  (0.1ms) BEGIN
28790
+ ---------------------------------------------------------------------------
28791
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
28792
+ ---------------------------------------------------------------------------
28793
+ Post Load (0.2ms) 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
+  (0.2ms) 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))
28795
+  (0.2ms) 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
+  (0.1ms) ROLLBACK
28797
+  (0.1ms) BEGIN
28798
+ ------------------------------------------------------------------
28799
+ SquintTest: test_finds_records_for_properties_populated_with_array
28800
+ ------------------------------------------------------------------
28801
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
28802
+  (0.1ms) ROLLBACK
28803
+  (0.1ms) BEGIN
28804
+ ------------------------------------------------------
28805
+ SquintTest: test_finds_records_for_properties_with_nil
28806
+ ------------------------------------------------------
28807
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
28808
+  (0.1ms) ROLLBACK
28809
+  (0.1ms) BEGIN
28810
+ ---------------------------------------------
28811
+ SquintTest: test_generates_SQL_for_properties
28812
+ ---------------------------------------------
28813
+  (0.1ms) ROLLBACK
28814
+  (0.1ms) BEGIN
28815
+ --------------------------------------------------------
28816
+ SquintTest: test_finds_records_for_request_info_with_nil
28817
+ --------------------------------------------------------
28818
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL
28819
+  (0.1ms) ROLLBACK
28820
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
28821
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
28822
+  (0.2ms) BEGIN
28823
+ Fixture Delete (0.3ms) DELETE FROM "posts"
28824
+ Fixture Insert (0.5ms) INSERT 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)
28825
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
28827
+ Fixture Insert (0.3ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
28829
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
28831
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
28833
+  (0.1ms) COMMIT
28834
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL
28835
+  (0.1ms) BEGIN
28836
+ ----------------------------------------------------------
28837
+ SquintTest: test_detects_present_storext_hstore_attributes
28838
+ ----------------------------------------------------------
28839
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
28840
+  (0.2ms) ROLLBACK
28841
+  (0.2ms) BEGIN
28842
+ -------------------------------------------------------------------------------------------
28843
+ SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
28844
+ -------------------------------------------------------------------------------------------
28845
+  (0.2ms) SELECT COUNT(*) FROM "posts"
28846
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL
28847
+  (0.2ms) ROLLBACK
28848
+  (0.2ms) BEGIN
28849
+ -----------------------------------------------
28850
+ SquintTest: test_generates_SQL_for_request_info
28851
+ -----------------------------------------------
28852
+  (0.1ms) ROLLBACK
28853
+  (0.1ms) BEGIN
28854
+ ---------------------------------------------------------
28855
+ SquintTest: test_detects_default_storext_jsonb_attributes
28856
+ ---------------------------------------------------------
28857
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28858
+  (0.2ms) 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))
28859
+  (0.1ms) ROLLBACK
28860
+  (0.1ms) BEGIN
28861
+ ------------------------------------------------------
28862
+ SquintTest: test_finds_records_for_properties_with_nil
28863
+ ------------------------------------------------------
28864
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
28865
+  (0.1ms) ROLLBACK
28866
+  (0.1ms) BEGIN
28867
+ -----------------------------------------------------------------------------------------
28868
+ SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
28869
+ -----------------------------------------------------------------------------------------
28870
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28871
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
28872
+  (0.1ms) ROLLBACK
28873
+  (0.0ms) BEGIN
28874
+ ---------------------------------------------
28875
+ SquintTest: test_generates_SQL_for_properties
28876
+ ---------------------------------------------
28877
+  (0.1ms) ROLLBACK
28878
+  (0.1ms) BEGIN
28879
+ --------------------------------------------------------------------
28880
+ SquintTest: test_finds_records_for_request_info_populated_with_array
28881
+ --------------------------------------------------------------------
28882
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
28883
+  (0.1ms) ROLLBACK
28884
+  (0.0ms) BEGIN
28885
+ -----------------------------------------------------------------
28886
+ SquintTest: test_detects_present_integer_storext_jsonb_attributes
28887
+ -----------------------------------------------------------------
28888
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
28889
+  (0.1ms) ROLLBACK
28890
+  (0.0ms) BEGIN
28891
+ ---------------------------------------------------------
28892
+ SquintTest: test_finds_records_for_request_info_populated
28893
+ ---------------------------------------------------------
28894
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'
28895
+  (0.0ms) ROLLBACK
28896
+  (0.0ms) BEGIN
28897
+ ---------------------------------------------------------------------------------------------------
28898
+ SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
28899
+ ---------------------------------------------------------------------------------------------------
28900
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'
28901
+  (0.0ms) ROLLBACK
28902
+  (0.0ms) BEGIN
28903
+ ----------------------------------------------------------------------
28904
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
28905
+ ----------------------------------------------------------------------
28906
+ Post Load (0.4ms) 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
28907
+  (0.2ms) 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
+  (0.3ms) 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]]
28909
+  (0.2ms) ROLLBACK
28910
+  (0.1ms) BEGIN
28911
+ ---------------------------------------------------------------------
28912
+ SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
28913
+ ---------------------------------------------------------------------
28914
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28915
+  (0.2ms) 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))
28916
+  (0.1ms) ROLLBACK
28917
+  (0.1ms) BEGIN
28918
+ --------------------------------------------------------------------
28919
+ SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
28920
+ --------------------------------------------------------------------
28921
+  (0.1ms) SELECT COUNT(*) FROM "posts"
28922
+  (0.3ms) 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))
28923
+  (0.2ms) ROLLBACK
28924
+  (0.2ms) BEGIN
28925
+ ------------------------------------------------------------------
28926
+ SquintTest: test_detects_present_integer_storext_hstore_attributes
28927
+ ------------------------------------------------------------------
28928
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'
28929
+  (0.1ms) ROLLBACK
28930
+  (0.1ms) BEGIN
28931
+ --------------------------------------------------------------------------------
28932
+ SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
28933
+ --------------------------------------------------------------------------------
28934
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
28935
+  (0.1ms) ROLLBACK
28936
+  (0.1ms) BEGIN
28937
+ --------------------------------------------------------
28938
+ SquintTest: test_finds_records_for_request_info_with_nil
28939
+ --------------------------------------------------------
28940
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL
28941
+  (0.1ms) ROLLBACK
28942
+  (0.1ms) BEGIN
28943
+ ---------------------------------------------------------------------
28944
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
28945
+ ---------------------------------------------------------------------
28946
+ Post Load (0.3ms) 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
28947
+  (0.3ms) 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
+  (0.3ms) 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]]
28949
+  (0.2ms) ROLLBACK
28950
+  (0.2ms) BEGIN
28951
+ -----------------------------------------------------------------
28952
+ SquintTest: test_detects_default_integer_storext_jsonb_attributes
28953
+ -----------------------------------------------------------------
28954
+  (0.3ms) SELECT COUNT(*) FROM "posts"
28955
+  (0.3ms) 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))
28956
+  (0.2ms) ROLLBACK
28957
+  (0.2ms) BEGIN
28958
+ ----------------------------------------------------------------------------------
28959
+ SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
28960
+ ----------------------------------------------------------------------------------
28961
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
28962
+  (0.2ms) ROLLBACK
28963
+  (0.1ms) BEGIN
28964
+ ------------------------------------------------------------------
28965
+ SquintTest: test_finds_records_for_properties_populated_with_array
28966
+ ------------------------------------------------------------------
28967
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
28968
+  (0.1ms) ROLLBACK
28969
+  (0.0ms) BEGIN
28970
+ ----------------------------------------------------------------------------
28971
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
28972
+ ----------------------------------------------------------------------------
28973
+ Post Load (0.2ms) 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
+  (0.3ms) 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))
28975
+  (0.2ms) 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
+  (0.1ms) ROLLBACK
28977
+  (0.1ms) BEGIN
28978
+ ---------------------------------------------------------------------------
28979
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
28980
+ ---------------------------------------------------------------------------
28981
+ Post Load (0.2ms) 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
28982
+  (0.2ms) 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
+  (0.2ms) 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]]
28984
+  (0.1ms) ROLLBACK
28985
+  (0.1ms) BEGIN
28986
+ ---------------------------------------------------------
28987
+ SquintTest: test_detects_present_storext_jsonb_attributes
28988
+ ---------------------------------------------------------
28989
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
28990
+  (0.2ms) ROLLBACK
28991
+  (0.1ms) BEGIN
28992
+ ------------------------------------------
28993
+ SquintTest: test_handles_string_parameters
28994
+ ------------------------------------------
28995
+  (1.5ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsob_friend_count' = '11' AND (posts.title = 'With Storext is aweesome not default title')
28996
+  (0.5ms) ROLLBACK
28997
+  (0.3ms) BEGIN
28998
+ ----------------------------------------------------------
28999
+ SquintTest: test_detects_default_storext_hstore_attributes
29000
+ ----------------------------------------------------------
29001
+  (0.6ms) SELECT COUNT(*) FROM "posts"
29002
+  (0.8ms) 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))
29003
+  (0.3ms) ROLLBACK
29004
+  (0.3ms) BEGIN
29005
+ -------------------------------------------------------
29006
+ SquintTest: test_finds_records_for_properties_populated
29007
+ -------------------------------------------------------
29008
+  (0.6ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
29009
+  (0.4ms) ROLLBACK
29010
+  (0.3ms) BEGIN
29011
+ -------------------------------------------------------------------------------------------------
29012
+ SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
29013
+ -------------------------------------------------------------------------------------------------
29014
+  (0.7ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'
29015
+  (0.2ms) ROLLBACK
29016
+  (0.1ms) BEGIN
29017
+ ------------------------------------------------------------------
29018
+ SquintTest: test_detects_default_integer_storext_hstore_attributes
29019
+ ------------------------------------------------------------------
29020
+  (0.3ms) SELECT COUNT(*) FROM "posts"
29021
+  (0.7ms) 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))
29022
+  (0.3ms) ROLLBACK
29023
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
29024
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
29025
+  (0.1ms) BEGIN
29026
+ Fixture Delete (0.4ms) DELETE FROM "posts"
29027
+ Fixture Insert (0.6ms) INSERT 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)
29028
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
29030
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.3ms) INSERT 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)
29032
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
29034
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
29036
+  (0.1ms) COMMIT
29037
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL
29038
+  (0.1ms) BEGIN
29039
+ ----------------------------------------------------------------------------
29040
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
29041
+ ----------------------------------------------------------------------------
29042
+ Post Load (0.6ms) 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
29043
+  (0.4ms) 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
+  (0.3ms) 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]]
29045
+  (0.2ms) ROLLBACK
29046
+  (0.2ms) BEGIN
29047
+ --------------------------------------------------------------------------------
29048
+ SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
29049
+ --------------------------------------------------------------------------------
29050
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
29051
+  (0.2ms) ROLLBACK
29052
+  (0.1ms) BEGIN
29053
+ ---------------------------------------------------------------------
29054
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
29055
+ ---------------------------------------------------------------------
29056
+ Post Load (0.3ms) 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
29057
+  (0.2ms) 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
+  (0.2ms) 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]]
29059
+  (0.2ms) ROLLBACK
29060
+  (0.1ms) BEGIN
29061
+ ---------------------------------------------
29062
+ SquintTest: test_generates_SQL_for_properties
29063
+ ---------------------------------------------
29064
+  (0.1ms) ROLLBACK
29065
+  (0.1ms) BEGIN
29066
+ ------------------------------------------------------------------
29067
+ SquintTest: test_detects_default_integer_storext_hstore_attributes
29068
+ ------------------------------------------------------------------
29069
+  (0.1ms) SELECT COUNT(*) FROM "posts"
29070
+  (0.2ms) 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))
29071
+  (0.1ms) ROLLBACK
29072
+  (0.0ms) BEGIN
29073
+ ----------------------------------------------------------
29074
+ SquintTest: test_detects_default_storext_hstore_attributes
29075
+ ----------------------------------------------------------
29076
+  (0.1ms) SELECT COUNT(*) FROM "posts"
29077
+  (0.2ms) 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))
29078
+  (0.1ms) ROLLBACK
29079
+  (0.0ms) BEGIN
29080
+ ------------------------------------------------------------------
29081
+ SquintTest: test_finds_records_for_properties_populated_with_array
29082
+ ------------------------------------------------------------------
29083
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
29084
+  (0.1ms) ROLLBACK
29085
+  (0.0ms) BEGIN
29086
+ -----------------------------------------------------------------
29087
+ SquintTest: test_detects_default_integer_storext_jsonb_attributes
29088
+ -----------------------------------------------------------------
29089
+  (0.1ms) SELECT COUNT(*) FROM "posts"
29090
+  (0.2ms) 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
+  (0.1ms) ROLLBACK
29092
+  (0.0ms) BEGIN
29093
+ -------------------------------------------------------
29094
+ SquintTest: test_finds_records_for_properties_populated
29095
+ -------------------------------------------------------
29096
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
29097
+  (0.1ms) ROLLBACK
29098
+  (0.0ms) BEGIN
29099
+ ---------------------------------------------------------------------------------------------------
29100
+ SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
29101
+ ---------------------------------------------------------------------------------------------------
29102
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'
29103
+  (0.0ms) ROLLBACK
29104
+  (0.0ms) BEGIN
29105
+ ---------------------------------------------------------
29106
+ SquintTest: test_detects_default_storext_jsonb_attributes
29107
+ ---------------------------------------------------------
29108
+  (0.1ms) SELECT COUNT(*) FROM "posts"
29109
+  (0.1ms) 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
+  (0.1ms) ROLLBACK
29111
+  (0.1ms) BEGIN
29112
+ ---------------------------------------------------------
29113
+ SquintTest: test_finds_records_for_request_info_populated
29114
+ ---------------------------------------------------------
29115
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'
29116
+  (0.1ms) ROLLBACK
29117
+  (0.0ms) BEGIN
29118
+ --------------------------------------------------------------------
29119
+ SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
29120
+ --------------------------------------------------------------------
29121
+  (0.1ms) SELECT COUNT(*) FROM "posts"
29122
+  (0.1ms) 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))
29123
+  (0.1ms) ROLLBACK
29124
+  (0.0ms) BEGIN
29125
+ ---------------------------------------------------------------------
29126
+ SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
29127
+ ---------------------------------------------------------------------
29128
+  (0.1ms) SELECT COUNT(*) FROM "posts"
29129
+  (0.1ms) 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))
29130
+  (0.1ms) ROLLBACK
29131
+  (0.0ms) BEGIN
29132
+ -----------------------------------------------------------------
29133
+ SquintTest: test_detects_present_integer_storext_jsonb_attributes
29134
+ -----------------------------------------------------------------
29135
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
29136
+  (0.1ms) ROLLBACK
29137
+  (0.1ms) BEGIN
29138
+ --------------------------------------------------------
29139
+ SquintTest: test_finds_records_for_request_info_with_nil
29140
+ --------------------------------------------------------
29141
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL
29142
+  (0.1ms) ROLLBACK
29143
+  (0.1ms) BEGIN
29144
+ --------------------------------------------------------------------
29145
+ SquintTest: test_finds_records_for_request_info_populated_with_array
29146
+ --------------------------------------------------------------------
29147
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
29148
+  (0.1ms) ROLLBACK
29149
+  (0.0ms) BEGIN
29150
+ ------------------------------------------------------------------
29151
+ SquintTest: test_detects_present_integer_storext_hstore_attributes
29152
+ ------------------------------------------------------------------
29153
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'
29154
+  (0.1ms) ROLLBACK
29155
+  (0.0ms) BEGIN
29156
+ ----------------------------------------------------------
29157
+ SquintTest: test_detects_present_storext_hstore_attributes
29158
+ ----------------------------------------------------------
29159
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
29160
+  (0.1ms) ROLLBACK
29161
+  (0.1ms) BEGIN
29162
+ -----------------------------------------------
29163
+ SquintTest: test_generates_SQL_for_request_info
29164
+ -----------------------------------------------
29165
+  (0.1ms) ROLLBACK
29166
+  (0.1ms) BEGIN
29167
+ ----------------------------------------------------------------------------------
29168
+ SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
29169
+ ----------------------------------------------------------------------------------
29170
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
29171
+  (0.1ms) ROLLBACK
29172
+  (0.1ms) BEGIN
29173
+ -------------------------------------------------------------------------------------------------
29174
+ SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
29175
+ -------------------------------------------------------------------------------------------------
29176
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'
29177
+  (0.1ms) ROLLBACK
29178
+  (0.0ms) BEGIN
29179
+ ------------------------------------------
29180
+ SquintTest: test_handles_string_parameters
29181
+ ------------------------------------------
29182
+  (0.6ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '11' AND (posts.title = 'With Storext is aweesome not default title')
29183
+  (0.2ms) ROLLBACK
29184
+  (0.2ms) BEGIN
29185
+ ------------------------------------------------------
29186
+ SquintTest: test_finds_records_for_properties_with_nil
29187
+ ------------------------------------------------------
29188
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
29189
+  (0.1ms) ROLLBACK
29190
+  (0.1ms) BEGIN
29191
+ ---------------------------------------------------------------------------
29192
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
29193
+ ---------------------------------------------------------------------------
29194
+ Post Load (0.3ms) 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
29195
+  (0.3ms) 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
+  (0.2ms) 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]]
29197
+  (0.1ms) ROLLBACK
29198
+  (0.1ms) BEGIN
29199
+ ---------------------------------------------------------
29200
+ SquintTest: test_detects_present_storext_jsonb_attributes
29201
+ ---------------------------------------------------------
29202
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
29203
+  (0.1ms) ROLLBACK
29204
+  (0.1ms) BEGIN
29205
+ -------------------------------------------------------------------------------------------
29206
+ SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
29207
+ -------------------------------------------------------------------------------------------
29208
+  (0.2ms) SELECT COUNT(*) FROM "posts"
29209
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL
29210
+  (0.1ms) ROLLBACK
29211
+  (0.1ms) BEGIN
29212
+ ----------------------------------------------------------------------
29213
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
29214
+ ----------------------------------------------------------------------
29215
+ Post Load (0.3ms) 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
29216
+  (0.2ms) 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
+  (0.2ms) 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]]
29218
+  (0.2ms) ROLLBACK
29219
+  (0.2ms) BEGIN
29220
+ -----------------------------------------------------------------------------------------
29221
+ SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
29222
+ -----------------------------------------------------------------------------------------
29223
+  (0.3ms) SELECT COUNT(*) FROM "posts"
29224
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
29225
+  (0.2ms) ROLLBACK
29226
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
29227
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL
29228
+  (0.2ms) BEGIN
29229
+ Fixture Delete (0.3ms) DELETE FROM "posts"
29230
+ Fixture Insert (0.6ms) INSERT 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)
29231
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.2ms) INSERT 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)
29233
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.3ms) INSERT 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)
29235
+ Fixture Insert (0.2ms) 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
+ Fixture Insert (0.3ms) INSERT 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)
29237
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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)
29239
+  (0.1ms) COMMIT
29240
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL
29241
+  (0.0ms) BEGIN
29242
+ --------------------------------------------------------------------
29243
+ SquintTest: test_finds_records_for_request_info_populated_with_array
29244
+ --------------------------------------------------------------------
29245
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IN ('http://example.com/one', 'http://example.com/two')
29246
+  (0.1ms) ROLLBACK
29247
+  (0.1ms) BEGIN
29248
+ ---------------------------------------------
29249
+ SquintTest: test_generates_SQL_for_properties
29250
+ ---------------------------------------------
29251
+  (0.2ms) ROLLBACK
29252
+  (0.1ms) BEGIN
29253
+ -----------------------------------------------------------------
29254
+ SquintTest: test_detects_default_integer_storext_jsonb_attributes
29255
+ -----------------------------------------------------------------
29256
+  (0.1ms) SELECT COUNT(*) FROM "posts"
29257
+  (0.2ms) 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))
29258
+  (0.1ms) ROLLBACK
29259
+  (0.1ms) BEGIN
29260
+ ------------------------------------------------------------------
29261
+ SquintTest: test_detects_default_integer_storext_hstore_attributes
29262
+ ------------------------------------------------------------------
29263
+  (0.1ms) SELECT COUNT(*) FROM "posts"
29264
+  (0.3ms) 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))
29265
+  (0.2ms) ROLLBACK
29266
+  (0.1ms) BEGIN
29267
+ -----------------------------------------------------------------
29268
+ SquintTest: test_detects_present_integer_storext_jsonb_attributes
29269
+ -----------------------------------------------------------------
29270
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '10'
29271
+  (0.1ms) ROLLBACK
29272
+  (0.1ms) BEGIN
29273
+ ------------------------------------------------------------------
29274
+ SquintTest: test_finds_records_for_properties_populated_with_array
29275
+ ------------------------------------------------------------------
29276
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IN ('http://example.com/one', 'http://example.com/two')
29277
+  (0.1ms) ROLLBACK
29278
+  (0.1ms) BEGIN
29279
+ -------------------------------------------------------------------------------------------
29280
+ SquintTest: test_finds_records_for_request_info_missing_element_that_doesn't_exist_with_nil
29281
+ -------------------------------------------------------------------------------------------
29282
+  (0.1ms) SELECT COUNT(*) FROM "posts"
29283
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' IS NULL
29284
+  (0.1ms) ROLLBACK
29285
+  (0.0ms) BEGIN
29286
+ -----------------------------------------------
29287
+ SquintTest: test_generates_SQL_for_request_info
29288
+ -----------------------------------------------
29289
+  (0.1ms) ROLLBACK
29290
+  (0.1ms) BEGIN
29291
+ ----------------------------------------------------------------------------------
29292
+ SquintTest: test_finds_records_for_request_info_populated_with_array_including_nil
29293
+ ----------------------------------------------------------------------------------
29294
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."request_info"->>'referer' = 'http://example.com/one' OR "posts"."request_info"->>'referer' IS NULL)
29295
+  (0.1ms) ROLLBACK
29296
+  (0.0ms) BEGIN
29297
+ -------------------------------------------------------------------------------------------------
29298
+ SquintTest: test_Doesn't_find_records_for_properties_missing_element_that_doesn't_exist_populated
29299
+ -------------------------------------------------------------------------------------------------
29300
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' = 'any value will do'
29301
+  (0.1ms) ROLLBACK
29302
+  (0.0ms) BEGIN
29303
+ ---------------------------------------------------------
29304
+ SquintTest: test_finds_records_for_request_info_populated
29305
+ ---------------------------------------------------------
29306
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' = 'http://example.com/one'
29307
+  (0.1ms) ROLLBACK
29308
+  (0.0ms) BEGIN
29309
+ ------------------------------------------
29310
+ SquintTest: test_handles_string_parameters
29311
+ ------------------------------------------
29312
+  (0.3ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_friend_count' = '11' AND (posts.title = 'With Storext is aweesome not default title')
29313
+  (0.0ms) ROLLBACK
29314
+  (0.0ms) BEGIN
29315
+ ------------------------------------------------------------------
29316
+ SquintTest: test_detects_present_integer_storext_hstore_attributes
29317
+ ------------------------------------------------------------------
29318
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_friend_count' = '10'
29319
+  (0.1ms) ROLLBACK
29320
+  (0.0ms) BEGIN
29321
+ --------------------------------------------------------
29322
+ SquintTest: test_finds_records_for_request_info_with_nil
29323
+ --------------------------------------------------------
29324
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'referer' IS NULL
29325
+  (0.1ms) ROLLBACK
29326
+  (0.0ms) BEGIN
29327
+ ---------------------------------------------------------------------------
29328
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_multiple_wheres
29329
+ ---------------------------------------------------------------------------
29330
+ Post Load (0.3ms) 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
+  (0.2ms) 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))
29332
+  (0.2ms) 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
+  (0.2ms) ROLLBACK
29334
+  (0.1ms) BEGIN
29335
+ ----------------------------------------------------------------------------
29336
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_multiple_wheres
29337
+ ----------------------------------------------------------------------------
29338
+ Post Load (0.2ms) 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
29339
+  (0.2ms) 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
+  (0.1ms) 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]]
29341
+  (0.1ms) ROLLBACK
29342
+  (0.1ms) BEGIN
29343
+ ---------------------------------------------------------------------
29344
+ SquintTest: test_detects_default_Falseclass_storext_hstore_attributes
29345
+ ---------------------------------------------------------------------
29346
+  (0.2ms) SELECT COUNT(*) FROM "posts"
29347
+  (0.3ms) 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))
29348
+  (0.2ms) ROLLBACK
29349
+  (0.1ms) BEGIN
29350
+ --------------------------------------------------------------------
29351
+ SquintTest: test_detects_default_Falseclass_storext_jsonb_attributes
29352
+ --------------------------------------------------------------------
29353
+  (0.2ms) SELECT COUNT(*) FROM "posts"
29354
+  (0.3ms) 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))
29355
+  (0.2ms) ROLLBACK
29356
+  (0.1ms) BEGIN
29357
+ --------------------------------------------------------------------------------
29358
+ SquintTest: test_finds_records_for_properties_populated_with_array_including_nil
29359
+ --------------------------------------------------------------------------------
29360
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE ("posts"."properties"->'referer' = 'http://example.com/one' OR "posts"."properties"->'referer' IS NULL)
29361
+  (0.1ms) ROLLBACK
29362
+  (0.0ms) BEGIN
29363
+ ----------------------------------------------------------
29364
+ SquintTest: test_detects_default_storext_hstore_attributes
29365
+ ----------------------------------------------------------
29366
+  (0.2ms) SELECT COUNT(*) FROM "posts"
29367
+  (0.2ms) 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
+  (0.1ms) ROLLBACK
29369
+  (0.1ms) BEGIN
29370
+ ---------------------------------------------------------------------------------------------------
29371
+ SquintTest: test_Doesn't_find_records_for_request_info_missing_element_that_doesn't_exist_populated
29372
+ ---------------------------------------------------------------------------------------------------
29373
+  (0.2ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."request_info"->>'not_there' = 'any value will do'
29374
+  (0.2ms) ROLLBACK
29375
+  (0.1ms) BEGIN
29376
+ ---------------------------------------------------------
29377
+ SquintTest: test_detects_present_storext_jsonb_attributes
29378
+ ---------------------------------------------------------
29379
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_jsonb_attributes"->>'jsonb_zip_code' = '35124'
29380
+  (0.1ms) ROLLBACK
29381
+  (0.1ms) BEGIN
29382
+ ----------------------------------------------------------------------
29383
+ SquintTest: test_storext_hstore_attributes_is_composeable_in_one_where
29384
+ ----------------------------------------------------------------------
29385
+ Post Load (0.2ms) 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
29386
+  (0.2ms) 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
+  (0.1ms) 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]]
29388
+  (0.2ms) ROLLBACK
29389
+  (0.1ms) BEGIN
29390
+ ---------------------------------------------------------
29391
+ SquintTest: test_detects_default_storext_jsonb_attributes
29392
+ ---------------------------------------------------------
29393
+  (0.1ms) SELECT COUNT(*) FROM "posts"
29394
+  (0.1ms) 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))
29395
+  (0.1ms) ROLLBACK
29396
+  (0.1ms) BEGIN
29397
+ ----------------------------------------------------------
29398
+ SquintTest: test_detects_present_storext_hstore_attributes
29399
+ ----------------------------------------------------------
29400
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."storext_hstore_attributes"->'hstore_zip_code' = '35124'
29401
+  (0.1ms) ROLLBACK
29402
+  (0.0ms) BEGIN
29403
+ -----------------------------------------------------------------------------------------
29404
+ SquintTest: test_finds_records_for_properties_missing_element_that_doesn't_exist_with_nil
29405
+ -----------------------------------------------------------------------------------------
29406
+  (0.1ms) SELECT COUNT(*) FROM "posts"
29407
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'not_there' IS NULL
29408
+  (0.0ms) ROLLBACK
29409
+  (0.0ms) BEGIN
29410
+ -------------------------------------------------------
29411
+ SquintTest: test_finds_records_for_properties_populated
29412
+ -------------------------------------------------------
29413
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' = 'http://example.com/one'
29414
+  (0.0ms) ROLLBACK
29415
+  (0.0ms) BEGIN
29416
+ ------------------------------------------------------
29417
+ SquintTest: test_finds_records_for_properties_with_nil
29418
+ ------------------------------------------------------
29419
+  (0.1ms) SELECT COUNT(*) FROM "posts" WHERE "posts"."properties"->'referer' IS NULL
29420
+  (0.0ms) ROLLBACK
29421
+  (0.1ms) BEGIN
29422
+ ---------------------------------------------------------------------
29423
+ SquintTest: test_storext_jsonb_attributes_is_composeable_in_one_where
29424
+ ---------------------------------------------------------------------
29425
+ Post Load (0.2ms) 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
29426
+  (0.2ms) 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
+  (0.1ms) 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]]
29428
+  (0.1ms) ROLLBACK