activerecord_any_of 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8fbc387a6c367d20f242594b77938c428e152a61
4
+ data.tar.gz: ac60682ccb9a6ad90dce8f6239a0c7af516092cf
5
+ SHA512:
6
+ metadata.gz: ae3cd4256c54bb9d4f854b818d457d148cf2bda22d30941381924a7b026d8da001d47b0b6fe76cb7659fe9a65d86936fa078e5c849132fac6cf299819d3a5350
7
+ data.tar.gz: efab5a39c488004a6c98f30967d55e670c5afc2395bd5184d3f6c7018cf86937a05f1b11acb5035688774092870a01848f3e09940ad8a71df3000355135ed0e9
@@ -24,12 +24,16 @@ module ActiverecordAnyOf
24
24
 
25
25
  def queries
26
26
  @queries ||= @source_queries.map do |query|
27
- query = where(query) if [String, Hash].any? { |type| query.kind_of?(type) }
28
- query = where(*query) if query.kind_of?(Array)
27
+ if String === query || Hash === query
28
+ query = where(query)
29
+ elsif Array === query
30
+ query = where(*query)
31
+ end
32
+
29
33
  self.queries_bind_values += query.bind_values if query.bind_values.any?
30
- queries_joins_values[:includes] += query.includes_values if query.includes_values.any?
31
- queries_joins_values[:joins] += query.joins_values if query.joins_values.any?
32
- queries_joins_values[:references] += query.references_values if Rails.version >= '4' && query.references_values.any?
34
+ queries_joins_values[:includes].concat(query.includes_values) if query.includes_values.any?
35
+ queries_joins_values[:joins].concat(query.joins_values) if query.joins_values.any?
36
+ queries_joins_values[:references].concat(query.references_values) if Rails.version >= '4' && query.references_values.any?
33
37
  query.arel.constraints.reduce(:and)
34
38
  end
35
39
  end
@@ -42,13 +46,13 @@ module ActiverecordAnyOf
42
46
  @context.send(method_name, *args, &block)
43
47
  end
44
48
 
45
- def add_joins_to( relation )
49
+ def add_joins_to(relation)
46
50
  relation = relation.references(uniq_queries_joins_values[:references]) if Rails.version >= '4'
47
51
  relation = relation.includes(uniq_queries_joins_values[:includes])
48
52
  relation.joins(uniq_queries_joins_values[:joins])
49
53
  end
50
54
 
51
- def add_related_values_to( relation )
55
+ def add_related_values_to(relation)
52
56
  relation.bind_values += queries_bind_values
53
57
  relation.includes_values += uniq_queries_joins_values[:includes]
54
58
  relation.joins_values += uniq_queries_joins_values[:joins]
@@ -62,7 +66,12 @@ module ActiverecordAnyOf
62
66
  private
63
67
 
64
68
  def with_statement_cache
65
- relation = where([queries.reduce(:or).to_sql, *queries_bind_values.map { |v| v[1] }])
69
+ if queries_bind_values.any?
70
+ relation = where([queries.reduce(:or).to_sql, *queries_bind_values.map { |v| v[1] }])
71
+ else
72
+ relation = where(queries.reduce(:or).to_sql)
73
+ end
74
+
66
75
  add_joins_to relation
67
76
  end
68
77
 
@@ -77,9 +86,17 @@ module ActiverecordAnyOf
77
86
 
78
87
  def with_statement_cache
79
88
  if Rails.version >= '4'
80
- relation = where.not([queries.reduce(:or).to_sql, *queries_bind_values.map { |v| v[1] }])
89
+ if queries_bind_values.any?
90
+ relation = where.not([queries.reduce(:or).to_sql, *queries_bind_values.map { |v| v[1] }])
91
+ else
92
+ relation = where.not(queries.reduce(:or).to_sql)
93
+ end
81
94
  else
82
- relation = where([Arel::Nodes::Not.new(queries.reduce(:or)).to_sql, *queries_bind_values.map { |v| v[1] }])
95
+ if queries_bind_values.any?
96
+ relation = where([Arel::Nodes::Not.new(queries.reduce(:or)).to_sql, *queries_bind_values.map { |v| v[1] }])
97
+ else
98
+ relation = where(Arel::Nodes::Not.new(queries.reduce(:or)).to_sql)
99
+ end
83
100
  end
84
101
 
85
102
  add_joins_to relation
@@ -1,3 +1,3 @@
1
1
  module ActiverecordAnyOf
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  require 'activerecord_any_of/alternative_builder'
2
2
 
3
3
  module ActiverecordAnyOf
4
- # Returns a new relation, which includes results matching any of conditions
4
+ # Returns a new relation, which includes results matching any of the conditions
5
5
  # passed as parameters. You can think of it as a sql <tt>OR</tt> implementation.
6
6
  #
7
7
  # Each #any_of parameter is the same set you would have passed to #where :
@@ -21,13 +21,13 @@ module ActiverecordAnyOf
21
21
  #
22
22
  # banned_users = User.where(banned: true)
23
23
  # unconfirmed_users = User.where("confirmed_at IS NULL")
24
- # unactive_users = User.any_of(banned_users, unconfirmed_users)
24
+ # inactive_users = User.any_of(banned_users, unconfirmed_users)
25
25
  def any_of(*queries)
26
26
  raise ArgumentError, 'Called any_of() with no arguments.' if queries.none?
27
27
  AlternativeBuilder.new(:positive, self, *queries).build
28
28
  end
29
29
 
30
- # Returns a new relation, which includes results not matching any of conditions
30
+ # Returns a new relation, which includes results not matching any of the conditions
31
31
  # passed as parameters. It's the negative version of <tt>#any_of</tt>.
32
32
  #
33
33
  # This will return all active users :
@@ -60,4 +60,8 @@ class ActiverecordAnyOfTest < ActiveSupport::TestCase
60
60
  test 'calling #none_of with no argument raise exception' do
61
61
  assert_raise(ArgumentError) { Author.none_of }
62
62
  end
63
+
64
+ test 'calling #any_of after a wildcard query works' do
65
+ assert_equal ['David'], Author.where("name like '%av%'").any_of({name: 'David'}, {name: 'Mary'}).map(&:name)
66
+ end
63
67
  end
Binary file
@@ -1724,3 +1724,768 @@ Connecting to database specified by database.yml
1724
1724
  Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
1725
1725
  Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))
1726
1726
   (0.0ms) rollback transaction
1727
+ Connecting to database specified by database.yml
1728
+  (0.8ms) begin transaction
1729
+ Fixture Delete (0.1ms) DELETE FROM "authors"
1730
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
1731
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
1732
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
1733
+ Fixture Delete (0.0ms) DELETE FROM "posts"
1734
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
1735
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
1736
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
1737
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
1738
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
1739
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
1740
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
1741
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
1742
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
1743
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
1744
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-07-11 09:12:07', '2013-07-11 09:12:07')
1745
+  (259.3ms) commit transaction
1746
+  (0.1ms) begin transaction
1747
+  (0.1ms) rollback transaction
1748
+  (0.1ms) begin transaction
1749
+  (0.0ms) rollback transaction
1750
+  (0.0ms) begin transaction
1751
+ Author Load (0.7ms) SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
1752
+ SQL (0.1ms) SELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
1753
+  (0.0ms) rollback transaction
1754
+  (0.0ms) begin transaction
1755
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
1756
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
1757
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
1758
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
1759
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))
1760
+  (0.0ms) rollback transaction
1761
+  (0.0ms) begin transaction
1762
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
1763
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))
1764
+  (0.0ms) rollback transaction
1765
+  (0.0ms) begin transaction
1766
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
1767
+  (0.0ms) rollback transaction
1768
+  (0.0ms) begin transaction
1769
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
1770
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))
1771
+  (0.0ms) rollback transaction
1772
+ Connecting to database specified by database.yml
1773
+  (0.8ms) begin transaction
1774
+ Fixture Delete (0.5ms) DELETE FROM "authors"
1775
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
1776
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
1777
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
1778
+ Fixture Delete (0.0ms) DELETE FROM "posts"
1779
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
1780
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
1781
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
1782
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
1783
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
1784
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
1785
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
1786
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
1787
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
1788
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
1789
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:32:38', '2013-08-30 15:32:38')
1790
+  (290.3ms) commit transaction
1791
+  (0.1ms) begin transaction
1792
+  (0.1ms) rollback transaction
1793
+  (0.1ms) begin transaction
1794
+  (0.0ms) rollback transaction
1795
+  (0.0ms) begin transaction
1796
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
1797
+ SQL (0.1ms) SELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
1798
+  (0.0ms) rollback transaction
1799
+  (0.0ms) begin transaction
1800
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
1801
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
1802
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
1803
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
1804
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))
1805
+  (0.0ms) rollback transaction
1806
+  (0.0ms) begin transaction
1807
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
1808
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))
1809
+  (0.0ms) rollback transaction
1810
+  (0.0ms) begin transaction
1811
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
1812
+  (0.0ms) rollback transaction
1813
+  (0.0ms) begin transaction
1814
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
1815
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))
1816
+  (0.0ms) rollback transaction
1817
+ Connecting to database specified by database.yml
1818
+  (0.2ms) begin transaction
1819
+ Fixture Delete (0.1ms) DELETE FROM "authors"
1820
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
1821
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
1822
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
1823
+ Fixture Delete (0.0ms) DELETE FROM "posts"
1824
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
1825
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
1826
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
1827
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
1828
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
1829
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
1830
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
1831
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
1832
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
1833
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
1834
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:35:00', '2013-08-30 15:35:00')
1835
+  (263.7ms) commit transaction
1836
+  (0.1ms) begin transaction
1837
+  (0.1ms) rollback transaction
1838
+  (0.0ms) begin transaction
1839
+  (0.0ms) rollback transaction
1840
+  (0.0ms) begin transaction
1841
+  (0.0ms) rollback transaction
1842
+  (0.0ms) begin transaction
1843
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
1844
+ SQL (0.1ms) SELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
1845
+  (0.0ms) rollback transaction
1846
+  (0.0ms) begin transaction
1847
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
1848
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
1849
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
1850
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
1851
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))
1852
+  (0.0ms) rollback transaction
1853
+  (0.0ms) begin transaction
1854
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
1855
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))
1856
+  (0.0ms) rollback transaction
1857
+  (0.0ms) begin transaction
1858
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
1859
+  (0.0ms) rollback transaction
1860
+  (0.0ms) begin transaction
1861
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
1862
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))
1863
+  (0.0ms) rollback transaction
1864
+ Connecting to database specified by database.yml
1865
+  (0.2ms) begin transaction
1866
+ Fixture Delete (0.1ms) DELETE FROM "authors"
1867
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
1868
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
1869
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
1870
+ Fixture Delete (0.0ms) DELETE FROM "posts"
1871
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
1872
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
1873
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
1874
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
1875
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
1876
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
1877
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
1878
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
1879
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
1880
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
1881
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:38:41', '2013-08-30 15:38:41')
1882
+  (1055.4ms) commit transaction
1883
+  (0.1ms) begin transaction
1884
+  (0.1ms) rollback transaction
1885
+  (0.1ms) begin transaction
1886
+  (0.1ms) rollback transaction
1887
+  (0.0ms) begin transaction
1888
+  (0.0ms) rollback transaction
1889
+  (0.0ms) begin transaction
1890
+  (0.0ms) rollback transaction
1891
+  (0.0ms) begin transaction
1892
+  (0.0ms) rollback transaction
1893
+  (0.0ms) begin transaction
1894
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
1895
+  (0.0ms) rollback transaction
1896
+  (0.0ms) begin transaction
1897
+  (0.0ms) rollback transaction
1898
+  (0.0ms) begin transaction
1899
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
1900
+  (0.0ms) rollback transaction
1901
+ Connecting to database specified by database.yml
1902
+  (0.2ms) begin transaction
1903
+ Fixture Delete (0.1ms) DELETE FROM "authors"
1904
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
1905
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
1906
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
1907
+ Fixture Delete (0.0ms) DELETE FROM "posts"
1908
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
1909
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
1910
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
1911
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
1912
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
1913
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
1914
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
1915
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
1916
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
1917
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
1918
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:39:23', '2013-08-30 15:39:23')
1919
+  (929.5ms) commit transaction
1920
+  (0.1ms) begin transaction
1921
+  (0.1ms) rollback transaction
1922
+  (0.1ms) begin transaction
1923
+  (0.0ms) rollback transaction
1924
+  (0.0ms) begin transaction
1925
+  (0.0ms) rollback transaction
1926
+  (0.0ms) begin transaction
1927
+  (0.0ms) rollback transaction
1928
+  (0.0ms) begin transaction
1929
+  (0.0ms) rollback transaction
1930
+  (0.0ms) begin transaction
1931
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
1932
+  (0.0ms) rollback transaction
1933
+  (0.0ms) begin transaction
1934
+  (0.0ms) rollback transaction
1935
+  (0.0ms) begin transaction
1936
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
1937
+  (0.0ms) rollback transaction
1938
+ Connecting to database specified by database.yml
1939
+  (0.2ms) begin transaction
1940
+ Fixture Delete (0.1ms) DELETE FROM "authors"
1941
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
1942
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
1943
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
1944
+ Fixture Delete (0.0ms) DELETE FROM "posts"
1945
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
1946
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
1947
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
1948
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
1949
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
1950
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
1951
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
1952
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
1953
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
1954
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
1955
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:39:38', '2013-08-30 15:39:38')
1956
+  (266.3ms) commit transaction
1957
+  (0.1ms) begin transaction
1958
+  (0.1ms) rollback transaction
1959
+  (0.1ms) begin transaction
1960
+  (0.0ms) rollback transaction
1961
+  (0.0ms) begin transaction
1962
+  (0.0ms) rollback transaction
1963
+  (0.1ms) begin transaction
1964
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
1965
+ SQL (0.1ms) SELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
1966
+  (0.0ms) rollback transaction
1967
+  (0.0ms) begin transaction
1968
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
1969
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
1970
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
1971
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
1972
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))
1973
+  (0.0ms) rollback transaction
1974
+  (0.0ms) begin transaction
1975
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
1976
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))
1977
+  (0.0ms) rollback transaction
1978
+  (0.0ms) begin transaction
1979
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
1980
+  (0.0ms) rollback transaction
1981
+  (0.0ms) begin transaction
1982
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
1983
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))
1984
+  (0.0ms) rollback transaction
1985
+ Connecting to database specified by database.yml
1986
+  (0.2ms) begin transaction
1987
+ Fixture Delete (0.1ms) DELETE FROM "authors"
1988
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
1989
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
1990
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
1991
+ Fixture Delete (0.0ms) DELETE FROM "posts"
1992
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
1993
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
1994
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
1995
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
1996
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
1997
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
1998
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
1999
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
2000
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
2001
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
2002
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:40:22', '2013-08-30 15:40:22')
2003
+  (287.7ms) commit transaction
2004
+  (0.1ms) begin transaction
2005
+  (0.1ms) rollback transaction
2006
+  (0.1ms) begin transaction
2007
+  (0.0ms) rollback transaction
2008
+  (0.0ms) begin transaction
2009
+  (0.0ms) rollback transaction
2010
+  (0.0ms) begin transaction
2011
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
2012
+ SQL (0.1ms) SELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
2013
+  (0.1ms) rollback transaction
2014
+  (0.0ms) begin transaction
2015
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
2016
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
2017
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
2018
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
2019
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))
2020
+  (0.0ms) rollback transaction
2021
+  (0.0ms) begin transaction
2022
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
2023
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))
2024
+  (0.0ms) rollback transaction
2025
+  (0.0ms) begin transaction
2026
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
2027
+  (0.0ms) rollback transaction
2028
+  (0.0ms) begin transaction
2029
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
2030
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))
2031
+  (0.0ms) rollback transaction
2032
+ Connecting to database specified by database.yml
2033
+  (0.2ms) begin transaction
2034
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2035
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
2036
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
2037
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
2038
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2039
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
2040
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
2041
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
2042
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
2043
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
2044
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
2045
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
2046
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
2047
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
2048
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
2049
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:40:35', '2013-08-30 15:40:35')
2050
+  (336.9ms) commit transaction
2051
+  (0.1ms) begin transaction
2052
+  (0.1ms) rollback transaction
2053
+  (0.1ms) begin transaction
2054
+  (0.0ms) rollback transaction
2055
+  (0.1ms) begin transaction
2056
+  (0.0ms) rollback transaction
2057
+  (0.1ms) begin transaction
2058
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
2059
+ SQL (0.3ms) SELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
2060
+  (0.0ms) rollback transaction
2061
+  (0.0ms) begin transaction
2062
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
2063
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
2064
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
2065
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
2066
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))
2067
+  (0.1ms) rollback transaction
2068
+  (0.1ms) begin transaction
2069
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
2070
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))
2071
+  (0.0ms) rollback transaction
2072
+  (0.0ms) begin transaction
2073
+  (0.1ms) rollback transaction
2074
+ Connecting to database specified by database.yml
2075
+  (0.2ms) begin transaction
2076
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2077
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
2078
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
2079
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
2080
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2081
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
2082
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
2083
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
2084
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
2085
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
2086
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
2087
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
2088
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
2089
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
2090
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
2091
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:43:08', '2013-08-30 15:43:08')
2092
+  (286.4ms) commit transaction
2093
+  (0.1ms) begin transaction
2094
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE (name like '%av%')
2095
+  (0.0ms) rollback transaction
2096
+  (0.0ms) begin transaction
2097
+  (0.0ms) rollback transaction
2098
+  (0.0ms) begin transaction
2099
+  (0.0ms) rollback transaction
2100
+  (0.0ms) begin transaction
2101
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
2102
+ SQL (0.4ms) SELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
2103
+  (0.0ms) rollback transaction
2104
+  (0.0ms) begin transaction
2105
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
2106
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
2107
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
2108
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
2109
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))
2110
+  (0.1ms) rollback transaction
2111
+  (0.1ms) begin transaction
2112
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
2113
+ Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))
2114
+  (0.1ms) rollback transaction
2115
+  (0.0ms) begin transaction
2116
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
2117
+  (0.1ms) rollback transaction
2118
+  (0.1ms) begin transaction
2119
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
2120
+ Post Load (0.3ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))
2121
+  (0.0ms) rollback transaction
2122
+ Connecting to database specified by database.yml
2123
+  (0.2ms) begin transaction
2124
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2125
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
2126
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
2127
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
2128
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2129
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
2130
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
2131
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
2132
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
2133
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
2134
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
2135
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
2136
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
2137
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
2138
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
2139
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:44:10', '2013-08-30 15:44:10')
2140
+  (286.4ms) commit transaction
2141
+  (0.1ms) begin transaction
2142
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE (name like '%av%')
2143
+  (0.1ms) rollback transaction
2144
+ Connecting to database specified by database.yml
2145
+  (0.2ms) begin transaction
2146
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2147
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
2148
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
2149
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
2150
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2151
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
2152
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
2153
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
2154
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
2155
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
2156
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
2157
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
2158
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
2159
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
2160
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
2161
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:45:05', '2013-08-30 15:45:05')
2162
+  (981.8ms) commit transaction
2163
+  (0.1ms) begin transaction
2164
+  (0.1ms) rollback transaction
2165
+ Connecting to database specified by database.yml
2166
+  (0.2ms) begin transaction
2167
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2168
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
2169
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
2170
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
2171
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2172
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
2173
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
2174
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
2175
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
2176
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
2177
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
2178
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
2179
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
2180
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
2181
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
2182
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:46:35', '2013-08-30 15:46:35')
2183
+  (317.2ms) commit transaction
2184
+  (0.1ms) begin transaction
2185
+  (0.1ms) rollback transaction
2186
+ Connecting to database specified by database.yml
2187
+  (0.3ms) begin transaction
2188
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2189
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
2190
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
2191
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
2192
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2193
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
2194
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
2195
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
2196
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
2197
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
2198
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
2199
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
2200
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
2201
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
2202
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
2203
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:46:44', '2013-08-30 15:46:44')
2204
+  (280.7ms) commit transaction
2205
+  (0.1ms) begin transaction
2206
+ Author Load (0.2ms) SELECT "authors".* FROM "authors" WHERE (name like '%av%')
2207
+  (0.1ms) rollback transaction
2208
+ Connecting to database specified by database.yml
2209
+  (0.3ms) begin transaction
2210
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2211
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
2212
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
2213
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
2214
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2215
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
2216
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
2217
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
2218
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
2219
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
2220
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
2221
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
2222
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
2223
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
2224
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
2225
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:46:53', '2013-08-30 15:46:53')
2226
+  (315.9ms) commit transaction
2227
+  (0.1ms) begin transaction
2228
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary')) AND (name like '%av%')
2229
+  (0.1ms) rollback transaction
2230
+ Connecting to database specified by database.yml
2231
+  (0.2ms) begin transaction
2232
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2233
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
2234
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
2235
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
2236
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2237
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
2238
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
2239
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
2240
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
2241
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
2242
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
2243
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
2244
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
2245
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
2246
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
2247
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:47:01', '2013-08-30 15:47:01')
2248
+  (237.7ms) commit transaction
2249
+  (0.1ms) begin transaction
2250
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary')) AND (name like '%av%')
2251
+  (0.1ms) rollback transaction
2252
+ Connecting to database specified by database.yml
2253
+  (0.2ms) begin transaction
2254
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2255
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
2256
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
2257
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
2258
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2259
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
2260
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
2261
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
2262
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
2263
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
2264
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
2265
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
2266
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
2267
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
2268
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
2269
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:57:01', '2013-08-30 15:57:01')
2270
+  (355.9ms) commit transaction
2271
+  (0.1ms) begin transaction
2272
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary')) AND (name like '%av%')
2273
+  (0.1ms) rollback transaction
2274
+ Connecting to database specified by database.yml
2275
+  (0.3ms) begin transaction
2276
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2277
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
2278
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
2279
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
2280
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2281
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
2282
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
2283
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
2284
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
2285
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
2286
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
2287
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
2288
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
2289
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
2290
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
2291
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:58:55', '2013-08-30 15:58:55')
2292
+  (487.9ms) commit transaction
2293
+  (0.1ms) begin transaction
2294
+  (0.1ms) rollback transaction
2295
+ Connecting to database specified by database.yml
2296
+  (0.2ms) begin transaction
2297
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2298
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
2299
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
2300
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
2301
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2302
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
2303
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
2304
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
2305
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
2306
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
2307
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
2308
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
2309
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
2310
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
2311
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
2312
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:59:18', '2013-08-30 15:59:18')
2313
+  (315.1ms) commit transaction
2314
+  (0.1ms) begin transaction
2315
+  (0.1ms) rollback transaction
2316
+ Connecting to database specified by database.yml
2317
+  (0.2ms) begin transaction
2318
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2319
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
2320
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
2321
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
2322
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2323
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
2324
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
2325
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
2326
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
2327
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
2328
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
2329
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
2330
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
2331
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
2332
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
2333
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 15:59:59', '2013-08-30 15:59:59')
2334
+  (834.5ms) commit transaction
2335
+  (0.1ms) begin transaction
2336
+  (0.1ms) rollback transaction
2337
+ Connecting to database specified by database.yml
2338
+  (0.2ms) begin transaction
2339
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2340
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
2341
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
2342
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
2343
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2344
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
2345
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
2346
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
2347
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
2348
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
2349
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
2350
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
2351
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
2352
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
2353
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
2354
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 16:00:47', '2013-08-30 16:00:47')
2355
+  (289.9ms) commit transaction
2356
+  (0.1ms) begin transaction
2357
+  (0.1ms) rollback transaction
2358
+ Connecting to database specified by database.yml
2359
+  (0.2ms) begin transaction
2360
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2361
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
2362
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
2363
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
2364
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2365
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
2366
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
2367
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
2368
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
2369
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
2370
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
2371
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
2372
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
2373
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
2374
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
2375
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 16:01:21', '2013-08-30 16:01:21')
2376
+  (338.3ms) commit transaction
2377
+  (0.1ms) begin transaction
2378
+  (0.1ms) rollback transaction
2379
+ Connecting to database specified by database.yml
2380
+  (0.2ms) begin transaction
2381
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2382
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
2383
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
2384
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
2385
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2386
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
2387
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
2388
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
2389
+ Fixture Insert (0.1ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
2390
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
2391
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
2392
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
2393
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
2394
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
2395
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
2396
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 16:02:09', '2013-08-30 16:02:09')
2397
+  (378.0ms) commit transaction
2398
+  (0.1ms) begin transaction
2399
+  (0.1ms) rollback transaction
2400
+ Connecting to database specified by database.yml
2401
+  (0.2ms) begin transaction
2402
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2403
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
2404
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
2405
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
2406
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2407
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
2408
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
2409
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
2410
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
2411
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
2412
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
2413
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
2414
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
2415
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
2416
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
2417
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 16:02:48', '2013-08-30 16:02:48')
2418
+  (376.8ms) commit transaction
2419
+  (0.1ms) begin transaction
2420
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
2421
+  (0.0ms) rollback transaction
2422
+ Connecting to database specified by database.yml
2423
+  (0.3ms) begin transaction
2424
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2425
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
2426
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
2427
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
2428
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2429
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
2430
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
2431
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
2432
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
2433
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
2434
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
2435
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
2436
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
2437
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
2438
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
2439
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 16:08:17', '2013-08-30 16:08:17')
2440
+  (279.6ms) commit transaction
2441
+  (0.1ms) begin transaction
2442
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
2443
+  (0.0ms) rollback transaction
2444
+ Connecting to database specified by database.yml
2445
+  (0.2ms) begin transaction
2446
+ Fixture Delete (0.1ms) DELETE FROM "authors"
2447
+ Fixture Insert (0.1ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (1, 'David', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
2448
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (2, 'Mary', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
2449
+ Fixture Insert (0.0ms) INSERT INTO "authors" ("id", "name", "created_at", "updated_at") VALUES (3, 'Bob', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
2450
+ Fixture Delete (0.0ms) DELETE FROM "posts"
2451
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (1, 1, 'Welcome to the weblog', 'Such a lovely day', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
2452
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (2, 1, 'So I was thinking', 'Like I hopefully always am', 'SpecialPost', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
2453
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (3, 0, 'I don''t have any comments', 'I just don''t want to', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
2454
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (4, 1, 'sti comments', 'hello', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
2455
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (5, 1, 'sti me', 'hello', 'StiPost', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
2456
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (6, 1, 'habtm sti test', 'hello', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
2457
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (7, 2, 'eager loading with OR''d conditions', 'hello', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
2458
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (8, 3, 'misc post by bob', 'hello', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
2459
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (9, 2, 'misc post by mary', 'hello', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
2460
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (10, 3, 'other post by bob', 'hello', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
2461
+ Fixture Insert (0.0ms) INSERT INTO "posts" ("id", "author_id", "title", "body", "type", "created_at", "updated_at") VALUES (11, 2, 'other post by mary', 'hello', 'Post', '2013-08-30 16:08:33', '2013-08-30 16:08:33')
2462
+  (295.6ms) commit transaction
2463
+  (0.1ms) begin transaction
2464
+ Author Load (0.3ms) SELECT "authors".* FROM "authors" WHERE (name like '%av%') AND (("authors"."name" = 'David' AND (name like '%av%') OR "authors"."name" = 'Mary' AND (name like '%av%')))
2465
+  (0.0ms) rollback transaction
2466
+  (0.0ms) begin transaction
2467
+  (0.0ms) rollback transaction
2468
+  (0.0ms) begin transaction
2469
+  (0.0ms) rollback transaction
2470
+  (0.0ms) begin transaction
2471
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" INNER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
2472
+ SQL (0.1ms) SELECT "authors"."id" AS t0_r0, "authors"."name" AS t0_r1, "authors"."created_at" AS t0_r2, "authors"."updated_at" AS t0_r3, "posts"."id" AS t1_r0, "posts"."title" AS t1_r1, "posts"."body" AS t1_r2, "posts"."author_id" AS t1_r3, "posts"."type" AS t1_r4, "posts"."created_at" AS t1_r5, "posts"."updated_at" AS t1_r6 FROM "authors" LEFT OUTER JOIN "posts" ON "posts"."author_id" = "authors"."id" WHERE (("posts"."title" = 'Welcome to the weblog' OR "posts"."title" = 'eager loading with OR''d conditions'))
2473
+  (0.0ms) rollback transaction
2474
+  (0.0ms) begin transaction
2475
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR "authors"."name" = 'Mary'))
2476
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE (("authors"."name" = 'David' OR (name = 'Mary')))
2477
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob'))
2478
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE ((("authors"."name" = 'David' OR (name = 'Mary')) OR "authors"."name" = 'Bob' AND "authors"."id" = 3))
2479
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE (name IS NOT 'Mary') AND (("authors"."name" = 'David' OR (name IS NOT 'Mary') AND (name = 'Mary')))
2480
+  (0.0ms) rollback transaction
2481
+  (0.0ms) begin transaction
2482
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
2483
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost'))
2484
+  (0.0ms) rollback transaction
2485
+  (0.0ms) begin transaction
2486
+ Author Load (0.1ms) SELECT "authors".* FROM "authors" WHERE (NOT (("authors"."name" = 'David' OR "authors"."name" = 'Mary')))
2487
+  (0.0ms) rollback transaction
2488
+  (0.0ms) begin transaction
2489
+ Author Load (0.0ms) SELECT "authors".* FROM "authors" WHERE "authors"."name" = 'David' LIMIT 1
2490
+ Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."author_id" = 1 AND (NOT (("posts"."author_id" = 1 AND "posts"."body" = 'Such a lovely day' OR "posts"."author_id" = 1 AND "posts"."type" = 'SpecialPost')))
2491
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,22 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_any_of
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 1.0.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Olivier El Mekki
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-22 00:00:00.000000000 Z
11
+ date: 2013-08-30 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.2.13
22
20
  - - <
@@ -25,9 +23,8 @@ dependencies:
25
23
  type: :runtime
26
24
  prerelease: false
27
25
  version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
26
  requirements:
30
- - - ! '>='
27
+ - - '>='
31
28
  - !ruby/object:Gem::Version
32
29
  version: 3.2.13
33
30
  - - <
@@ -36,17 +33,15 @@ dependencies:
36
33
  - !ruby/object:Gem::Dependency
37
34
  name: sqlite3
38
35
  requirement: !ruby/object:Gem::Requirement
39
- none: false
40
36
  requirements:
41
- - - ! '>='
37
+ - - '>='
42
38
  - !ruby/object:Gem::Version
43
39
  version: '0'
44
40
  type: :development
45
41
  prerelease: false
46
42
  version_requirements: !ruby/object:Gem::Requirement
47
- none: false
48
43
  requirements:
49
- - - ! '>='
44
+ - - '>='
50
45
  - !ruby/object:Gem::Version
51
46
  version: '0'
52
47
  description: Any_of allows to compute dynamic OR queries.
@@ -111,33 +106,26 @@ files:
111
106
  - test/dummy/public/404.html
112
107
  homepage: https://github.com/oelmekki/activerecord_any_of
113
108
  licenses: []
109
+ metadata: {}
114
110
  post_install_message:
115
111
  rdoc_options: []
116
112
  require_paths:
117
113
  - lib
118
114
  required_ruby_version: !ruby/object:Gem::Requirement
119
- none: false
120
115
  requirements:
121
- - - ! '>='
116
+ - - '>='
122
117
  - !ruby/object:Gem::Version
123
118
  version: '0'
124
- segments:
125
- - 0
126
- hash: 720996038142532507
127
119
  required_rubygems_version: !ruby/object:Gem::Requirement
128
- none: false
129
120
  requirements:
130
- - - ! '>='
121
+ - - '>='
131
122
  - !ruby/object:Gem::Version
132
123
  version: '0'
133
- segments:
134
- - 0
135
- hash: 720996038142532507
136
124
  requirements: []
137
125
  rubyforge_project:
138
- rubygems_version: 1.8.24
126
+ rubygems_version: 2.0.3
139
127
  signing_key:
140
- specification_version: 3
128
+ specification_version: 4
141
129
  summary: Mongoid's any_of like implementation for activerecord
142
130
  test_files:
143
131
  - test/fixtures/authors.yml