acts_as_scd 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2cf74554fa56128c9ba1a4dccbb7ec39a675b8d2
4
- data.tar.gz: 8f394cf3be053b3f507fce26aaa0c0bd3f402fb7
3
+ metadata.gz: 2bc745b729943824d6ca8036a85515b614079482
4
+ data.tar.gz: fe96a1e7d8f13adf2a8ac6eb98600864d8d07f14
5
5
  SHA512:
6
- metadata.gz: a48bd64a0705aafaf6ad2a509e63b5ef125d4ec92f379d8b3906406aa3ecf35039f2935dca99e62b7f6b04bc26988d6a19fddce3c8d2fa604b77d6d104936d14
7
- data.tar.gz: 08481c7cf21721017d66de7bd0040f5fa1d2a3b2349fdfc17041e31b06d45d8a45f4035399c2f851626fbd37c2d6f961e426d5c4e2b71b5ffcf1b471be452e57
6
+ metadata.gz: 125c35945f51db0c310dd33318ca1795f9386f8374e4faea5bc67f8dee5550b9827311cdad18f69845182a01a3dfd1050c6495c92d803144d697093696756034
7
+ data.tar.gz: d7dbb70bd70eb59c434d1ca1c2871895490ca0891aebee4a9998740558dfa94ab6047a98cea40a353e67e3a73fad338de9eb1da3b1527217781c39e8a814e344
@@ -32,10 +32,15 @@ module ActsAsScd
32
32
  @slowly_changing_columns << [fk, other_model.identity_column_definition.last]
33
33
  @slowly_changing_indices << fk
34
34
  end
35
- belongs_to assoc, ->{ where "#{other_model.effective_to_column_sql()}=#{END_OF_TIME}" },
36
- options.reverse_merge(foreign_key: fk, primary_key: IDENTITY_COLUMN)
37
- # For Rails 3 is this necessary?:
38
- # belongs_to assoc, {:foreign_key=>fk, :primary_key=>IDENTITY_COLUMN, :conditions=>"#{other_model.effective_to_column_sql()}=#{END_OF_TIME}"}.merge(options)
35
+ if ActiveRecord::VERSION::MAJOR > 3
36
+ belongs_to assoc, ->{ where "#{other_model.effective_to_column_sql()}=#{END_OF_TIME}" },
37
+ options.reverse_merge(foreign_key: fk, primary_key: IDENTITY_COLUMN)
38
+ else
39
+ belongs_to assoc, options.reverse_merge(
40
+ foreign_key: fk, primary_key: IDENTITY_COLUMN,
41
+ conditions: "#{other_model.effective_to_column_sql()}=#{END_OF_TIME}"
42
+ )
43
+ end
39
44
  define_method :"#{assoc}_at" do |date=nil|
40
45
  other_model.at(date).where(IDENTITY_COLUMN=>send(fk)).first
41
46
  end
@@ -133,9 +133,15 @@ module ActsAsScd
133
133
  has_many :"#{assoc_singular}_iterations", class_name: other_model_name, foreign_key: fk, primary_key: pk
134
134
 
135
135
  # current_children
136
- has_many assoc, ->{ where "#{other_model.effective_to_column_sql}=#{END_OF_TIME}" },
137
- options.reverse_merge(foreign_key: fk, primary_key: pk)
138
- # has_many assoc, {:foreign_key=>fk, :primary_key=>pk, :conditions=>"#{other_model.effective_to_column_sql}=#{END_OF_TIME}"}.merge(options)
136
+ if ActiveRecord::VERSION::MAJOR > 3
137
+ has_many assoc, ->{ where "#{other_model.effective_to_column_sql}=#{END_OF_TIME}" },
138
+ options.reverse_merge(foreign_key: fk, primary_key: pk)
139
+ else
140
+ has_many assoc, options.reverse_merge(
141
+ foreign_key: fk, primary_key: pk,
142
+ conditions: "#{other_model.effective_to_column_sql}=#{END_OF_TIME}"
143
+ )
144
+ end
139
145
 
140
146
  # children at some date
141
147
  define_method :"#{assoc}_at" do |date|
@@ -1,3 +1,3 @@
1
1
  module ActsAsScd
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -28717,6 +28717,622 @@ ActsAsScdTest: test_identity_exists?
28717
28717
   (0.0ms) begin transaction
28718
28718
  ---------------------------------------------------------
28719
28719
  ActsAsScdTest: test_query_methods_applied_to_associations
28720
+ ---------------------------------------------------------
28721
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 674640095]]
28722
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 183879749]]
28723
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 729707004]]
28724
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 398803994]]
28725
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_to" = 99999999) ORDER BY code [["country_identity", "DEU"]]
28726
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 104354294]]
28727
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 91230421]]
28728
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19491006 AND "cities"."effective_to">19491006) ORDER BY code [["country_identity", "DEU"]]
28729
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 523305034]]
28730
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19491007 AND "cities"."effective_to">19491007) ORDER BY code [["country_identity", "DEU"]]
28731
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19901002 AND "cities"."effective_to">19901002) ORDER BY code [["country_identity", "DEU"]]
28732
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19901003 AND "cities"."effective_to">19901003) ORDER BY code [["country_identity", "DEU"]]
28733
+  (0.1ms) SELECT DISTINCT "cities"."identity" FROM "cities" WHERE "cities"."country_identity" = ? ORDER BY "cities"."identity" [["country_identity", "DEU"]]
28734
+  (0.1ms) SELECT DISTINCT "cities"."identity" FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19491006 AND "cities"."effective_to">19491006) ORDER BY "cities"."identity" [["country_identity", "DEU"]]
28735
+  (0.1ms) SELECT DISTINCT "cities"."identity" FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19491007 AND "cities"."effective_to">19491007) ORDER BY "cities"."identity" [["country_identity", "DEU"]]
28736
+  (0.1ms) SELECT DISTINCT "cities"."identity" FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19901002 AND "cities"."effective_to">19901002) ORDER BY "cities"."identity" [["country_identity", "DEU"]]
28737
+  (0.1ms) SELECT DISTINCT "cities"."identity" FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19901003 AND "cities"."effective_to">19901003) ORDER BY "cities"."identity" [["country_identity", "DEU"]]
28738
+  (0.0ms) rollback transaction
28739
+  (0.3ms) CREATE TABLE "countries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(3), "identity" varchar(3), "effective_from" integer DEFAULT 0, "effective_to" integer DEFAULT 99999999, "name" varchar(255), "area" float, "commercial_association_id" integer) 
28740
+  (0.1ms) select sqlite_version(*)
28741
+  (0.1ms) CREATE INDEX "index_countries_on_identity" ON "countries" ("identity")
28742
+  (0.1ms) SELECT sql
28743
+ FROM sqlite_master
28744
+ WHERE name='index_countries_on_identity' AND type='index'
28745
+ UNION ALL
28746
+ SELECT sql
28747
+ FROM sqlite_temp_master
28748
+ WHERE name='index_countries_on_identity' AND type='index'
28749
+
28750
+  (0.1ms) CREATE INDEX "index_countries_on_effective_from" ON "countries" ("effective_from")
28751
+  (0.1ms) SELECT sql
28752
+ FROM sqlite_master
28753
+ WHERE name='index_countries_on_effective_from' AND type='index'
28754
+ UNION ALL
28755
+ SELECT sql
28756
+ FROM sqlite_temp_master
28757
+ WHERE name='index_countries_on_effective_from' AND type='index'
28758
+
28759
+  (0.1ms)  SELECT sql
28760
+ FROM sqlite_master
28761
+ WHERE name='index_countries_on_identity' AND type='index'
28762
+ UNION ALL
28763
+ SELECT sql
28764
+ FROM sqlite_temp_master
28765
+ WHERE name='index_countries_on_identity' AND type='index'
28766
+ 
28767
+  (0.1ms) CREATE INDEX "index_countries_on_effective_to" ON "countries" ("effective_to")
28768
+  (0.1ms)  SELECT sql
28769
+ FROM sqlite_master
28770
+ WHERE name='index_countries_on_effective_to' AND type='index'
28771
+ UNION ALL
28772
+ SELECT sql
28773
+ FROM sqlite_temp_master
28774
+ WHERE name='index_countries_on_effective_to' AND type='index'
28775
+ 
28776
+  (0.1ms) SELECT sql
28777
+ FROM sqlite_master
28778
+ WHERE name='index_countries_on_effective_from' AND type='index'
28779
+ UNION ALL
28780
+ SELECT sql
28781
+ FROM sqlite_temp_master
28782
+ WHERE name='index_countries_on_effective_from' AND type='index'
28783
+
28784
+  (0.1ms)  SELECT sql
28785
+ FROM sqlite_master
28786
+ WHERE name='index_countries_on_identity' AND type='index'
28787
+ UNION ALL
28788
+ SELECT sql
28789
+ FROM sqlite_temp_master
28790
+ WHERE name='index_countries_on_identity' AND type='index'
28791
+ 
28792
+  (0.1ms) CREATE INDEX "index_countries_on_effective_from_and_effective_to" ON "countries" ("effective_from", "effective_to")
28793
+  (0.1ms) CREATE TABLE "cities" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "code" varchar(5), "identity" varchar(5), "effective_from" integer DEFAULT 0, "effective_to" integer DEFAULT 99999999, "name" varchar(255), "area" float, "country_identity" varchar(2)) 
28794
+  (0.1ms) CREATE INDEX "index_cities_on_identity" ON "cities" ("identity")
28795
+  (0.1ms)  SELECT sql
28796
+ FROM sqlite_master
28797
+ WHERE name='index_cities_on_identity' AND type='index'
28798
+ UNION ALL
28799
+ SELECT sql
28800
+ FROM sqlite_temp_master
28801
+ WHERE name='index_cities_on_identity' AND type='index'
28802
+ 
28803
+  (0.1ms) CREATE INDEX "index_cities_on_effective_from" ON "cities" ("effective_from")
28804
+  (0.1ms)  SELECT sql
28805
+ FROM sqlite_master
28806
+ WHERE name='index_cities_on_effective_from' AND type='index'
28807
+ UNION ALL
28808
+ SELECT sql
28809
+ FROM sqlite_temp_master
28810
+ WHERE name='index_cities_on_effective_from' AND type='index'
28811
+ 
28812
+  (0.0ms) SELECT sql
28813
+ FROM sqlite_master
28814
+ WHERE name='index_cities_on_identity' AND type='index'
28815
+ UNION ALL
28816
+ SELECT sql
28817
+ FROM sqlite_temp_master
28818
+ WHERE name='index_cities_on_identity' AND type='index'
28819
+
28820
+  (0.1ms) CREATE INDEX "index_cities_on_effective_to" ON "cities" ("effective_to")
28821
+  (0.0ms) SELECT sql
28822
+ FROM sqlite_master
28823
+ WHERE name='index_cities_on_effective_to' AND type='index'
28824
+ UNION ALL
28825
+ SELECT sql
28826
+ FROM sqlite_temp_master
28827
+ WHERE name='index_cities_on_effective_to' AND type='index'
28828
+
28829
+  (0.1ms)  SELECT sql
28830
+ FROM sqlite_master
28831
+ WHERE name='index_cities_on_effective_from' AND type='index'
28832
+ UNION ALL
28833
+ SELECT sql
28834
+ FROM sqlite_temp_master
28835
+ WHERE name='index_cities_on_effective_from' AND type='index'
28836
+ 
28837
+  (0.1ms) SELECT sql
28838
+ FROM sqlite_master
28839
+ WHERE name='index_cities_on_identity' AND type='index'
28840
+ UNION ALL
28841
+ SELECT sql
28842
+ FROM sqlite_temp_master
28843
+ WHERE name='index_cities_on_identity' AND type='index'
28844
+
28845
+  (0.1ms) CREATE INDEX "index_cities_on_effective_from_and_effective_to" ON "cities" ("effective_from", "effective_to")
28846
+  (0.1ms) CREATE TABLE "commercial_associations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
28847
+  (0.1ms) CREATE TABLE "commercial_delegates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "country_identity" varchar(2)) 
28848
+  (0.1ms) begin transaction
28849
+ Fixture Delete (0.1ms) DELETE FROM "cities"
28850
+ Fixture Insert (0.1ms) INSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('BER', 'Berlin', 800, 'BER', 0, 19491007, 'DEU', 104354294)
28851
+ Fixture Insert (0.1ms) INSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('BER', 'Berlin', 400, 'BER', 19491007, 19901003, 'DEU', 523305034)
28852
+ Fixture Insert (0.1ms) INSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('BER', 'Berlin', 900, 'BER', 19901003, 99999999, 'DEU', 674640095)
28853
+ Fixture Insert (0.1ms) INSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('EBER', 'East Berlin', 400, 'EBER', 19491007, 19901003, 'DDR', 580155496)
28854
+ Fixture Insert (0.1ms) INSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('HAM', 'Hamburg', 600, 'HAM', 0, 99999999, 'DEU', 183879749)
28855
+ Fixture Insert (0.1ms) INSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('LEI', 'Leipzig', 600, 'LEI', 0, 19491007, 'DEU', 91230421)
28856
+ Fixture Insert (0.1ms) INSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('LEI', 'Leipzig', 600, 'LEI', 19491007, 19901003, 'DDR', 477708657)
28857
+ Fixture Insert (0.1ms) INSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('LEI', 'Leipzig', 600, 'LEI', 19901003, 99999999, 'DEU', 729707004)
28858
+ Fixture Insert (0.1ms) INSERT INTO "cities" ("code", "name", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('LON', 'London', 'LON', 0, 99999999, 'GBR', 165566181)
28859
+ Fixture Insert (0.1ms) INSERT INTO "cities" ("code", "name", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('EDI', 'Edinburgh', 'EDI', 0, 20140918, 'GBR', 38179233)
28860
+ Fixture Insert (0.1ms) INSERT INTO "cities" ("code", "name", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('EDI', 'Edinburgh', 'EDI', 20140918, 99999999, 'SCO', 929437912)
28861
+ Fixture Delete (0.1ms) DELETE FROM "countries"
28862
+ Fixture Insert (0.1ms) INSERT INTO "countries" ("name", "code", "identity", "effective_from", "effective_to", "id") VALUES ('Eternal Caledonia', 'CL', 'CL', 0, 99999999, 146661441)
28863
+ Fixture Insert (0.1ms) INSERT INTO "countries" ("name", "code", "identity", "effective_from", "effective_to", "id") VALUES ('Volatile Changedonia', 'CG', 'CG', 0, 20140302, 60740510)
28864
+ Fixture Insert (0.1ms) INSERT INTO "countries" ("name", "code", "identity", "effective_from", "effective_to", "id") VALUES ('Volatile Changedonia', 'CG', 'CG', 20140302, 20140507, 614232271)
28865
+ Fixture Insert (0.1ms) INSERT INTO "countries" ("name", "code", "identity", "effective_from", "effective_to", "id") VALUES ('Volatile Changedonia', 'CG', 'CG', 20140507, 99999999, 903683497)
28866
+ Fixture Insert (0.1ms) INSERT INTO "countries" ("code", "name", "area", "identity", "effective_from", "effective_to", "id") VALUES ('DEU', 'Germany', 357021, 'DEU', 0, 19491007, 969614649)
28867
+ Fixture Insert (0.1ms) INSERT INTO "countries" ("code", "name", "area", "identity", "effective_from", "effective_to", "id") VALUES ('DEU', 'Germany', 248688, 'DEU', 19491007, 19901003, 549614733)
28868
+ Fixture Insert (0.1ms) INSERT INTO "countries" ("code", "name", "area", "identity", "effective_from", "effective_to", "id") VALUES ('DEU', 'Germany', 357021, 'DEU', 19901003, 99999999, 398803994)
28869
+ Fixture Insert (0.1ms) INSERT INTO "countries" ("code", "name", "area", "identity", "effective_from", "effective_to", "id") VALUES ('DDR', 'East Germany', 108333, 'DDR', 19491007, 19901003, 251987037)
28870
+ Fixture Insert (0.1ms) INSERT INTO "countries" ("code", "name", "area", "identity", "effective_from", "effective_to", "id") VALUES ('GBR', 'United Kingdom', 243610, 'GBR', 0, 20140918, 984400384)
28871
+ Fixture Insert (0.1ms) INSERT INTO "countries" ("code", "name", "area", "identity", "effective_from", "effective_to", "id") VALUES ('GBR', 'United Kingdom', 165223, 'GBR', 20140918, 99999999, 598052936)
28872
+ Fixture Insert (0.1ms) INSERT INTO "countries" ("code", "name", "area", "identity", "effective_from", "effective_to", "id") VALUES ('SCO', 'Scotland', 78387, 'SCO', 20140918, 99999999, 18345512)
28873
+  (0.1ms) commit transaction
28874
+  (0.0ms) begin transaction
28875
+ ------------------------------------------------------------------
28876
+ ActsAsScdTest: test_Effective_dates_can_be_accessed_as_Date_values
28877
+ ------------------------------------------------------------------
28878
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 969614649]]
28879
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 549614733]]
28880
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 398803994]]
28881
+  (0.0ms) rollback transaction
28882
+  (0.1ms) begin transaction
28883
+ ----------------------------------------------
28884
+ ActsAsScdTest: test_Identities_have_iterations
28885
+ ----------------------------------------------
28886
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 146661441]]
28887
+  (0.0ms) rollback transaction
28888
+  (0.0ms) begin transaction
28889
+ ---------------------------------------
28890
+ ActsAsScdTest: test_Model_query_methods
28891
+ ---------------------------------------
28892
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 969614649]]
28893
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 549614733]]
28894
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 398803994]]
28895
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 251987037]]
28896
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 984400384]]
28897
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 598052936]]
28898
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 18345512]]
28899
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 146661441]]
28900
+ Country Load (0.2ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28901
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
28902
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'GBR' ORDER BY "countries"."id" ASC LIMIT 1
28903
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'SCO' ORDER BY "countries"."id" ASC LIMIT 1
28904
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_to" = 99999999)
28905
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28906
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
28907
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'SCO' ORDER BY "countries"."id" ASC LIMIT 1
28908
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'GBR' ORDER BY "countries"."id" ASC LIMIT 1
28909
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from" = 0)
28910
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'DEU' ORDER BY effective_to asc LIMIT 1
28911
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'GBR' ORDER BY effective_to asc LIMIT 1
28912
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'DDR' ORDER BY effective_to asc LIMIT 1
28913
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'SCO' ORDER BY effective_to asc LIMIT 1
28914
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'CL' ORDER BY effective_to asc LIMIT 1
28915
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=30000101 AND "countries"."effective_to">30000101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28916
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20000101 AND "countries"."effective_to">20000101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28917
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28918
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28919
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28920
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28921
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28922
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28923
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=10000101 AND "countries"."effective_to">10000101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28924
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=30000101 AND "countries"."effective_to">30000101) AND "countries"."identity" = 'CL' ORDER BY "countries"."id" ASC LIMIT 1
28925
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20000101 AND "countries"."effective_to">20000101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28926
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28927
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28928
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28929
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28930
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28931
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28932
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=10000101 AND "countries"."effective_to">10000101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
28933
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
28934
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
28935
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
28936
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
28937
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
28938
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
28939
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20150101 AND "countries"."effective_to">20150101) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
28940
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101)
28941
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006)
28942
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007)
28943
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101)
28944
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002)
28945
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003)
28946
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=20000101 AND "countries"."effective_to">20000101)
28947
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=20000101 AND "countries"."effective_to">20000101)
28948
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=20140301 AND "countries"."effective_to">20140301)
28949
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=20140302 AND "countries"."effective_to">20140302)
28950
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=20140917 AND "countries"."effective_to">20140917)
28951
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=20140918 AND "countries"."effective_to">20140918)
28952
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=20150101 AND "countries"."effective_to">20150101)
28953
+  (0.1ms) SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_to" < 99999999)
28954
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" < 99999999) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
28955
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'DEU' ORDER BY effective_from asc
28956
+  (0.0ms) rollback transaction
28957
+  (0.0ms) begin transaction
28958
+ -----------------------------------------------------------
28959
+ ActsAsScdTest: test_Model_query_methods_that_return_objects
28960
+ -----------------------------------------------------------
28961
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 969614649]]
28962
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 549614733]]
28963
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 398803994]]
28964
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 251987037]]
28965
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 984400384]]
28966
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 598052936]]
28967
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 18345512]]
28968
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 146661441]]
28969
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'DEU' ORDER BY effective_to desc LIMIT 1
28970
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'DDR' ORDER BY effective_to desc LIMIT 1
28971
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'GBR' ORDER BY effective_to desc LIMIT 1
28972
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'SCO' ORDER BY effective_to desc LIMIT 1
28973
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'DEU' ORDER BY effective_to asc LIMIT 1
28974
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'DDR' ORDER BY effective_to asc LIMIT 1
28975
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'GBR' ORDER BY effective_to asc LIMIT 1
28976
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'SCO' ORDER BY effective_to asc LIMIT 1
28977
+  (0.1ms) SELECT DISTINCT "countries"."identity" FROM "countries" ORDER BY "countries"."identity"
28978
+  (0.1ms) SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_to" = 99999999) ORDER BY "countries"."identity"
28979
+  (0.1ms) SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=20150101 AND "countries"."effective_to">20150101) ORDER BY "countries"."identity"
28980
+  (0.1ms) SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=20140918 AND "countries"."effective_to">20140918) ORDER BY "countries"."identity"
28981
+  (0.1ms) SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=20140917 AND "countries"."effective_to">20140917) ORDER BY "countries"."identity"
28982
+  (0.1ms) SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=20140302 AND "countries"."effective_to">20140302) ORDER BY "countries"."identity"
28983
+  (0.1ms) SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=20140301 AND "countries"."effective_to">20140301) ORDER BY "countries"."identity"
28984
+  (0.1ms) SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) ORDER BY "countries"."identity"
28985
+  (0.1ms) SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) ORDER BY "countries"."identity"
28986
+  (0.1ms) SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) ORDER BY "countries"."identity"
28987
+  (0.1ms) SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) ORDER BY "countries"."identity"
28988
+  (0.1ms) SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) ORDER BY "countries"."identity"
28989
+  (0.1ms) SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) ORDER BY "countries"."identity"
28990
+  (0.1ms) SELECT DISTINCT "countries"."identity" FROM "countries" ORDER BY "countries"."identity"
28991
+  (0.1ms) SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_to" = 99999999) ORDER BY "countries"."identity"
28992
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20150101 AND "countries"."effective_to">20150101)
28993
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140918 AND "countries"."effective_to">20140918)
28994
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140917 AND "countries"."effective_to">20140917)
28995
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140302 AND "countries"."effective_to">20140302)
28996
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140301 AND "countries"."effective_to">20140301)
28997
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003)
28998
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002)
28999
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101)
29000
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007)
29001
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006)
29002
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101)
29003
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999)
29004
+ Country Load (0.1ms) SELECT DISTINCT "countries"."effective_from", "countries"."effective_to" FROM "countries" WHERE "countries"."identity" = 'CL' ORDER BY effective_from, effective_to
29005
+ Country Load (0.1ms) SELECT DISTINCT "countries"."effective_from", "countries"."effective_to" FROM "countries" WHERE "countries"."identity" = 'DDR' ORDER BY effective_from, effective_to
29006
+ Country Load (0.1ms) SELECT DISTINCT "countries"."effective_from", "countries"."effective_to" FROM "countries" WHERE "countries"."identity" = 'SCO' ORDER BY effective_from, effective_to
29007
+ Country Load (0.1ms) SELECT DISTINCT "countries"."effective_from", "countries"."effective_to" FROM "countries" WHERE "countries"."identity" = 'GBR' ORDER BY effective_from, effective_to
29008
+ Country Load (0.1ms) SELECT DISTINCT "countries"."effective_from", "countries"."effective_to" FROM "countries" WHERE "countries"."identity" = 'DEU' ORDER BY effective_from, effective_to
29009
+ Country Load (0.1ms) SELECT DISTINCT "countries"."effective_from", "countries"."effective_to" FROM "countries" ORDER BY effective_from, effective_to
29010
+  (0.0ms) rollback transaction
29011
+  (0.0ms) begin transaction
29012
+ -----------------------------------------
29013
+ ActsAsScdTest: test_Models_can_act_as_SCD
29014
+ -----------------------------------------
29015
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 146661441]]
29016
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140610 AND "countries"."effective_to">20140610) AND "countries"."identity" = 'CL' ORDER BY "countries"."id" ASC LIMIT 1
29017
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 60740510]]
29018
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 614232271]]
29019
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 903683497]]
29020
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'CG' ORDER BY "countries"."id" ASC LIMIT 1
29021
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'CG' ORDER BY "countries"."id" ASC LIMIT 1
29022
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'CG' AND "countries"."effective_from" = 20140302 ORDER BY "countries"."id" ASC LIMIT 1
29023
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'CG' AND "countries"."effective_from" = 20140507 ORDER BY "countries"."id" ASC LIMIT 1
29024
+  (0.0ms) rollback transaction
29025
+  (0.1ms) begin transaction
29026
+ -------------------------------------------------------
29027
+ ActsAsScdTest: test_New_identities_are_not_time-limited
29028
+ -------------------------------------------------------
29029
+  (0.0ms) SAVEPOINT active_record_1
29030
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."identity" = 'T2' AND "countries"."effective_from" = 0 AND "countries"."effective_to" = 99999999) LIMIT 1
29031
+ SQL (0.1ms) INSERT INTO "countries" ("code", "identity", "name") VALUES (?, ?, ?) [["code", "T2"], ["identity", "T2"], ["name", "Testing 2"]]
29032
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29033
+  (0.0ms) rollback transaction
29034
+  (0.1ms) begin transaction
29035
+ ---------------------------------------------------------------------------------------------
29036
+ ActsAsScdTest: test_New_records_have_identity_automatically_assigned_and_are_not_time-limited
29037
+ ---------------------------------------------------------------------------------------------
29038
+  (0.0ms) SAVEPOINT active_record_1
29039
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."identity" = 'T1' AND "countries"."effective_from" = 0 AND "countries"."effective_to" = 99999999) LIMIT 1
29040
+ SQL (0.1ms) INSERT INTO "countries" ("code", "identity", "name") VALUES (?, ?, ?) [["code", "T1"], ["identity", "T1"], ["name", "Testing 1"]]
29041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29042
+  (0.0ms) rollback transaction
29043
+  (0.0ms) begin transaction
29044
+ ----------------------------------------------------
29045
+ ActsAsScdTest: test_create_identities_and_iterations
29046
+ ----------------------------------------------------
29047
+  (0.0ms) SAVEPOINT active_record_1
29048
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."identity" = 'T3' AND "countries"."effective_from" = 0 AND "countries"."effective_to" = 99999999) LIMIT 1
29049
+ SQL (0.1ms) INSERT INTO "countries" ("area", "code", "identity", "name") VALUES (?, ?, ?, ?) [["area", 1000.0], ["code", "T3"], ["identity", "T3"], ["name", "Testing 3"]]
29050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29051
+  (0.0ms) SAVEPOINT active_record_1
29052
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29053
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."identity" = 'T3' AND "countries"."effective_from" = 20140202 AND "countries"."effective_to" = 99999999) LIMIT 1
29054
+ SQL (0.1ms) INSERT INTO "countries" ("area", "code", "effective_from", "identity", "name") VALUES (?, ?, ?, ?, ?) [["area", 2000.0], ["code", "T3"], ["effective_from", 20140202], ["identity", "T3"], ["name", "Testing 3"]]
29055
+ SQL (0.1ms) UPDATE "countries" SET "effective_to" = ? WHERE "countries"."id" = 984400385 [["effective_to", 20140202]]
29056
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29057
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 984400385]]
29058
+  (0.0ms) SAVEPOINT active_record_1
29059
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29060
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."identity" = 'T3' AND "countries"."effective_from" = 20140302 AND "countries"."effective_to" = 99999999) LIMIT 1
29061
+ SQL (0.1ms) INSERT INTO "countries" ("area", "code", "effective_from", "identity", "name") VALUES (?, ?, ?, ?, ?) [["area", 3000.0], ["code", "T3"], ["effective_from", 20140302], ["identity", "T3"], ["name", "Testing 3"]]
29062
+ SQL (0.1ms) UPDATE "countries" SET "effective_to" = ? WHERE "countries"."id" = 984400386 [["effective_to", 20140302]]
29063
+  (0.1ms) RELEASE SAVEPOINT active_record_1
29064
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 984400385]]
29065
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 984400386]]
29066
+ Country Load (0.2ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29067
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29068
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140302 AND "countries"."effective_to">20140302) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29069
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140312 AND "countries"."effective_to">20140312) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29070
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140301 AND "countries"."effective_to">20140301) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29071
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140202 AND "countries"."effective_to">20140202) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29072
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140212 AND "countries"."effective_to">20140212) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29073
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140201 AND "countries"."effective_to">20140201) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29074
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29075
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140302 AND "countries"."effective_to">20140302) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29076
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140312 AND "countries"."effective_to">20140312) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29077
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140301 AND "countries"."effective_to">20140301) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29078
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29079
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29080
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29081
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_from" = 20140202 ORDER BY "countries"."id" ASC LIMIT 1
29082
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_from" = 20140302 ORDER BY "countries"."id" ASC LIMIT 1
29083
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_to" = 20140302 ORDER BY "countries"."id" ASC LIMIT 1
29084
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_to" = 20140202 ORDER BY "countries"."id" ASC LIMIT 1
29085
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_to<=20140302) ORDER BY effective_to
29086
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_to<=20140202) ORDER BY effective_to
29087
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE (1=0)
29088
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_from>=20140202) ORDER BY effective_from
29089
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_from>=20140302) ORDER BY effective_from
29090
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE (1=0)
29091
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc
29092
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc
29093
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc
29094
+ Country Load (0.2ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_to desc LIMIT 1
29095
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_to desc LIMIT 1
29096
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_to desc LIMIT 1
29097
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc LIMIT 1
29098
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc LIMIT 1
29099
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc LIMIT 1
29100
+  (0.0ms) SAVEPOINT active_record_1
29101
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29102
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."identity" = 'T3' AND "countries"."id" != 984400387 AND "countries"."effective_from" = 20140302 AND "countries"."effective_to" = 20140402) LIMIT 1
29103
+ SQL (0.1ms) UPDATE "countries" SET "effective_to" = ? WHERE "countries"."id" = 984400387 [["effective_to", 20140402]]
29104
+  (0.0ms) RELEASE SAVEPOINT active_record_1
29105
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 984400385]]
29106
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 984400386]]
29107
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 984400387]]
29108
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29109
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29110
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29111
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29112
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140403 AND "countries"."effective_to">20140403) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29113
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140402 AND "countries"."effective_to">20140402) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29114
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140401 AND "countries"."effective_to">20140401) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29115
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140302 AND "countries"."effective_to">20140302) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29116
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140312 AND "countries"."effective_to">20140312) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29117
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140301 AND "countries"."effective_to">20140301) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29118
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140202 AND "countries"."effective_to">20140202) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29119
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140212 AND "countries"."effective_to">20140212) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29120
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140201 AND "countries"."effective_to">20140201) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29121
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140302 AND "countries"."effective_to">20140302) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29122
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140302 AND "countries"."effective_to">20140302) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29123
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140301 AND "countries"."effective_to">20140301) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29124
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29125
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29126
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
29127
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_from" = 20140202 ORDER BY "countries"."id" ASC LIMIT 1
29128
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_from" = 20140302 ORDER BY "countries"."id" ASC LIMIT 1
29129
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_from" = 20140402 ORDER BY "countries"."id" ASC LIMIT 1
29130
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_to" = 20140302 ORDER BY "countries"."id" ASC LIMIT 1
29131
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_to" = 20140202 ORDER BY "countries"."id" ASC LIMIT 1
29132
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_to<=20140302) ORDER BY effective_to
29133
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_to<=20140202) ORDER BY effective_to
29134
+ Country Load (20.6ms) SELECT "countries".* FROM "countries" WHERE (1=0)
29135
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_from>=20140202) ORDER BY effective_from
29136
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_from>=20140302) ORDER BY effective_from
29137
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_from>=20140402) ORDER BY effective_from
29138
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc
29139
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc
29140
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc
29141
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_to desc LIMIT 1
29142
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_to desc LIMIT 1
29143
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_to desc LIMIT 1
29144
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc LIMIT 1
29145
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc LIMIT 1
29146
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc LIMIT 1
29147
+  (0.1ms) rollback transaction
29148
+  (0.0ms) begin transaction
29149
+ ------------------------------------
29150
+ ActsAsScdTest: test_find_by_identity
29151
+ ------------------------------------
29152
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 969614649]]
29153
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 549614733]]
29154
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 398803994]]
29155
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 251987037]]
29156
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 984400384]]
29157
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 598052936]]
29158
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 18345512]]
29159
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 146661441]]
29160
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29161
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29162
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'GBR' ORDER BY "countries"."id" ASC LIMIT 1
29163
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'SCO' ORDER BY "countries"."id" ASC LIMIT 1
29164
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=30000101 AND "countries"."effective_to">30000101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29165
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20000101 AND "countries"."effective_to">20000101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29166
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29167
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29168
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29169
+ Country Load (0.2ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29170
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29171
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29172
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=10000101 AND "countries"."effective_to">10000101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29173
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=30000101 AND "countries"."effective_to">30000101) AND "countries"."identity" = 'CL' ORDER BY "countries"."id" ASC LIMIT 1
29174
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20000101 AND "countries"."effective_to">20000101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29175
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29176
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29177
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29178
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29179
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29180
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29181
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=10000101 AND "countries"."effective_to">10000101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29182
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29183
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29184
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29185
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29186
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29187
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29188
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20150101 AND "countries"."effective_to">20150101) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29189
+  (0.0ms) rollback transaction
29190
+  (0.0ms) begin transaction
29191
+ --------------------------------------------------------------------
29192
+ ActsAsScdTest: test_has_many_iterations_through_identity_association
29193
+ --------------------------------------------------------------------
29194
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 969614649]]
29195
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 549614733]]
29196
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 398803994]]
29197
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 251987037]]
29198
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 984400384]]
29199
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 598052936]]
29200
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 18345512]]
29201
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 146661441]]
29202
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 674640095]]
29203
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 183879749]]
29204
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 729707004]]
29205
+ City Load (0.2ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_to"=99999999) ORDER BY code [["country_identity", "DEU"]]
29206
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 104354294]]
29207
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 523305034]]
29208
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 91230421]]
29209
+ City Load (0.2ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? ORDER BY code, effective_from [["country_identity", "DEU"]]
29210
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? ORDER BY code, effective_from [["country_identity", "DEU"]]
29211
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? ORDER BY code, effective_from [["country_identity", "DEU"]]
29212
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 580155496]]
29213
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 477708657]]
29214
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? ORDER BY code, effective_from [["country_identity", "DDR"]]
29215
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19491006 AND "cities"."effective_to">19491006) ORDER BY code [["country_identity", "DEU"]]
29216
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19491007 AND "cities"."effective_to">19491007) ORDER BY code [["country_identity", "DEU"]]
29217
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19901002 AND "cities"."effective_to">19901002) ORDER BY code [["country_identity", "DEU"]]
29218
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19901003 AND "cities"."effective_to">19901003) ORDER BY code [["country_identity", "DEU"]]
29219
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? [["country_identity", "DEU"]]
29220
+ City Load (0.2ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19491006 AND "cities"."effective_to">19491006) [["country_identity", "DEU"]]
29221
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19491007 AND "cities"."effective_to">19491007) [["country_identity", "DEU"]]
29222
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19901002 AND "cities"."effective_to">19901002) [["country_identity", "DEU"]]
29223
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19901003 AND "cities"."effective_to">19901003) [["country_identity", "DEU"]]
29224
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_to" = 99999999) [["country_identity", "DEU"]]
29225
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_to" = 99999999) [["country_identity", "DEU"]]
29226
+ City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_to" = 99999999) [["country_identity", "DEU"]]
29227
+ Country Load (0.2ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = ? AND ("countries"."effective_to"=99999999) LIMIT 1 [["identity", "DEU"]]
29228
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = ? AND ("countries"."effective_to"=99999999) LIMIT 1 [["identity", "DEU"]]
29229
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = ? AND ("countries"."effective_to"=99999999) LIMIT 1 [["identity", "DEU"]]
29230
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = ? AND ("countries"."effective_to"=99999999) LIMIT 1 [["identity", "DEU"]]
29231
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = ? AND ("countries"."effective_to"=99999999) LIMIT 1 [["identity", "DEU"]]
29232
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = ? AND ("countries"."effective_to"=99999999) LIMIT 1 [["identity", "DEU"]]
29233
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."identity" = ? AND ("countries"."effective_to"=99999999) LIMIT 1 [["identity", "DDR"]]
29234
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29235
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29236
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29237
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29238
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29239
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29240
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29241
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29242
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29243
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29244
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29245
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29246
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29247
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29248
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29249
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29250
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29251
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29252
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29253
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29254
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29255
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29256
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29257
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29258
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29259
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29260
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29261
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29262
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29263
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29264
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29265
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29266
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE ("cities"."effective_from"<=19491006 AND "cities"."effective_to">19491006) AND "cities"."identity" = 'LEI' ORDER BY "cities"."id" ASC LIMIT 1
29267
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29268
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE ("cities"."effective_from"<=19491007 AND "cities"."effective_to">19491007) AND "cities"."identity" = 'LEI' ORDER BY "cities"."id" ASC LIMIT 1
29269
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29270
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE ("cities"."effective_from"<=19901002 AND "cities"."effective_to">19901002) AND "cities"."identity" = 'LEI' ORDER BY "cities"."id" ASC LIMIT 1
29271
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29272
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE ("cities"."effective_from"<=19901003 AND "cities"."effective_to">19901003) AND "cities"."identity" = 'LEI' ORDER BY "cities"."id" ASC LIMIT 1
29273
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29274
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE ("cities"."effective_from"<=19491006 AND "cities"."effective_to">19491006) AND "cities"."identity" = 'LEI' ORDER BY "cities"."id" ASC LIMIT 1
29275
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29276
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE ("cities"."effective_from"<=19491007 AND "cities"."effective_to">19491007) AND "cities"."identity" = 'LEI' ORDER BY "cities"."id" ASC LIMIT 1
29277
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29278
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE ("cities"."effective_from"<=19901002 AND "cities"."effective_to">19901002) AND "cities"."identity" = 'LEI' ORDER BY "cities"."id" ASC LIMIT 1
29279
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29280
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE ("cities"."effective_from"<=19901003 AND "cities"."effective_to">19901003) AND "cities"."identity" = 'LEI' ORDER BY "cities"."id" ASC LIMIT 1
29281
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29282
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE ("cities"."effective_from"<=19491006 AND "cities"."effective_to">19491006) AND "cities"."identity" = 'LEI' ORDER BY "cities"."id" ASC LIMIT 1
29283
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29284
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE ("cities"."effective_from"<=19491007 AND "cities"."effective_to">19491007) AND "cities"."identity" = 'LEI' ORDER BY "cities"."id" ASC LIMIT 1
29285
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29286
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE ("cities"."effective_from"<=19901002 AND "cities"."effective_to">19901002) AND "cities"."identity" = 'LEI' ORDER BY "cities"."id" ASC LIMIT 1
29287
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
29288
+ City Load (0.1ms) SELECT "cities".* FROM "cities" WHERE ("cities"."effective_from"<=19901003 AND "cities"."effective_to">19901003) AND "cities"."identity" = 'LEI' ORDER BY "cities"."id" ASC LIMIT 1
29289
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
29290
+  (0.0ms) rollback transaction
29291
+  (0.0ms) begin transaction
29292
+ ------------------------------------
29293
+ ActsAsScdTest: test_identity_exists?
29294
+ ------------------------------------
29295
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 969614649]]
29296
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 549614733]]
29297
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 398803994]]
29298
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 251987037]]
29299
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 984400384]]
29300
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 598052936]]
29301
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 18345512]]
29302
+ Country Load (0.0ms) SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 146661441]]
29303
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE "countries"."identity" = 'DEU' LIMIT 1
29304
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE "countries"."identity" = 'DDR' LIMIT 1
29305
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE "countries"."identity" = 'GBR' LIMIT 1
29306
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE "countries"."identity" = 'SCO' LIMIT 1
29307
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=30000101 AND "countries"."effective_to">30000101) AND "countries"."identity" = 'DEU' LIMIT 1
29308
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=20000101 AND "countries"."effective_to">20000101) AND "countries"."identity" = 'DEU' LIMIT 1
29309
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' LIMIT 1
29310
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' LIMIT 1
29311
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) AND "countries"."identity" = 'DEU' LIMIT 1
29312
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' LIMIT 1
29313
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' LIMIT 1
29314
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) AND "countries"."identity" = 'DEU' LIMIT 1
29315
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=10000101 AND "countries"."effective_to">10000101) AND "countries"."identity" = 'DEU' LIMIT 1
29316
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=30000101 AND "countries"."effective_to">30000101) AND "countries"."identity" = 'CL' LIMIT 1
29317
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=20000101 AND "countries"."effective_to">20000101) AND "countries"."identity" = 'DEU' LIMIT 1
29318
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' LIMIT 1
29319
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' LIMIT 1
29320
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) AND "countries"."identity" = 'DEU' LIMIT 1
29321
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' LIMIT 1
29322
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' LIMIT 1
29323
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) AND "countries"."identity" = 'DEU' LIMIT 1
29324
+ Country Exists (0.0ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=10000101 AND "countries"."effective_to">10000101) AND "countries"."identity" = 'DEU' LIMIT 1
29325
+ Country Exists (0.0ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) AND "countries"."identity" = 'DDR' LIMIT 1
29326
+ Country Exists (0.0ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DDR' LIMIT 1
29327
+ Country Exists (0.0ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DDR' LIMIT 1
29328
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) AND "countries"."identity" = 'DDR' LIMIT 1
29329
+ Country Exists (0.0ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DDR' LIMIT 1
29330
+ Country Exists (0.1ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DDR' LIMIT 1
29331
+ Country Exists (0.0ms) SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=20150101 AND "countries"."effective_to">20150101) AND "countries"."identity" = 'DDR' LIMIT 1
29332
+  (0.0ms) rollback transaction
29333
+  (0.0ms) begin transaction
29334
+ ---------------------------------------------------------
29335
+ ActsAsScdTest: test_query_methods_applied_to_associations
28720
29336
  ---------------------------------------------------------
28721
29337
  City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 674640095]]
28722
29338
  City Load (0.0ms) SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 183879749]]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_scd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Goizueta