acts_as_scd 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/acts_as_scd/base_class_methods.rb +9 -4
- data/lib/acts_as_scd/class_methods.rb +9 -3
- data/lib/acts_as_scd/version.rb +1 -1
- data/test/dummy/log/test.log +616 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2bc745b729943824d6ca8036a85515b614079482
|
4
|
+
data.tar.gz: fe96a1e7d8f13adf2a8ac6eb98600864d8d07f14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
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
|
-
|
137
|
-
|
138
|
-
|
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|
|
data/lib/acts_as_scd/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -28717,6 +28717,622 @@ ActsAsScdTest: test_identity_exists?
|
|
28717
28717
|
[1m[35m (0.0ms)[0m begin transaction
|
28718
28718
|
---------------------------------------------------------
|
28719
28719
|
ActsAsScdTest: test_query_methods_applied_to_associations
|
28720
|
+
---------------------------------------------------------
|
28721
|
+
[1m[36mCity Load (0.0ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1[0m [["id", 674640095]]
|
28722
|
+
[1m[35mCity Load (0.0ms)[0m SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 183879749]]
|
28723
|
+
[1m[36mCity Load (0.0ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1[0m [["id", 729707004]]
|
28724
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 398803994]]
|
28725
|
+
[1m[36mCity Load (0.1ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_to" = 99999999) ORDER BY code[0m [["country_identity", "DEU"]]
|
28726
|
+
[1m[35mCity Load (0.0ms)[0m SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 104354294]]
|
28727
|
+
[1m[36mCity Load (0.0ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1[0m [["id", 91230421]]
|
28728
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36mCity Load (0.0ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1[0m [["id", 523305034]]
|
28730
|
+
[1m[35mCity Load (0.0ms)[0m 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
|
+
[1m[36mCity Load (0.0ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19901002 AND "cities"."effective_to">19901002) ORDER BY code[0m [["country_identity", "DEU"]]
|
28732
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT DISTINCT "cities"."identity" FROM "cities" WHERE "cities"."country_identity" = ? ORDER BY "cities"."identity"[0m [["country_identity", "DEU"]]
|
28734
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT DISTINCT "cities"."identity" FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19491007 AND "cities"."effective_to">19491007) ORDER BY "cities"."identity"[0m [["country_identity", "DEU"]]
|
28736
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT DISTINCT "cities"."identity" FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19901003 AND "cities"."effective_to">19901003) ORDER BY "cities"."identity"[0m [["country_identity", "DEU"]]
|
28738
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
28739
|
+
[1m[36m (0.3ms)[0m [1mCREATE 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) [0m
|
28740
|
+
[1m[35m (0.1ms)[0m select sqlite_version(*)
|
28741
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_countries_on_identity" ON "countries" ("identity")[0m
|
28742
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_countries_on_effective_from" ON "countries" ("effective_from")[0m
|
28751
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
28767
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_countries_on_effective_to" ON "countries" ("effective_to")
|
28768
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
28776
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
28792
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_countries_on_effective_from_and_effective_to" ON "countries" ("effective_from", "effective_to")
|
28793
|
+
[1m[36m (0.1ms)[0m [1mCREATE 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)) [0m
|
28794
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_cities_on_identity" ON "cities" ("identity")
|
28795
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
28803
|
+
[1m[35m (0.1ms)[0m CREATE INDEX "index_cities_on_effective_from" ON "cities" ("effective_from")
|
28804
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
28812
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_cities_on_effective_to" ON "cities" ("effective_to")[0m
|
28821
|
+
[1m[35m (0.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1m 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
|
+
[0m
|
28837
|
+
[1m[35m (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mCREATE INDEX "index_cities_on_effective_from_and_effective_to" ON "cities" ("effective_from", "effective_to")[0m
|
28846
|
+
[1m[35m (0.1ms)[0m CREATE TABLE "commercial_associations" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255))
|
28847
|
+
[1m[36m (0.1ms)[0m [1mCREATE TABLE "commercial_delegates" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "country_identity" varchar(2)) [0m
|
28848
|
+
[1m[35m (0.1ms)[0m begin transaction
|
28849
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "cities"[0m
|
28850
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('BER', 'Berlin', 800, 'BER', 0, 19491007, 'DEU', 104354294)
|
28851
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('BER', 'Berlin', 400, 'BER', 19491007, 19901003, 'DEU', 523305034)[0m
|
28852
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('BER', 'Berlin', 900, 'BER', 19901003, 99999999, 'DEU', 674640095)
|
28853
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('EBER', 'East Berlin', 400, 'EBER', 19491007, 19901003, 'DDR', 580155496)[0m
|
28854
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('HAM', 'Hamburg', 600, 'HAM', 0, 99999999, 'DEU', 183879749)
|
28855
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('LEI', 'Leipzig', 600, 'LEI', 0, 19491007, 'DEU', 91230421)[0m
|
28856
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('LEI', 'Leipzig', 600, 'LEI', 19491007, 19901003, 'DDR', 477708657)
|
28857
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cities" ("code", "name", "area", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('LEI', 'Leipzig', 600, 'LEI', 19901003, 99999999, 'DEU', 729707004)[0m
|
28858
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cities" ("code", "name", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('LON', 'London', 'LON', 0, 99999999, 'GBR', 165566181)
|
28859
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "cities" ("code", "name", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('EDI', 'Edinburgh', 'EDI', 0, 20140918, 'GBR', 38179233)[0m
|
28860
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "cities" ("code", "name", "identity", "effective_from", "effective_to", "country_identity", "id") VALUES ('EDI', 'Edinburgh', 'EDI', 20140918, 99999999, 'SCO', 929437912)
|
28861
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "countries"[0m
|
28862
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "countries" ("name", "code", "identity", "effective_from", "effective_to", "id") VALUES ('Eternal Caledonia', 'CL', 'CL', 0, 99999999, 146661441)
|
28863
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "countries" ("name", "code", "identity", "effective_from", "effective_to", "id") VALUES ('Volatile Changedonia', 'CG', 'CG', 0, 20140302, 60740510)[0m
|
28864
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "countries" ("name", "code", "identity", "effective_from", "effective_to", "id") VALUES ('Volatile Changedonia', 'CG', 'CG', 20140302, 20140507, 614232271)
|
28865
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "countries" ("name", "code", "identity", "effective_from", "effective_to", "id") VALUES ('Volatile Changedonia', 'CG', 'CG', 20140507, 99999999, 903683497)[0m
|
28866
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "countries" ("code", "name", "area", "identity", "effective_from", "effective_to", "id") VALUES ('DEU', 'Germany', 357021, 'DEU', 0, 19491007, 969614649)
|
28867
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "countries" ("code", "name", "area", "identity", "effective_from", "effective_to", "id") VALUES ('DEU', 'Germany', 248688, 'DEU', 19491007, 19901003, 549614733)[0m
|
28868
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "countries" ("code", "name", "area", "identity", "effective_from", "effective_to", "id") VALUES ('DEU', 'Germany', 357021, 'DEU', 19901003, 99999999, 398803994)
|
28869
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "countries" ("code", "name", "area", "identity", "effective_from", "effective_to", "id") VALUES ('DDR', 'East Germany', 108333, 'DDR', 19491007, 19901003, 251987037)[0m
|
28870
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "countries" ("code", "name", "area", "identity", "effective_from", "effective_to", "id") VALUES ('GBR', 'United Kingdom', 243610, 'GBR', 0, 20140918, 984400384)
|
28871
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "countries" ("code", "name", "area", "identity", "effective_from", "effective_to", "id") VALUES ('GBR', 'United Kingdom', 165223, 'GBR', 20140918, 99999999, 598052936)[0m
|
28872
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "countries" ("code", "name", "area", "identity", "effective_from", "effective_to", "id") VALUES ('SCO', 'Scotland', 78387, 'SCO', 20140918, 99999999, 18345512)
|
28873
|
+
[1m[36m (0.1ms)[0m [1mcommit transaction[0m
|
28874
|
+
[1m[35m (0.0ms)[0m begin transaction
|
28875
|
+
------------------------------------------------------------------
|
28876
|
+
ActsAsScdTest: test_Effective_dates_can_be_accessed_as_Date_values
|
28877
|
+
------------------------------------------------------------------
|
28878
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 969614649]]
|
28879
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 549614733]]
|
28880
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 398803994]]
|
28881
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
28882
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
28883
|
+
----------------------------------------------
|
28884
|
+
ActsAsScdTest: test_Identities_have_iterations
|
28885
|
+
----------------------------------------------
|
28886
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 146661441]]
|
28887
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
28888
|
+
[1m[35m (0.0ms)[0m begin transaction
|
28889
|
+
---------------------------------------
|
28890
|
+
ActsAsScdTest: test_Model_query_methods
|
28891
|
+
---------------------------------------
|
28892
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 969614649]]
|
28893
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 549614733]]
|
28894
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 398803994]]
|
28895
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 251987037]]
|
28896
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 984400384]]
|
28897
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 598052936]]
|
28898
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 18345512]]
|
28899
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 146661441]]
|
28900
|
+
[1m[36mCountry Load (0.2ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28901
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
|
28902
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'GBR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28903
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'SCO' ORDER BY "countries"."id" ASC LIMIT 1
|
28904
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_to" = 99999999)[0m
|
28905
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1
|
28906
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28907
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'SCO' ORDER BY "countries"."id" ASC LIMIT 1
|
28908
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'GBR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28909
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from" = 0)
|
28910
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'DEU' ORDER BY effective_to asc LIMIT 1[0m
|
28911
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'GBR' ORDER BY effective_to asc LIMIT 1
|
28912
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'DDR' ORDER BY effective_to asc LIMIT 1[0m
|
28913
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'SCO' ORDER BY effective_to asc LIMIT 1
|
28914
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'CL' ORDER BY effective_to asc LIMIT 1[0m
|
28915
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20000101 AND "countries"."effective_to">20000101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28917
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28919
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28921
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28923
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=30000101 AND "countries"."effective_to">30000101) AND "countries"."identity" = 'CL' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28925
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28927
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28929
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28931
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=10000101 AND "countries"."effective_to">10000101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28933
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28935
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28937
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28939
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101)[0m
|
28941
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006)
|
28942
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007)[0m
|
28943
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101)
|
28944
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002)[0m
|
28945
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003)
|
28946
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=20000101 AND "countries"."effective_to">20000101)[0m
|
28947
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=20000101 AND "countries"."effective_to">20000101)
|
28948
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=20140301 AND "countries"."effective_to">20140301)[0m
|
28949
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=20140302 AND "countries"."effective_to">20140302)
|
28950
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=20140917 AND "countries"."effective_to">20140917)[0m
|
28951
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=20140918 AND "countries"."effective_to">20140918)
|
28952
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_from"<=20150101 AND "countries"."effective_to">20150101)[0m
|
28953
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "countries" WHERE ("countries"."effective_to" < 99999999)
|
28954
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" < 99999999) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
28955
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'DEU' ORDER BY effective_from asc
|
28956
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
28957
|
+
[1m[35m (0.0ms)[0m begin transaction
|
28958
|
+
-----------------------------------------------------------
|
28959
|
+
ActsAsScdTest: test_Model_query_methods_that_return_objects
|
28960
|
+
-----------------------------------------------------------
|
28961
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 969614649]]
|
28962
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 549614733]]
|
28963
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 398803994]]
|
28964
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 251987037]]
|
28965
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 984400384]]
|
28966
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 598052936]]
|
28967
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 18345512]]
|
28968
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 146661441]]
|
28969
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'DEU' ORDER BY effective_to desc LIMIT 1[0m
|
28970
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'DDR' ORDER BY effective_to desc LIMIT 1
|
28971
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'GBR' ORDER BY effective_to desc LIMIT 1[0m
|
28972
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'SCO' ORDER BY effective_to desc LIMIT 1
|
28973
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'DEU' ORDER BY effective_to asc LIMIT 1[0m
|
28974
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'DDR' ORDER BY effective_to asc LIMIT 1
|
28975
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'GBR' ORDER BY effective_to asc LIMIT 1[0m
|
28976
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'SCO' ORDER BY effective_to asc LIMIT 1
|
28977
|
+
[1m[36m (0.1ms)[0m [1mSELECT DISTINCT "countries"."identity" FROM "countries" ORDER BY "countries"."identity"[0m
|
28978
|
+
[1m[35m (0.1ms)[0m SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_to" = 99999999) ORDER BY "countries"."identity"
|
28979
|
+
[1m[36m (0.1ms)[0m [1mSELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=20150101 AND "countries"."effective_to">20150101) ORDER BY "countries"."identity"[0m
|
28980
|
+
[1m[35m (0.1ms)[0m SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=20140918 AND "countries"."effective_to">20140918) ORDER BY "countries"."identity"
|
28981
|
+
[1m[36m (0.1ms)[0m [1mSELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=20140917 AND "countries"."effective_to">20140917) ORDER BY "countries"."identity"[0m
|
28982
|
+
[1m[35m (0.1ms)[0m SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=20140302 AND "countries"."effective_to">20140302) ORDER BY "countries"."identity"
|
28983
|
+
[1m[36m (0.1ms)[0m [1mSELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=20140301 AND "countries"."effective_to">20140301) ORDER BY "countries"."identity"[0m
|
28984
|
+
[1m[35m (0.1ms)[0m SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) ORDER BY "countries"."identity"
|
28985
|
+
[1m[36m (0.1ms)[0m [1mSELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) ORDER BY "countries"."identity"[0m
|
28986
|
+
[1m[35m (0.1ms)[0m SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) ORDER BY "countries"."identity"
|
28987
|
+
[1m[36m (0.1ms)[0m [1mSELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) ORDER BY "countries"."identity"[0m
|
28988
|
+
[1m[35m (0.1ms)[0m SELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) ORDER BY "countries"."identity"
|
28989
|
+
[1m[36m (0.1ms)[0m [1mSELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) ORDER BY "countries"."identity"[0m
|
28990
|
+
[1m[35m (0.1ms)[0m SELECT DISTINCT "countries"."identity" FROM "countries" ORDER BY "countries"."identity"
|
28991
|
+
[1m[36m (0.1ms)[0m [1mSELECT DISTINCT "countries"."identity" FROM "countries" WHERE ("countries"."effective_to" = 99999999) ORDER BY "countries"."identity"[0m
|
28992
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20150101 AND "countries"."effective_to">20150101)
|
28993
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140918 AND "countries"."effective_to">20140918)[0m
|
28994
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140917 AND "countries"."effective_to">20140917)
|
28995
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140302 AND "countries"."effective_to">20140302)[0m
|
28996
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140301 AND "countries"."effective_to">20140301)
|
28997
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003)[0m
|
28998
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002)
|
28999
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101)[0m
|
29000
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007)
|
29001
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006)[0m
|
29002
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101)
|
29003
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999)[0m
|
29004
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT DISTINCT "countries"."effective_from", "countries"."effective_to" FROM "countries" WHERE "countries"."identity" = 'CL' ORDER BY effective_from, effective_to
|
29005
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT DISTINCT "countries"."effective_from", "countries"."effective_to" FROM "countries" WHERE "countries"."identity" = 'DDR' ORDER BY effective_from, effective_to[0m
|
29006
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT DISTINCT "countries"."effective_from", "countries"."effective_to" FROM "countries" WHERE "countries"."identity" = 'SCO' ORDER BY effective_from, effective_to
|
29007
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT DISTINCT "countries"."effective_from", "countries"."effective_to" FROM "countries" WHERE "countries"."identity" = 'GBR' ORDER BY effective_from, effective_to[0m
|
29008
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT DISTINCT "countries"."effective_from", "countries"."effective_to" FROM "countries" WHERE "countries"."identity" = 'DEU' ORDER BY effective_from, effective_to
|
29009
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT DISTINCT "countries"."effective_from", "countries"."effective_to" FROM "countries" ORDER BY effective_from, effective_to[0m
|
29010
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
29011
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
29012
|
+
-----------------------------------------
|
29013
|
+
ActsAsScdTest: test_Models_can_act_as_SCD
|
29014
|
+
-----------------------------------------
|
29015
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 146661441]]
|
29016
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140610 AND "countries"."effective_to">20140610) AND "countries"."identity" = 'CL' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29017
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 60740510]]
|
29018
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 614232271]]
|
29019
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 903683497]]
|
29020
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'CG' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29021
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'CG' ORDER BY "countries"."id" ASC LIMIT 1
|
29022
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'CG' AND "countries"."effective_from" = 20140302 ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29023
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'CG' AND "countries"."effective_from" = 20140507 ORDER BY "countries"."id" ASC LIMIT 1
|
29024
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
29025
|
+
[1m[35m (0.1ms)[0m begin transaction
|
29026
|
+
-------------------------------------------------------
|
29027
|
+
ActsAsScdTest: test_New_identities_are_not_time-limited
|
29028
|
+
-------------------------------------------------------
|
29029
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
29030
|
+
[1m[35mCountry Exists (0.1ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."identity" = 'T2' AND "countries"."effective_from" = 0 AND "countries"."effective_to" = 99999999) LIMIT 1
|
29031
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "countries" ("code", "identity", "name") VALUES (?, ?, ?)[0m [["code", "T2"], ["identity", "T2"], ["name", "Testing 2"]]
|
29032
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
29033
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
29034
|
+
[1m[35m (0.1ms)[0m begin transaction
|
29035
|
+
---------------------------------------------------------------------------------------------
|
29036
|
+
ActsAsScdTest: test_New_records_have_identity_automatically_assigned_and_are_not_time-limited
|
29037
|
+
---------------------------------------------------------------------------------------------
|
29038
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
29039
|
+
[1m[35mCountry Exists (0.1ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."identity" = 'T1' AND "countries"."effective_from" = 0 AND "countries"."effective_to" = 99999999) LIMIT 1
|
29040
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "countries" ("code", "identity", "name") VALUES (?, ?, ?)[0m [["code", "T1"], ["identity", "T1"], ["name", "Testing 1"]]
|
29041
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
29042
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
29043
|
+
[1m[35m (0.0ms)[0m begin transaction
|
29044
|
+
----------------------------------------------------
|
29045
|
+
ActsAsScdTest: test_create_identities_and_iterations
|
29046
|
+
----------------------------------------------------
|
29047
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
29048
|
+
[1m[35mCountry Exists (0.1ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."identity" = 'T3' AND "countries"."effective_from" = 0 AND "countries"."effective_to" = 99999999) LIMIT 1
|
29049
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "countries" ("area", "code", "identity", "name") VALUES (?, ?, ?, ?)[0m [["area", 1000.0], ["code", "T3"], ["identity", "T3"], ["name", "Testing 3"]]
|
29050
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
29051
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
29052
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
|
29053
|
+
[1m[36mCountry Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "countries" WHERE ("countries"."identity" = 'T3' AND "countries"."effective_from" = 20140202 AND "countries"."effective_to" = 99999999) LIMIT 1[0m
|
29054
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "countries" ("area", "code", "effective_from", "identity", "name") VALUES (?, ?, ?, ?, ?) [["area", 2000.0], ["code", "T3"], ["effective_from", 20140202], ["identity", "T3"], ["name", "Testing 3"]]
|
29055
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "countries" SET "effective_to" = ? WHERE "countries"."id" = 984400385[0m [["effective_to", 20140202]]
|
29056
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
29057
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 984400385]]
|
29058
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
29059
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29060
|
+
[1m[35mCountry Exists (0.1ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."identity" = 'T3' AND "countries"."effective_from" = 20140302 AND "countries"."effective_to" = 99999999) LIMIT 1
|
29061
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "countries" ("area", "code", "effective_from", "identity", "name") VALUES (?, ?, ?, ?, ?)[0m [["area", 3000.0], ["code", "T3"], ["effective_from", 20140302], ["identity", "T3"], ["name", "Testing 3"]]
|
29062
|
+
[1m[35mSQL (0.1ms)[0m UPDATE "countries" SET "effective_to" = ? WHERE "countries"."id" = 984400386 [["effective_to", 20140302]]
|
29063
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29064
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 984400385]]
|
29065
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 984400386]]
|
29066
|
+
[1m[35mCountry Load (0.2ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
|
29067
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29068
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140312 AND "countries"."effective_to">20140312) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29070
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140202 AND "countries"."effective_to">20140202) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29072
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140201 AND "countries"."effective_to">20140201) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29074
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
|
29075
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140302 AND "countries"."effective_to">20140302) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29076
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140301 AND "countries"."effective_to">20140301) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29078
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
|
29079
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29080
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
|
29081
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_from" = 20140202 ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29082
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_from" = 20140302 ORDER BY "countries"."id" ASC LIMIT 1
|
29083
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_to" = 20140302 ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29084
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_to" = 20140202 ORDER BY "countries"."id" ASC LIMIT 1
|
29085
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_to<=20140302) ORDER BY effective_to[0m
|
29086
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_to<=20140202) ORDER BY effective_to
|
29087
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE (1=0)[0m
|
29088
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_from>=20140202) ORDER BY effective_from
|
29089
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_from>=20140302) ORDER BY effective_from[0m
|
29090
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE (1=0)
|
29091
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc[0m
|
29092
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc
|
29093
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc[0m
|
29094
|
+
[1m[35mCountry Load (0.2ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_to desc LIMIT 1
|
29095
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_to desc LIMIT 1[0m
|
29096
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_to desc LIMIT 1
|
29097
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc LIMIT 1[0m
|
29098
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc LIMIT 1
|
29099
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc LIMIT 1[0m
|
29100
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
29101
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29102
|
+
[1m[35mCountry Exists (0.1ms)[0m 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
|
+
[1m[36mSQL (0.1ms)[0m [1mUPDATE "countries" SET "effective_to" = ? WHERE "countries"."id" = 984400387[0m [["effective_to", 20140402]]
|
29104
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
29105
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 984400385]]
|
29106
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 984400386]]
|
29107
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 984400387]]
|
29108
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
|
29109
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29110
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
|
29111
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29112
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140402 AND "countries"."effective_to">20140402) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29114
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140302 AND "countries"."effective_to">20140302) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29116
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140301 AND "countries"."effective_to">20140301) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29118
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140212 AND "countries"."effective_to">20140212) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29120
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140302 AND "countries"."effective_to">20140302) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29122
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20140301 AND "countries"."effective_to">20140301) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29124
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
|
29125
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29126
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_from" = 0) AND "countries"."identity" = 'T3' ORDER BY "countries"."id" ASC LIMIT 1
|
29127
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_from" = 20140202 ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29128
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_from" = 20140302 ORDER BY "countries"."id" ASC LIMIT 1
|
29129
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_from" = 20140402 ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29130
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_to" = 20140302 ORDER BY "countries"."id" ASC LIMIT 1
|
29131
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND "countries"."effective_to" = 20140202 ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29132
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_to<=20140302) ORDER BY effective_to
|
29133
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_to<=20140202) ORDER BY effective_to[0m
|
29134
|
+
[1m[35mCountry Load (20.6ms)[0m SELECT "countries".* FROM "countries" WHERE (1=0)
|
29135
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_from>=20140202) ORDER BY effective_from[0m
|
29136
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_from>=20140302) ORDER BY effective_from
|
29137
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' AND (effective_from>=20140402) ORDER BY effective_from[0m
|
29138
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc
|
29139
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc[0m
|
29140
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc
|
29141
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_to desc LIMIT 1[0m
|
29142
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_to desc LIMIT 1
|
29143
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_to desc LIMIT 1[0m
|
29144
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc LIMIT 1
|
29145
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc LIMIT 1[0m
|
29146
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = 'T3' ORDER BY effective_from asc LIMIT 1
|
29147
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
29148
|
+
[1m[35m (0.0ms)[0m begin transaction
|
29149
|
+
------------------------------------
|
29150
|
+
ActsAsScdTest: test_find_by_identity
|
29151
|
+
------------------------------------
|
29152
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 969614649]]
|
29153
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 549614733]]
|
29154
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 398803994]]
|
29155
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 251987037]]
|
29156
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 984400384]]
|
29157
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 598052936]]
|
29158
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 18345512]]
|
29159
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 146661441]]
|
29160
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29161
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1
|
29162
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'GBR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29163
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE ("countries"."effective_to" = 99999999) AND "countries"."identity" = 'SCO' ORDER BY "countries"."id" ASC LIMIT 1
|
29164
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=30000101 AND "countries"."effective_to">30000101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29165
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29167
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29169
|
+
[1m[35mCountry Load (0.2ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29171
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=10000101 AND "countries"."effective_to">10000101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29173
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20000101 AND "countries"."effective_to">20000101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29175
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29177
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29179
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29181
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29183
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29185
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29187
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=20150101 AND "countries"."effective_to">20150101) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29189
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
29190
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
29191
|
+
--------------------------------------------------------------------
|
29192
|
+
ActsAsScdTest: test_has_many_iterations_through_identity_association
|
29193
|
+
--------------------------------------------------------------------
|
29194
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 969614649]]
|
29195
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 549614733]]
|
29196
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 398803994]]
|
29197
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 251987037]]
|
29198
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 984400384]]
|
29199
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 598052936]]
|
29200
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 18345512]]
|
29201
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 146661441]]
|
29202
|
+
[1m[35mCity Load (0.1ms)[0m SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 674640095]]
|
29203
|
+
[1m[36mCity Load (0.0ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1[0m [["id", 183879749]]
|
29204
|
+
[1m[35mCity Load (0.0ms)[0m SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 729707004]]
|
29205
|
+
[1m[36mCity Load (0.2ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_to"=99999999) ORDER BY code[0m [["country_identity", "DEU"]]
|
29206
|
+
[1m[35mCity Load (0.0ms)[0m SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 104354294]]
|
29207
|
+
[1m[36mCity Load (0.0ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1[0m [["id", 523305034]]
|
29208
|
+
[1m[35mCity Load (0.0ms)[0m SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 91230421]]
|
29209
|
+
[1m[36mCity Load (0.2ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? ORDER BY code, effective_from[0m [["country_identity", "DEU"]]
|
29210
|
+
[1m[35mCity Load (0.1ms)[0m SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? ORDER BY code, effective_from [["country_identity", "DEU"]]
|
29211
|
+
[1m[36mCity Load (0.1ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? ORDER BY code, effective_from[0m [["country_identity", "DEU"]]
|
29212
|
+
[1m[35mCity Load (0.0ms)[0m SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 580155496]]
|
29213
|
+
[1m[36mCity Load (0.1ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1[0m [["id", 477708657]]
|
29214
|
+
[1m[35mCity Load (0.1ms)[0m SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? ORDER BY code, effective_from [["country_identity", "DDR"]]
|
29215
|
+
[1m[36mCity Load (0.1ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19491006 AND "cities"."effective_to">19491006) ORDER BY code[0m [["country_identity", "DEU"]]
|
29216
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36mCity Load (0.1ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19901002 AND "cities"."effective_to">19901002) ORDER BY code[0m [["country_identity", "DEU"]]
|
29218
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36mCity Load (0.1ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ?[0m [["country_identity", "DEU"]]
|
29220
|
+
[1m[35mCity Load (0.2ms)[0m SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19491006 AND "cities"."effective_to">19491006) [["country_identity", "DEU"]]
|
29221
|
+
[1m[36mCity Load (0.1ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19491007 AND "cities"."effective_to">19491007)[0m [["country_identity", "DEU"]]
|
29222
|
+
[1m[35mCity Load (0.1ms)[0m SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19901002 AND "cities"."effective_to">19901002) [["country_identity", "DEU"]]
|
29223
|
+
[1m[36mCity Load (0.1ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_from"<=19901003 AND "cities"."effective_to">19901003)[0m [["country_identity", "DEU"]]
|
29224
|
+
[1m[35mCity Load (0.1ms)[0m SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_to" = 99999999) [["country_identity", "DEU"]]
|
29225
|
+
[1m[36mCity Load (0.1ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_to" = 99999999)[0m [["country_identity", "DEU"]]
|
29226
|
+
[1m[35mCity Load (0.0ms)[0m SELECT "cities".* FROM "cities" WHERE "cities"."country_identity" = ? AND ("cities"."effective_to" = 99999999) [["country_identity", "DEU"]]
|
29227
|
+
[1m[36mCountry Load (0.2ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = ? AND ("countries"."effective_to"=99999999) LIMIT 1[0m [["identity", "DEU"]]
|
29228
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = ? AND ("countries"."effective_to"=99999999) LIMIT 1 [["identity", "DEU"]]
|
29229
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = ? AND ("countries"."effective_to"=99999999) LIMIT 1[0m [["identity", "DEU"]]
|
29230
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = ? AND ("countries"."effective_to"=99999999) LIMIT 1 [["identity", "DEU"]]
|
29231
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = ? AND ("countries"."effective_to"=99999999) LIMIT 1[0m [["identity", "DEU"]]
|
29232
|
+
[1m[35mCountry Load (0.1ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."identity" = ? AND ("countries"."effective_to"=99999999) LIMIT 1 [["identity", "DEU"]]
|
29233
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."identity" = ? AND ("countries"."effective_to"=99999999) LIMIT 1[0m [["identity", "DDR"]]
|
29234
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29236
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29238
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29240
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29242
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29244
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29246
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29248
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29250
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29252
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29254
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29256
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29258
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29260
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29262
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29264
|
+
[1m[35mCountry Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29266
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29268
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29270
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29272
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29274
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29276
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29278
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29280
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29282
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29284
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29286
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DDR' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29288
|
+
[1m[35mCity Load (0.1ms)[0m 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
|
+
[1m[36mCountry Load (0.1ms)[0m [1mSELECT "countries".* FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' ORDER BY "countries"."id" ASC LIMIT 1[0m
|
29290
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
29291
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
29292
|
+
------------------------------------
|
29293
|
+
ActsAsScdTest: test_identity_exists?
|
29294
|
+
------------------------------------
|
29295
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 969614649]]
|
29296
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 549614733]]
|
29297
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 398803994]]
|
29298
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 251987037]]
|
29299
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 984400384]]
|
29300
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 598052936]]
|
29301
|
+
[1m[35mCountry Load (0.0ms)[0m SELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1 [["id", 18345512]]
|
29302
|
+
[1m[36mCountry Load (0.0ms)[0m [1mSELECT "countries".* FROM "countries" WHERE "countries"."id" = ? LIMIT 1[0m [["id", 146661441]]
|
29303
|
+
[1m[35mCountry Exists (0.1ms)[0m SELECT 1 AS one FROM "countries" WHERE "countries"."identity" = 'DEU' LIMIT 1
|
29304
|
+
[1m[36mCountry Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "countries" WHERE "countries"."identity" = 'DDR' LIMIT 1[0m
|
29305
|
+
[1m[35mCountry Exists (0.1ms)[0m SELECT 1 AS one FROM "countries" WHERE "countries"."identity" = 'GBR' LIMIT 1
|
29306
|
+
[1m[36mCountry Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "countries" WHERE "countries"."identity" = 'SCO' LIMIT 1[0m
|
29307
|
+
[1m[35mCountry Exists (0.1ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=30000101 AND "countries"."effective_to">30000101) AND "countries"."identity" = 'DEU' LIMIT 1
|
29308
|
+
[1m[36mCountry Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=20000101 AND "countries"."effective_to">20000101) AND "countries"."identity" = 'DEU' LIMIT 1[0m
|
29309
|
+
[1m[35mCountry Exists (0.1ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' LIMIT 1
|
29310
|
+
[1m[36mCountry Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' LIMIT 1[0m
|
29311
|
+
[1m[35mCountry Exists (0.1ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) AND "countries"."identity" = 'DEU' LIMIT 1
|
29312
|
+
[1m[36mCountry Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' LIMIT 1[0m
|
29313
|
+
[1m[35mCountry Exists (0.1ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' LIMIT 1
|
29314
|
+
[1m[36mCountry Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) AND "countries"."identity" = 'DEU' LIMIT 1[0m
|
29315
|
+
[1m[35mCountry Exists (0.1ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=10000101 AND "countries"."effective_to">10000101) AND "countries"."identity" = 'DEU' LIMIT 1
|
29316
|
+
[1m[36mCountry Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=30000101 AND "countries"."effective_to">30000101) AND "countries"."identity" = 'CL' LIMIT 1[0m
|
29317
|
+
[1m[35mCountry Exists (0.1ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=20000101 AND "countries"."effective_to">20000101) AND "countries"."identity" = 'DEU' LIMIT 1
|
29318
|
+
[1m[36mCountry Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DEU' LIMIT 1[0m
|
29319
|
+
[1m[35mCountry Exists (0.1ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DEU' LIMIT 1
|
29320
|
+
[1m[36mCountry Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) AND "countries"."identity" = 'DEU' LIMIT 1[0m
|
29321
|
+
[1m[35mCountry Exists (0.1ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DEU' LIMIT 1
|
29322
|
+
[1m[36mCountry Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DEU' LIMIT 1[0m
|
29323
|
+
[1m[35mCountry Exists (0.1ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) AND "countries"."identity" = 'DEU' LIMIT 1
|
29324
|
+
[1m[36mCountry Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=10000101 AND "countries"."effective_to">10000101) AND "countries"."identity" = 'DEU' LIMIT 1[0m
|
29325
|
+
[1m[35mCountry Exists (0.0ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19400101 AND "countries"."effective_to">19400101) AND "countries"."identity" = 'DDR' LIMIT 1
|
29326
|
+
[1m[36mCountry Exists (0.0ms)[0m [1mSELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19491006 AND "countries"."effective_to">19491006) AND "countries"."identity" = 'DDR' LIMIT 1[0m
|
29327
|
+
[1m[35mCountry Exists (0.0ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19491007 AND "countries"."effective_to">19491007) AND "countries"."identity" = 'DDR' LIMIT 1
|
29328
|
+
[1m[36mCountry Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19700101 AND "countries"."effective_to">19700101) AND "countries"."identity" = 'DDR' LIMIT 1[0m
|
29329
|
+
[1m[35mCountry Exists (0.0ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19901002 AND "countries"."effective_to">19901002) AND "countries"."identity" = 'DDR' LIMIT 1
|
29330
|
+
[1m[36mCountry Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=19901003 AND "countries"."effective_to">19901003) AND "countries"."identity" = 'DDR' LIMIT 1[0m
|
29331
|
+
[1m[35mCountry Exists (0.0ms)[0m SELECT 1 AS one FROM "countries" WHERE ("countries"."effective_from"<=20150101 AND "countries"."effective_to">20150101) AND "countries"."identity" = 'DDR' LIMIT 1
|
29332
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
29333
|
+
[1m[35m (0.0ms)[0m begin transaction
|
29334
|
+
---------------------------------------------------------
|
29335
|
+
ActsAsScdTest: test_query_methods_applied_to_associations
|
28720
29336
|
---------------------------------------------------------
|
28721
29337
|
[1m[36mCity Load (0.0ms)[0m [1mSELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1[0m [["id", 674640095]]
|
28722
29338
|
[1m[35mCity Load (0.0ms)[0m SELECT "cities".* FROM "cities" WHERE "cities"."id" = ? LIMIT 1 [["id", 183879749]]
|