attr_similar 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +5 -1
- data/Rakefile +8 -3
- data/lib/attr_similar/version.rb +1 -1
- data/test/attr_similar_test.rb +207 -14
- data/test/{dummy → dummy-rails3}/Rakefile +0 -0
- data/test/{dummy → dummy-rails3}/app/assets/javascripts/application.js +0 -0
- data/test/{dummy → dummy-rails3}/app/assets/stylesheets/application.css +0 -0
- data/test/{dummy → dummy-rails3}/app/controllers/application_controller.rb +0 -0
- data/test/{dummy → dummy-rails3}/app/helpers/application_helper.rb +0 -0
- data/test/{dummy → dummy-rails3}/app/models/manufacturer.rb +0 -0
- data/test/{dummy → dummy-rails3}/app/models/widget.rb +0 -0
- data/test/{dummy → dummy-rails3}/app/views/layouts/application.html.erb +0 -0
- data/test/{dummy → dummy-rails3}/config.ru +0 -0
- data/test/{dummy → dummy-rails3}/config/application.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/boot.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/database.yml +0 -0
- data/test/{dummy → dummy-rails3}/config/environment.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/environments/development.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/environments/production.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/environments/test.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/initializers/backtrace_silencers.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/initializers/inflections.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/initializers/mime_types.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/initializers/secret_token.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/initializers/session_store.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/initializers/wrap_parameters.rb +0 -0
- data/test/{dummy → dummy-rails3}/config/locales/en.yml +0 -0
- data/test/{dummy → dummy-rails3}/config/routes.rb +0 -0
- data/test/{dummy → dummy-rails3}/db/migrate/20131027192625_create_manufacturers.rb +0 -0
- data/test/{dummy → dummy-rails3}/db/migrate/20131027192834_create_widgets.rb +0 -0
- data/test/{dummy → dummy-rails3}/db/schema.rb +0 -0
- data/test/{dummy → dummy-rails3}/db/test.sqlite3 +0 -0
- data/test/{dummy → dummy-rails3}/log/development.log +0 -0
- data/test/dummy-rails3/log/test.log +3903 -0
- data/test/{dummy → dummy-rails3}/public/404.html +0 -0
- data/test/{dummy → dummy-rails3}/public/422.html +0 -0
- data/test/{dummy → dummy-rails3}/public/500.html +0 -0
- data/test/{dummy → dummy-rails3}/public/favicon.ico +0 -0
- data/test/{dummy → dummy-rails3}/script/rails +0 -0
- data/test/{dummy → dummy-rails3}/test/factories/widgets.rb +0 -0
- data/test/dummy-rails4/Rakefile +6 -0
- data/test/dummy-rails4/app/assets/javascripts/application.js +16 -0
- data/test/dummy-rails4/app/assets/stylesheets/application.css +13 -0
- data/test/dummy-rails4/app/controllers/application_controller.rb +5 -0
- data/test/dummy-rails4/app/helpers/application_helper.rb +2 -0
- data/test/dummy-rails4/app/models/manufacturer.rb +3 -0
- data/test/dummy-rails4/app/models/widget.rb +21 -0
- data/test/dummy-rails4/app/views/layouts/application.html.erb +14 -0
- data/test/dummy-rails4/bin/bundle +3 -0
- data/test/dummy-rails4/bin/rails +4 -0
- data/test/dummy-rails4/bin/rake +4 -0
- data/test/dummy-rails4/config.ru +4 -0
- data/test/dummy-rails4/config/application.rb +23 -0
- data/test/dummy-rails4/config/boot.rb +4 -0
- data/test/dummy-rails4/config/database.yml +25 -0
- data/test/dummy-rails4/config/environment.rb +5 -0
- data/test/dummy-rails4/config/environments/development.rb +29 -0
- data/test/dummy-rails4/config/environments/production.rb +80 -0
- data/test/dummy-rails4/config/environments/test.rb +36 -0
- data/test/dummy-rails4/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy-rails4/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy-rails4/config/initializers/inflections.rb +16 -0
- data/test/dummy-rails4/config/initializers/mime_types.rb +5 -0
- data/test/dummy-rails4/config/initializers/secret_token.rb +12 -0
- data/test/dummy-rails4/config/initializers/session_store.rb +3 -0
- data/test/dummy-rails4/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy-rails4/config/locales/en.yml +23 -0
- data/test/dummy-rails4/config/routes.rb +56 -0
- data/test/dummy-rails4/db/migrate/20131027192625_create_manufacturers.rb +9 -0
- data/test/dummy-rails4/db/migrate/20131027192834_create_widgets.rb +14 -0
- data/test/dummy-rails4/db/schema.rb +31 -0
- data/test/dummy-rails4/db/seeds.rb +7 -0
- data/test/{dummy/db/development.sqlite3 → dummy-rails4/db/test.sqlite3} +0 -0
- data/test/dummy-rails4/log/development.log +14 -0
- data/test/dummy-rails4/log/test.log +966 -0
- data/test/dummy-rails4/public/404.html +58 -0
- data/test/dummy-rails4/public/422.html +58 -0
- data/test/dummy-rails4/public/500.html +57 -0
- data/test/dummy-rails4/public/favicon.ico +0 -0
- data/test/dummy-rails4/public/robots.txt +5 -0
- data/test/dummy-rails4/test/factories/widgets.rb +10 -0
- data/test/dummy-rails4/test/test_helper.rb +15 -0
- data/test/test_helper.rb +11 -5
- data/test/test_utils.rb +27 -0
- metadata +167 -105
- data/test/dummy/README.rdoc +0 -261
- data/test/dummy/log/test.log +0 -964
@@ -0,0 +1,31 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended that you check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(version: 20131027192834) do
|
15
|
+
|
16
|
+
create_table "manufacturers", force: true do |t|
|
17
|
+
t.datetime "created_at"
|
18
|
+
t.datetime "updated_at"
|
19
|
+
end
|
20
|
+
|
21
|
+
create_table "widgets", force: true do |t|
|
22
|
+
t.string "address"
|
23
|
+
t.date "birthdate"
|
24
|
+
t.string "first_name"
|
25
|
+
t.string "last_name"
|
26
|
+
t.string "preferred_name"
|
27
|
+
t.datetime "created_at"
|
28
|
+
t.datetime "updated_at"
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# This file should contain all the record creation needed to seed the database with its default values.
|
2
|
+
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
|
3
|
+
#
|
4
|
+
# Examples:
|
5
|
+
#
|
6
|
+
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
|
7
|
+
# Mayor.create(name: 'Emanuel', city: cities.first)
|
Binary file
|
@@ -0,0 +1,14 @@
|
|
1
|
+
[1m[36m (166.9ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
2
|
+
[1m[35m (143.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
3
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4
|
+
Migrating to CreateManufacturers (20131027192625)
|
5
|
+
[1m[35m (0.1ms)[0m begin transaction
|
6
|
+
[1m[36m (1.1ms)[0m [1mCREATE TABLE "manufacturers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
7
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131027192625"]]
|
8
|
+
[1m[36m (184.0ms)[0m [1mcommit transaction[0m
|
9
|
+
Migrating to CreateWidgets (20131027192834)
|
10
|
+
[1m[35m (0.2ms)[0m begin transaction
|
11
|
+
[1m[36m (1.0ms)[0m [1mCREATE TABLE "widgets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar(255), "birthdate" date, "first_name" varchar(255), "last_name" varchar(255), "preferred_name" varchar(255), "created_at" datetime, "updated_at" datetime) [0m
|
12
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20131027192834"]]
|
13
|
+
[1m[36m (204.6ms)[0m [1mcommit transaction[0m
|
14
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.2ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
@@ -0,0 +1,966 @@
|
|
1
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
2
|
+
----------------------------
|
3
|
+
AttrSimilarTest: test_case_0
|
4
|
+
----------------------------
|
5
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
6
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
|
+
----------------------------
|
8
|
+
AttrSimilarTest: test_case_1
|
9
|
+
----------------------------
|
10
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
11
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12
|
+
----------------------------
|
13
|
+
AttrSimilarTest: test_case_2
|
14
|
+
----------------------------
|
15
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
16
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17
|
+
----------------------------
|
18
|
+
AttrSimilarTest: test_case_3
|
19
|
+
----------------------------
|
20
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
21
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
22
|
+
-----------------------------
|
23
|
+
AttrSimilarTest: test_case_3a
|
24
|
+
-----------------------------
|
25
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
26
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
27
|
+
----------------------------
|
28
|
+
AttrSimilarTest: test_case_4
|
29
|
+
----------------------------
|
30
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
31
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
32
|
+
----------------------------
|
33
|
+
AttrSimilarTest: test_case_5
|
34
|
+
----------------------------
|
35
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
36
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
37
|
+
---------------------------------------------------
|
38
|
+
AttrSimilarTest: test_find_similar_multiple_widgets
|
39
|
+
---------------------------------------------------
|
40
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
41
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
42
|
+
----------------------------------------------------------------
|
43
|
+
AttrSimilarTest: test_find_similar_with_five_matching_attributes
|
44
|
+
----------------------------------------------------------------
|
45
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
46
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
47
|
+
----------------------------------------------------------------
|
48
|
+
AttrSimilarTest: test_find_similar_with_four_matching_attributes
|
49
|
+
----------------------------------------------------------------
|
50
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
51
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
52
|
+
--------------------------------------------------------------
|
53
|
+
AttrSimilarTest: test_find_similar_with_no_matching_attributes
|
54
|
+
--------------------------------------------------------------
|
55
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
56
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
57
|
+
--------------------------------------------------------------
|
58
|
+
AttrSimilarTest: test_find_similar_with_one_matching_attribute
|
59
|
+
--------------------------------------------------------------
|
60
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
61
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
62
|
+
-----------------------------------------------------------------
|
63
|
+
AttrSimilarTest: test_find_similar_with_three_matching_attributes
|
64
|
+
-----------------------------------------------------------------
|
65
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
66
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
67
|
+
---------------------------------------------------------------
|
68
|
+
AttrSimilarTest: test_find_similar_with_two_matching_attributes
|
69
|
+
---------------------------------------------------------------
|
70
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
71
|
+
[1m[36m (173.0ms)[0m [1mCREATE TABLE "manufacturers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
72
|
+
[1m[35m (165.1ms)[0m CREATE TABLE "widgets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar(255), "birthdate" date, "first_name" varchar(255), "last_name" varchar(255), "preferred_name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
73
|
+
[1m[36m (185.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
74
|
+
[1m[35m (177.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
75
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
76
|
+
[1m[35m (176.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131027192834')
|
77
|
+
[1m[36m (155.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131027192625')[0m
|
78
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.4ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
79
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
80
|
+
----------------------------
|
81
|
+
AttrSimilarTest: test_case_0
|
82
|
+
----------------------------
|
83
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
84
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
85
|
+
----------------------------
|
86
|
+
AttrSimilarTest: test_case_1
|
87
|
+
----------------------------
|
88
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
89
|
+
[1m[36mSQL (40.3ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "blah"], ["birthdate", Thu, 27 Dec 2012], ["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "John"], ["last_name", "blah"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
90
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
91
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
92
|
+
[1m[35m (0.1ms)[0m begin transaction
|
93
|
+
----------------------------
|
94
|
+
AttrSimilarTest: test_case_2
|
95
|
+
----------------------------
|
96
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
97
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "blah"], ["birthdate", Fri, 16 Mar 2001], ["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "Not John"], ["last_name", "blah"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
98
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
99
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
100
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
101
|
+
----------------------------
|
102
|
+
AttrSimilarTest: test_case_3
|
103
|
+
----------------------------
|
104
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
105
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "blah"], ["birthdate", Fri, 17 Sep 1999], ["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
106
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
107
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
108
|
+
[1m[35m (0.1ms)[0m begin transaction
|
109
|
+
-----------------------------
|
110
|
+
AttrSimilarTest: test_case_3a
|
111
|
+
-----------------------------
|
112
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
113
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("created_at", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "Calvin"], ["last_name", "Hobbes"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
114
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
115
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
116
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
117
|
+
----------------------------
|
118
|
+
AttrSimilarTest: test_case_4
|
119
|
+
----------------------------
|
120
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
121
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "123 Main St"], ["birthdate", Mon, 25 May 1992], ["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
122
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
123
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
124
|
+
[1m[35m (0.1ms)[0m begin transaction
|
125
|
+
----------------------------
|
126
|
+
AttrSimilarTest: test_case_5
|
127
|
+
----------------------------
|
128
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
129
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "123 Main St"], ["birthdate", Tue, 07 Mar 1995], ["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
130
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
131
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
132
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
133
|
+
---------------------------------------------------
|
134
|
+
AttrSimilarTest: test_find_similar_multiple_widgets
|
135
|
+
---------------------------------------------------
|
136
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
137
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00001"], ["birthdate", Thu, 03 Mar 2005], ["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "first-name-00001"], ["last_name", "last-name-00001"], ["preferred_name", "preferred-name-00001"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
138
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
139
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
140
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00002"], ["birthdate", Wed, 04 Dec 1991], ["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "first-name-00002"], ["last_name", "last-name-00002"], ["preferred_name", "preferred-name-00002"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
141
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
142
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
143
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00002"], ["birthdate", Tue, 09 Oct 1990], ["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "first-name-00002"], ["last_name", "last-name-00002"], ["preferred_name", "preferred-name-00003"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
144
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
145
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
146
|
+
[1m[35m (0.1ms)[0m begin transaction
|
147
|
+
----------------------------------------------------------------
|
148
|
+
AttrSimilarTest: test_find_similar_with_five_matching_attributes
|
149
|
+
----------------------------------------------------------------
|
150
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
151
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00003"], ["birthdate", Thu, 02 Apr 1992], ["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "first-name-00003"], ["last_name", "last-name-00003"], ["preferred_name", "preferred-name-00004"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
152
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
153
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
154
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
155
|
+
----------------------------------------------------------------
|
156
|
+
AttrSimilarTest: test_find_similar_with_four_matching_attributes
|
157
|
+
----------------------------------------------------------------
|
158
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
159
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00004"], ["birthdate", Tue, 05 Jun 1990], ["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "first-name-00004"], ["last_name", "last-name-00004"], ["preferred_name", "preferred-name-00005"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
160
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
161
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
162
|
+
[1m[35m (0.1ms)[0m begin transaction
|
163
|
+
--------------------------------------------------------------
|
164
|
+
AttrSimilarTest: test_find_similar_with_no_matching_attributes
|
165
|
+
--------------------------------------------------------------
|
166
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
167
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00005"], ["birthdate", Mon, 14 Sep 2009], ["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "first-name-00005"], ["last_name", "last-name-00005"], ["preferred_name", "preferred-name-00006"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
168
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
169
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
170
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00006"], ["birthdate", Tue, 07 Jun 1994], ["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "first-name-00006"], ["last_name", "last-name-00006"], ["preferred_name", "preferred-name-00007"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
171
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
172
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
173
|
+
[1m[35m (0.1ms)[0m begin transaction
|
174
|
+
--------------------------------------------------------------
|
175
|
+
AttrSimilarTest: test_find_similar_with_one_matching_attribute
|
176
|
+
--------------------------------------------------------------
|
177
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
178
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00007"], ["birthdate", Tue, 28 Dec 2004], ["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "first-name-00007"], ["last_name", "last-name-00007"], ["preferred_name", "preferred-name-00008"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
179
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
180
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
181
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
182
|
+
-----------------------------------------------------------------
|
183
|
+
AttrSimilarTest: test_find_similar_with_three_matching_attributes
|
184
|
+
-----------------------------------------------------------------
|
185
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
186
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00008"], ["birthdate", Tue, 13 Oct 1998], ["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "first-name-00009"], ["last_name", "last-name-00009"], ["preferred_name", "preferred-name-00010"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
187
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
188
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
189
|
+
[1m[35m (0.1ms)[0m begin transaction
|
190
|
+
---------------------------------------------------------------
|
191
|
+
AttrSimilarTest: test_find_similar_with_two_matching_attributes
|
192
|
+
---------------------------------------------------------------
|
193
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
194
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00009"], ["birthdate", Wed, 18 Nov 1987], ["created_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00], ["first_name", "first-name-00010"], ["last_name", "last-name-00010"], ["preferred_name", "preferred-name-00012"], ["updated_at", Mon, 09 Dec 2013 04:26:12 UTC +00:00]]
|
195
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
196
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
197
|
+
[1m[36m (179.9ms)[0m [1mCREATE TABLE "manufacturers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
198
|
+
[1m[35m (165.0ms)[0m CREATE TABLE "widgets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar(255), "birthdate" date, "first_name" varchar(255), "last_name" varchar(255), "preferred_name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
199
|
+
[1m[36m (176.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
200
|
+
[1m[35m (155.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
201
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
202
|
+
[1m[35m (210.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131027192834')
|
203
|
+
[1m[36m (177.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131027192625')[0m
|
204
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
205
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
206
|
+
----------------------------
|
207
|
+
AttrSimilarTest: test_case_0
|
208
|
+
----------------------------
|
209
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
210
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
211
|
+
----------------------------
|
212
|
+
AttrSimilarTest: test_case_1
|
213
|
+
----------------------------
|
214
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
215
|
+
[1m[36mSQL (4.2ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "blah"], ["birthdate", Sat, 16 Nov 2002], ["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "John"], ["last_name", "blah"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
216
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
217
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
218
|
+
[1m[35m (0.1ms)[0m begin transaction
|
219
|
+
----------------------------
|
220
|
+
AttrSimilarTest: test_case_2
|
221
|
+
----------------------------
|
222
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
223
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "blah"], ["birthdate", Mon, 17 Dec 2012], ["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "Not John"], ["last_name", "blah"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
224
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
225
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
226
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
227
|
+
----------------------------
|
228
|
+
AttrSimilarTest: test_case_3
|
229
|
+
----------------------------
|
230
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
231
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "blah"], ["birthdate", Tue, 14 Jan 1992], ["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
232
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
233
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
234
|
+
[1m[35m (0.1ms)[0m begin transaction
|
235
|
+
-----------------------------
|
236
|
+
AttrSimilarTest: test_case_3a
|
237
|
+
-----------------------------
|
238
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
239
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("created_at", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "Calvin"], ["last_name", "Hobbes"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
240
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
241
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
242
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
243
|
+
----------------------------
|
244
|
+
AttrSimilarTest: test_case_4
|
245
|
+
----------------------------
|
246
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
247
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "123 Main St"], ["birthdate", Wed, 02 Feb 2011], ["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
248
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
249
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
250
|
+
[1m[35m (0.1ms)[0m begin transaction
|
251
|
+
----------------------------
|
252
|
+
AttrSimilarTest: test_case_5
|
253
|
+
----------------------------
|
254
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
255
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "123 Main St"], ["birthdate", Wed, 22 Jun 1994], ["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
256
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
257
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
258
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
259
|
+
---------------------------------------------------
|
260
|
+
AttrSimilarTest: test_find_similar_multiple_widgets
|
261
|
+
---------------------------------------------------
|
262
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
263
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00001"], ["birthdate", Sun, 15 Jul 2007], ["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "first-name-00001"], ["last_name", "last-name-00001"], ["preferred_name", "preferred-name-00001"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
264
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
265
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
266
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00002"], ["birthdate", Mon, 15 Jan 2001], ["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "first-name-00002"], ["last_name", "last-name-00002"], ["preferred_name", "preferred-name-00002"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
267
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
268
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
269
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00002"], ["birthdate", Thu, 19 Jan 2012], ["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "first-name-00002"], ["last_name", "last-name-00002"], ["preferred_name", "preferred-name-00003"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
270
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
271
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
272
|
+
[1m[35m (0.1ms)[0m begin transaction
|
273
|
+
----------------------------------------------------------------
|
274
|
+
AttrSimilarTest: test_find_similar_with_five_matching_attributes
|
275
|
+
----------------------------------------------------------------
|
276
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
277
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00003"], ["birthdate", Thu, 02 Feb 2012], ["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "first-name-00003"], ["last_name", "last-name-00003"], ["preferred_name", "preferred-name-00004"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
278
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
279
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
280
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
281
|
+
----------------------------------------------------------------
|
282
|
+
AttrSimilarTest: test_find_similar_with_four_matching_attributes
|
283
|
+
----------------------------------------------------------------
|
284
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
285
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00004"], ["birthdate", Fri, 14 Jun 2013], ["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "first-name-00004"], ["last_name", "last-name-00004"], ["preferred_name", "preferred-name-00005"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
286
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
287
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
288
|
+
[1m[35m (0.1ms)[0m begin transaction
|
289
|
+
--------------------------------------------------------------
|
290
|
+
AttrSimilarTest: test_find_similar_with_no_matching_attributes
|
291
|
+
--------------------------------------------------------------
|
292
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
293
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00005"], ["birthdate", Sat, 01 May 2010], ["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "first-name-00005"], ["last_name", "last-name-00005"], ["preferred_name", "preferred-name-00006"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
294
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
295
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
296
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00006"], ["birthdate", Sun, 14 Sep 2008], ["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "first-name-00006"], ["last_name", "last-name-00006"], ["preferred_name", "preferred-name-00007"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
297
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
298
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
299
|
+
[1m[35m (0.1ms)[0m begin transaction
|
300
|
+
--------------------------------------------------------------
|
301
|
+
AttrSimilarTest: test_find_similar_with_one_matching_attribute
|
302
|
+
--------------------------------------------------------------
|
303
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
304
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00007"], ["birthdate", Thu, 03 Feb 2000], ["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "first-name-00007"], ["last_name", "last-name-00007"], ["preferred_name", "preferred-name-00008"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
305
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
306
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
307
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
308
|
+
-----------------------------------------------------------------
|
309
|
+
AttrSimilarTest: test_find_similar_with_three_matching_attributes
|
310
|
+
-----------------------------------------------------------------
|
311
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
312
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00008"], ["birthdate", Sun, 30 Mar 2008], ["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "first-name-00009"], ["last_name", "last-name-00009"], ["preferred_name", "preferred-name-00010"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
313
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
314
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
315
|
+
[1m[35m (0.1ms)[0m begin transaction
|
316
|
+
---------------------------------------------------------------
|
317
|
+
AttrSimilarTest: test_find_similar_with_two_matching_attributes
|
318
|
+
---------------------------------------------------------------
|
319
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
320
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00009"], ["birthdate", Wed, 25 Nov 1992], ["created_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00], ["first_name", "first-name-00010"], ["last_name", "last-name-00010"], ["preferred_name", "preferred-name-00012"], ["updated_at", Mon, 09 Dec 2013 04:28:18 UTC +00:00]]
|
321
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
322
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
323
|
+
[1m[36m (280.5ms)[0m [1mCREATE TABLE "manufacturers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
324
|
+
[1m[35m (165.1ms)[0m CREATE TABLE "widgets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar(255), "birthdate" date, "first_name" varchar(255), "last_name" varchar(255), "preferred_name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
325
|
+
[1m[36m (187.0ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
326
|
+
[1m[35m (155.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
327
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
328
|
+
[1m[35m (188.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131027192834')
|
329
|
+
[1m[36m (177.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131027192625')[0m
|
330
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
331
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
332
|
+
----------------------------
|
333
|
+
AttrSimilarTest: test_case_0
|
334
|
+
----------------------------
|
335
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
336
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
337
|
+
----------------------------
|
338
|
+
AttrSimilarTest: test_case_1
|
339
|
+
----------------------------
|
340
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
341
|
+
[1m[36mSQL (5.3ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "blah"], ["birthdate", Mon, 30 Sep 2013], ["created_at", Mon, 09 Dec 2013 04:28:45 UTC +00:00], ["first_name", "John"], ["last_name", "blah"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:28:45 UTC +00:00]]
|
342
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
343
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
344
|
+
[1m[35m (0.1ms)[0m begin transaction
|
345
|
+
----------------------------
|
346
|
+
AttrSimilarTest: test_case_2
|
347
|
+
----------------------------
|
348
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
349
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "blah"], ["birthdate", Mon, 16 Jan 1995], ["created_at", Mon, 09 Dec 2013 04:28:45 UTC +00:00], ["first_name", "Not John"], ["last_name", "blah"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:28:45 UTC +00:00]]
|
350
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
351
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
352
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
353
|
+
----------------------------
|
354
|
+
AttrSimilarTest: test_case_3
|
355
|
+
----------------------------
|
356
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
357
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "blah"], ["birthdate", Wed, 16 Sep 2009], ["created_at", Mon, 09 Dec 2013 04:28:45 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:28:45 UTC +00:00]]
|
358
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
359
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
360
|
+
[1m[35m (0.1ms)[0m begin transaction
|
361
|
+
-----------------------------
|
362
|
+
AttrSimilarTest: test_case_3a
|
363
|
+
-----------------------------
|
364
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
365
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("created_at", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Dec 2013 04:28:45 UTC +00:00], ["first_name", "Calvin"], ["last_name", "Hobbes"], ["updated_at", Mon, 09 Dec 2013 04:28:45 UTC +00:00]]
|
366
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
367
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
368
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
369
|
+
----------------------------
|
370
|
+
AttrSimilarTest: test_case_4
|
371
|
+
----------------------------
|
372
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
373
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "123 Main St"], ["birthdate", Sun, 06 Jan 1991], ["created_at", Mon, 09 Dec 2013 04:28:45 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:28:45 UTC +00:00]]
|
374
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
375
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
376
|
+
[1m[35m (0.1ms)[0m begin transaction
|
377
|
+
----------------------------
|
378
|
+
AttrSimilarTest: test_case_5
|
379
|
+
----------------------------
|
380
|
+
[1m[36m (0.5ms)[0m [1mSAVEPOINT active_record_1[0m
|
381
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "123 Main St"], ["birthdate", Wed, 10 Sep 1997], ["created_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00]]
|
382
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
383
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
384
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
385
|
+
---------------------------------------------------
|
386
|
+
AttrSimilarTest: test_find_similar_multiple_widgets
|
387
|
+
---------------------------------------------------
|
388
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
389
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00001"], ["birthdate", Tue, 20 Sep 2005], ["created_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00], ["first_name", "first-name-00001"], ["last_name", "last-name-00001"], ["preferred_name", "preferred-name-00001"], ["updated_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00]]
|
390
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
391
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
392
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00002"], ["birthdate", Thu, 26 Aug 2010], ["created_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00], ["first_name", "first-name-00002"], ["last_name", "last-name-00002"], ["preferred_name", "preferred-name-00002"], ["updated_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00]]
|
393
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
394
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
395
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00002"], ["birthdate", Tue, 15 Apr 2008], ["created_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00], ["first_name", "first-name-00002"], ["last_name", "last-name-00002"], ["preferred_name", "preferred-name-00003"], ["updated_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00]]
|
396
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
397
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
398
|
+
[1m[35m (0.1ms)[0m begin transaction
|
399
|
+
----------------------------------------------------------------
|
400
|
+
AttrSimilarTest: test_find_similar_with_five_matching_attributes
|
401
|
+
----------------------------------------------------------------
|
402
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
403
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00003"], ["birthdate", Fri, 11 Sep 1998], ["created_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00], ["first_name", "first-name-00003"], ["last_name", "last-name-00003"], ["preferred_name", "preferred-name-00004"], ["updated_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00]]
|
404
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
405
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
406
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
407
|
+
----------------------------------------------------------------
|
408
|
+
AttrSimilarTest: test_find_similar_with_four_matching_attributes
|
409
|
+
----------------------------------------------------------------
|
410
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
411
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00004"], ["birthdate", Mon, 16 Feb 2009], ["created_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00], ["first_name", "first-name-00004"], ["last_name", "last-name-00004"], ["preferred_name", "preferred-name-00005"], ["updated_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00]]
|
412
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
413
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
414
|
+
[1m[35m (0.1ms)[0m begin transaction
|
415
|
+
--------------------------------------------------------------
|
416
|
+
AttrSimilarTest: test_find_similar_with_no_matching_attributes
|
417
|
+
--------------------------------------------------------------
|
418
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
419
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00005"], ["birthdate", Tue, 21 Feb 2012], ["created_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00], ["first_name", "first-name-00005"], ["last_name", "last-name-00005"], ["preferred_name", "preferred-name-00006"], ["updated_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00]]
|
420
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
421
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
422
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00006"], ["birthdate", Thu, 13 Mar 2008], ["created_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00], ["first_name", "first-name-00006"], ["last_name", "last-name-00006"], ["preferred_name", "preferred-name-00007"], ["updated_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00]]
|
423
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
424
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
425
|
+
[1m[35m (0.1ms)[0m begin transaction
|
426
|
+
--------------------------------------------------------------
|
427
|
+
AttrSimilarTest: test_find_similar_with_one_matching_attribute
|
428
|
+
--------------------------------------------------------------
|
429
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
430
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00007"], ["birthdate", Thu, 20 Sep 1990], ["created_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00], ["first_name", "first-name-00007"], ["last_name", "last-name-00007"], ["preferred_name", "preferred-name-00008"], ["updated_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00]]
|
431
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
432
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
433
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
434
|
+
-----------------------------------------------------------------
|
435
|
+
AttrSimilarTest: test_find_similar_with_three_matching_attributes
|
436
|
+
-----------------------------------------------------------------
|
437
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
438
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00008"], ["birthdate", Sun, 14 Mar 1999], ["created_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00], ["first_name", "first-name-00009"], ["last_name", "last-name-00009"], ["preferred_name", "preferred-name-00010"], ["updated_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00]]
|
439
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
440
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
441
|
+
[1m[35m (0.1ms)[0m begin transaction
|
442
|
+
---------------------------------------------------------------
|
443
|
+
AttrSimilarTest: test_find_similar_with_two_matching_attributes
|
444
|
+
---------------------------------------------------------------
|
445
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
446
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00009"], ["birthdate", Sat, 11 Jan 1997], ["created_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00], ["first_name", "first-name-00010"], ["last_name", "last-name-00010"], ["preferred_name", "preferred-name-00012"], ["updated_at", Mon, 09 Dec 2013 04:28:46 UTC +00:00]]
|
447
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
448
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
449
|
+
[1m[36m (169.1ms)[0m [1mCREATE TABLE "manufacturers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
450
|
+
[1m[35m (176.2ms)[0m CREATE TABLE "widgets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar(255), "birthdate" date, "first_name" varchar(255), "last_name" varchar(255), "preferred_name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
451
|
+
[1m[36m (174.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
452
|
+
[1m[35m (177.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
453
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
454
|
+
[1m[35m (199.1ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131027192834')
|
455
|
+
[1m[36m (166.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131027192625')[0m
|
456
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
457
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
458
|
+
----------------------------
|
459
|
+
AttrSimilarTest: test_case_0
|
460
|
+
----------------------------
|
461
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
462
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
463
|
+
----------------------------
|
464
|
+
AttrSimilarTest: test_case_1
|
465
|
+
----------------------------
|
466
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
467
|
+
[1m[36mSQL (4.6ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "blah"], ["birthdate", Sat, 02 Feb 2013], ["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "John"], ["last_name", "blah"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
468
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
469
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
470
|
+
[1m[35m (0.1ms)[0m begin transaction
|
471
|
+
----------------------------
|
472
|
+
AttrSimilarTest: test_case_2
|
473
|
+
----------------------------
|
474
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
475
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "blah"], ["birthdate", Mon, 17 Jun 1996], ["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "Not John"], ["last_name", "blah"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
476
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
477
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
478
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
479
|
+
----------------------------
|
480
|
+
AttrSimilarTest: test_case_3
|
481
|
+
----------------------------
|
482
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
483
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "blah"], ["birthdate", Sat, 20 Oct 2007], ["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
484
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
485
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
486
|
+
[1m[35m (0.1ms)[0m begin transaction
|
487
|
+
-----------------------------
|
488
|
+
AttrSimilarTest: test_case_3a
|
489
|
+
-----------------------------
|
490
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
491
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("created_at", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "Calvin"], ["last_name", "Hobbes"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
492
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
493
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
494
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
495
|
+
----------------------------
|
496
|
+
AttrSimilarTest: test_case_4
|
497
|
+
----------------------------
|
498
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
499
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "123 Main St"], ["birthdate", Sat, 11 Apr 2009], ["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
500
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
501
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
502
|
+
[1m[35m (0.1ms)[0m begin transaction
|
503
|
+
----------------------------
|
504
|
+
AttrSimilarTest: test_case_5
|
505
|
+
----------------------------
|
506
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
507
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "123 Main St"], ["birthdate", Wed, 17 Dec 1997], ["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
508
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
509
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
510
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
511
|
+
---------------------------------------------------
|
512
|
+
AttrSimilarTest: test_find_similar_multiple_widgets
|
513
|
+
---------------------------------------------------
|
514
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
515
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00001"], ["birthdate", Wed, 12 Oct 2011], ["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "first-name-00001"], ["last_name", "last-name-00001"], ["preferred_name", "preferred-name-00001"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
516
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
517
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
518
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00002"], ["birthdate", Sun, 13 Mar 1988], ["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "first-name-00002"], ["last_name", "last-name-00002"], ["preferred_name", "preferred-name-00002"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
519
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
520
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
521
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00002"], ["birthdate", Thu, 06 Sep 2001], ["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "first-name-00002"], ["last_name", "last-name-00002"], ["preferred_name", "preferred-name-00003"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
522
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
523
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
524
|
+
[1m[35m (0.1ms)[0m begin transaction
|
525
|
+
----------------------------------------------------------------
|
526
|
+
AttrSimilarTest: test_find_similar_with_five_matching_attributes
|
527
|
+
----------------------------------------------------------------
|
528
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
529
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00003"], ["birthdate", Tue, 01 Mar 2005], ["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "first-name-00003"], ["last_name", "last-name-00003"], ["preferred_name", "preferred-name-00004"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
530
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
531
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
532
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
533
|
+
----------------------------------------------------------------
|
534
|
+
AttrSimilarTest: test_find_similar_with_four_matching_attributes
|
535
|
+
----------------------------------------------------------------
|
536
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
537
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00004"], ["birthdate", Wed, 28 Aug 1991], ["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "first-name-00004"], ["last_name", "last-name-00004"], ["preferred_name", "preferred-name-00005"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
538
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
539
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
540
|
+
[1m[35m (0.1ms)[0m begin transaction
|
541
|
+
--------------------------------------------------------------
|
542
|
+
AttrSimilarTest: test_find_similar_with_no_matching_attributes
|
543
|
+
--------------------------------------------------------------
|
544
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
545
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00005"], ["birthdate", Sun, 09 Nov 2008], ["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "first-name-00005"], ["last_name", "last-name-00005"], ["preferred_name", "preferred-name-00006"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
546
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
547
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
548
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00006"], ["birthdate", Wed, 28 Sep 1988], ["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "first-name-00006"], ["last_name", "last-name-00006"], ["preferred_name", "preferred-name-00007"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
549
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
550
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
551
|
+
[1m[35m (0.1ms)[0m begin transaction
|
552
|
+
--------------------------------------------------------------
|
553
|
+
AttrSimilarTest: test_find_similar_with_one_matching_attribute
|
554
|
+
--------------------------------------------------------------
|
555
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
556
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00007"], ["birthdate", Mon, 24 Aug 2009], ["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "first-name-00007"], ["last_name", "last-name-00007"], ["preferred_name", "preferred-name-00008"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
557
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
558
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
559
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
560
|
+
-----------------------------------------------------------------
|
561
|
+
AttrSimilarTest: test_find_similar_with_three_matching_attributes
|
562
|
+
-----------------------------------------------------------------
|
563
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
564
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00008"], ["birthdate", Sun, 19 Mar 1995], ["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "first-name-00009"], ["last_name", "last-name-00009"], ["preferred_name", "preferred-name-00010"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
565
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
566
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
567
|
+
[1m[35m (0.1ms)[0m begin transaction
|
568
|
+
---------------------------------------------------------------
|
569
|
+
AttrSimilarTest: test_find_similar_with_two_matching_attributes
|
570
|
+
---------------------------------------------------------------
|
571
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
572
|
+
[1m[35mSQL (1.1ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00009"], ["birthdate", Thu, 11 Jan 1990], ["created_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00], ["first_name", "first-name-00010"], ["last_name", "last-name-00010"], ["preferred_name", "preferred-name-00012"], ["updated_at", Mon, 09 Dec 2013 04:29:26 UTC +00:00]]
|
573
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
574
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
575
|
+
[1m[36m (181.9ms)[0m [1mCREATE TABLE "manufacturers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
576
|
+
[1m[35m (177.5ms)[0m CREATE TABLE "widgets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar(255), "birthdate" date, "first_name" varchar(255), "last_name" varchar(255), "preferred_name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
577
|
+
[1m[36m (163.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
578
|
+
[1m[35m (155.0ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
579
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
580
|
+
[1m[35m (177.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131027192834')
|
581
|
+
[1m[36m (166.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131027192625')[0m
|
582
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
583
|
+
[1m[36m (0.7ms)[0m [1mbegin transaction[0m
|
584
|
+
----------------------------
|
585
|
+
AttrSimilarTest: test_case_0
|
586
|
+
----------------------------
|
587
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
588
|
+
[1m[36mSQL (4.9ms)[0m [1mINSERT INTO "widgets" ("address", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["address", ""], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "Not John"], ["last_name", ""], ["preferred_name", ""], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
589
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
590
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'John'[0m
|
591
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
592
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
593
|
+
----------------------------
|
594
|
+
AttrSimilarTest: test_case_1
|
595
|
+
----------------------------
|
596
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
597
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "blah"], ["birthdate", Mon, 19 Dec 1988], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "John"], ["last_name", "blah"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
598
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
599
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'John'[0m
|
600
|
+
[1m[35mWidget Load (0.2ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."first_name" = 'John'
|
601
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
602
|
+
[1m[35m (0.1ms)[0m begin transaction
|
603
|
+
----------------------------
|
604
|
+
AttrSimilarTest: test_case_2
|
605
|
+
----------------------------
|
606
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
607
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "blah"], ["birthdate", Tue, 13 Dec 2011], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "Not John"], ["last_name", "blah"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
608
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
609
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'John'
|
610
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
611
|
+
[1m[35m (0.1ms)[0m begin transaction
|
612
|
+
----------------------------
|
613
|
+
AttrSimilarTest: test_case_3
|
614
|
+
----------------------------
|
615
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
616
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "blah"], ["birthdate", Mon, 27 Jan 1997], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
617
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
618
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'John'
|
619
|
+
[1m[36mWidget Load (0.1ms)[0m [1mSELECT "widgets".* FROM "widgets" WHERE "widgets"."first_name" = 'John'[0m
|
620
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'Smith'
|
621
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
622
|
+
[1m[35m (0.1ms)[0m begin transaction
|
623
|
+
-----------------------------
|
624
|
+
AttrSimilarTest: test_case_3a
|
625
|
+
-----------------------------
|
626
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
627
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("created_at", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "Calvin"], ["last_name", "Hobbes"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
628
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
629
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'Homer'
|
630
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'Simpson'[0m
|
631
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
632
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
633
|
+
----------------------------
|
634
|
+
AttrSimilarTest: test_case_4
|
635
|
+
----------------------------
|
636
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
637
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "123 Main St"], ["birthdate", Thu, 11 Sep 1986], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
638
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
639
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."address" = '123 Main St'[0m
|
640
|
+
[1m[35mWidget Load (0.2ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."address" = '123 Main St'
|
641
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'John'[0m
|
642
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."first_name" = 'John'
|
643
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'Smith'[0m
|
644
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
645
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
646
|
+
----------------------------
|
647
|
+
AttrSimilarTest: test_case_5
|
648
|
+
----------------------------
|
649
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
650
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "123 Main St"], ["birthdate", Tue, 15 Feb 1994], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
651
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
652
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
653
|
+
[1m[35m (0.1ms)[0m begin transaction
|
654
|
+
---------------------------------------------------
|
655
|
+
AttrSimilarTest: test_find_similar_multiple_widgets
|
656
|
+
---------------------------------------------------
|
657
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
658
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00001"], ["birthdate", Sat, 05 Oct 2002], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "first-name-00001"], ["last_name", "last-name-00001"], ["preferred_name", "preferred-name-00001"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
659
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
660
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
661
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00002"], ["birthdate", Tue, 01 Feb 2000], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "first-name-00002"], ["last_name", "last-name-00002"], ["preferred_name", "preferred-name-00002"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
662
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
663
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
664
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00002"], ["birthdate", Mon, 30 Mar 1998], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "first-name-00002"], ["last_name", "last-name-00002"], ["preferred_name", "preferred-name-00003"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
665
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
666
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE (id != 3) AND "widgets"."address" = 'address-00002'
|
667
|
+
[1m[36mWidget Load (0.1ms)[0m [1mSELECT "widgets".* FROM "widgets" WHERE (id != 3) AND "widgets"."address" = 'address-00002'[0m
|
668
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE (id != 3) AND "widgets"."birthdate" = '1998-03-30'
|
669
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE (id != 3) AND "widgets"."first_name" = 'first-name-00002'[0m
|
670
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE (id != 3) AND "widgets"."first_name" = 'first-name-00002'
|
671
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE (id != 3) AND "widgets"."last_name" = 'last-name-00002'[0m
|
672
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE (id != 3) AND "widgets"."last_name" = 'last-name-00002'
|
673
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE (id != 3) AND "widgets"."preferred_name" = 'preferred-name-00003'[0m
|
674
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
675
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
676
|
+
----------------------------------------------------------------
|
677
|
+
AttrSimilarTest: test_find_similar_with_five_matching_attributes
|
678
|
+
----------------------------------------------------------------
|
679
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
680
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00003"], ["birthdate", Thu, 19 Jun 1997], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "first-name-00003"], ["last_name", "last-name-00003"], ["preferred_name", "preferred-name-00004"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
681
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
682
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."address" = 'address-00003'[0m
|
683
|
+
[1m[35mWidget Load (0.3ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."address" = 'address-00003'
|
684
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."birthdate" = '1997-06-19'[0m
|
685
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."birthdate" = '1997-06-19'
|
686
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00003'[0m
|
687
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00003'
|
688
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00003'[0m
|
689
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00003'
|
690
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."preferred_name" = 'preferred-name-00004'[0m
|
691
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."preferred_name" = 'preferred-name-00004'
|
692
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
693
|
+
[1m[35m (0.1ms)[0m begin transaction
|
694
|
+
----------------------------------------------------------------
|
695
|
+
AttrSimilarTest: test_find_similar_with_four_matching_attributes
|
696
|
+
----------------------------------------------------------------
|
697
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
698
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00004"], ["birthdate", Tue, 22 Feb 2005], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "first-name-00004"], ["last_name", "last-name-00004"], ["preferred_name", "preferred-name-00005"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
699
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
700
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."address" = 'address-00004'
|
701
|
+
[1m[36mWidget Load (0.1ms)[0m [1mSELECT "widgets".* FROM "widgets" WHERE "widgets"."address" = 'address-00004'[0m
|
702
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."birthdate" = '2004-06-08'
|
703
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00004'[0m
|
704
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00004'
|
705
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00004'[0m
|
706
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00004'
|
707
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."preferred_name" = 'preferred-name-00005'[0m
|
708
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."preferred_name" = 'preferred-name-00005'
|
709
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
710
|
+
[1m[35m (0.1ms)[0m begin transaction
|
711
|
+
--------------------------------------------------------------
|
712
|
+
AttrSimilarTest: test_find_similar_with_no_matching_attributes
|
713
|
+
--------------------------------------------------------------
|
714
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
715
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00005"], ["birthdate", Sun, 05 Mar 1989], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "first-name-00005"], ["last_name", "last-name-00005"], ["preferred_name", "preferred-name-00006"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
716
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
717
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
718
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00006"], ["birthdate", Fri, 16 Apr 1999], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "first-name-00006"], ["last_name", "last-name-00006"], ["preferred_name", "preferred-name-00007"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
719
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
720
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE (id != 2) AND "widgets"."address" = 'address-00006'[0m
|
721
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE (id != 2) AND "widgets"."birthdate" = '1999-04-16'
|
722
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE (id != 2) AND "widgets"."first_name" = 'first-name-00006'[0m
|
723
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE (id != 2) AND "widgets"."last_name" = 'last-name-00006'
|
724
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE (id != 2) AND "widgets"."preferred_name" = 'preferred-name-00007'[0m
|
725
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
726
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
727
|
+
--------------------------------------------------------------
|
728
|
+
AttrSimilarTest: test_find_similar_with_one_matching_attribute
|
729
|
+
--------------------------------------------------------------
|
730
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
731
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00007"], ["birthdate", Fri, 18 Apr 2003], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "first-name-00007"], ["last_name", "last-name-00007"], ["preferred_name", "preferred-name-00008"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
732
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
733
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."address" = 'address-00007'[0m
|
734
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."address" = 'address-00007'
|
735
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."birthdate" = '2003-06-09'[0m
|
736
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00008'
|
737
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00008'[0m
|
738
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."preferred_name" = 'preferred-name-00009'
|
739
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
740
|
+
[1m[35m (0.1ms)[0m begin transaction
|
741
|
+
-----------------------------------------------------------------
|
742
|
+
AttrSimilarTest: test_find_similar_with_three_matching_attributes
|
743
|
+
-----------------------------------------------------------------
|
744
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
745
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00008"], ["birthdate", Wed, 04 Sep 2002], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "first-name-00009"], ["last_name", "last-name-00009"], ["preferred_name", "preferred-name-00010"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
746
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
747
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."address" = 'address-00008'
|
748
|
+
[1m[36mWidget Load (0.1ms)[0m [1mSELECT "widgets".* FROM "widgets" WHERE "widgets"."address" = 'address-00008'[0m
|
749
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."birthdate" = '2000-08-27'
|
750
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00009'[0m
|
751
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00009'
|
752
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00009'[0m
|
753
|
+
[1m[35mWidget Load (0.2ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00009'
|
754
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."preferred_name" = 'preferred-name-00011'[0m
|
755
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
756
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
757
|
+
---------------------------------------------------------------
|
758
|
+
AttrSimilarTest: test_find_similar_with_two_matching_attributes
|
759
|
+
---------------------------------------------------------------
|
760
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
761
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00009"], ["birthdate", Mon, 27 Apr 1998], ["created_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00], ["first_name", "first-name-00010"], ["last_name", "last-name-00010"], ["preferred_name", "preferred-name-00012"], ["updated_at", Mon, 09 Dec 2013 04:31:13 UTC +00:00]]
|
762
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
763
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."address" = 'address-00009'[0m
|
764
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."address" = 'address-00009'
|
765
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."birthdate" = '2000-09-10'[0m
|
766
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00010'
|
767
|
+
[1m[36mWidget Load (0.1ms)[0m [1mSELECT "widgets".* FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00010'[0m
|
768
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00011'
|
769
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."preferred_name" = 'preferred-name-00013'[0m
|
770
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
771
|
+
[1m[36m (168.0ms)[0m [1mCREATE TABLE "manufacturers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) [0m
|
772
|
+
[1m[35m (176.0ms)[0m CREATE TABLE "widgets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "address" varchar(255), "birthdate" date, "first_name" varchar(255), "last_name" varchar(255), "preferred_name" varchar(255), "created_at" datetime, "updated_at" datetime)
|
773
|
+
[1m[36m (163.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
774
|
+
[1m[35m (155.1ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
775
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
776
|
+
[1m[35m (199.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131027192834')
|
777
|
+
[1m[36m (155.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131027192625')[0m
|
778
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
779
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
780
|
+
----------------------------
|
781
|
+
AttrSimilarTest: test_case_0
|
782
|
+
----------------------------
|
783
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
784
|
+
[1m[36mSQL (4.9ms)[0m [1mINSERT INTO "widgets" ("address", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["address", ""], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "Not John"], ["last_name", ""], ["preferred_name", ""], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
785
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
786
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'John'[0m
|
787
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
788
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
789
|
+
----------------------------
|
790
|
+
AttrSimilarTest: test_case_1
|
791
|
+
----------------------------
|
792
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
793
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "blah"], ["birthdate", Fri, 03 Jul 1987], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "John"], ["last_name", "blah"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
794
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
795
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'John'[0m
|
796
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."first_name" = 'John'
|
797
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
798
|
+
[1m[35m (0.1ms)[0m begin transaction
|
799
|
+
----------------------------
|
800
|
+
AttrSimilarTest: test_case_2
|
801
|
+
----------------------------
|
802
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
803
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "blah"], ["birthdate", Thu, 27 Dec 2012], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "Not John"], ["last_name", "blah"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
804
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
805
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'John'
|
806
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
807
|
+
[1m[35m (0.1ms)[0m begin transaction
|
808
|
+
----------------------------
|
809
|
+
AttrSimilarTest: test_case_3
|
810
|
+
----------------------------
|
811
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
812
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "blah"], ["birthdate", Thu, 13 Nov 1997], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
813
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
814
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'John'
|
815
|
+
[1m[36mWidget Load (0.2ms)[0m [1mSELECT "widgets".* FROM "widgets" WHERE "widgets"."first_name" = 'John'[0m
|
816
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'Smith'
|
817
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
818
|
+
[1m[35m (0.1ms)[0m begin transaction
|
819
|
+
-----------------------------
|
820
|
+
AttrSimilarTest: test_case_3a
|
821
|
+
-----------------------------
|
822
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
823
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "widgets" ("created_at", "first_name", "last_name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "Calvin"], ["last_name", "Hobbes"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
824
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
825
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'Homer'
|
826
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'Simpson'[0m
|
827
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
828
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
829
|
+
----------------------------
|
830
|
+
AttrSimilarTest: test_case_4
|
831
|
+
----------------------------
|
832
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
833
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "123 Main St"], ["birthdate", Sat, 13 Dec 2003], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
834
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
835
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."address" = '123 Main St'[0m
|
836
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."address" = '123 Main St'
|
837
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'John'[0m
|
838
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."first_name" = 'John'
|
839
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'Smith'[0m
|
840
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
841
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
842
|
+
----------------------------
|
843
|
+
AttrSimilarTest: test_case_5
|
844
|
+
----------------------------
|
845
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
846
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "123 Main St"], ["birthdate", Tue, 11 Sep 1990], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "John"], ["last_name", "Doe"], ["preferred_name", "blah"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
847
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
848
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
849
|
+
[1m[35m (0.1ms)[0m begin transaction
|
850
|
+
---------------------------------------------------
|
851
|
+
AttrSimilarTest: test_find_similar_multiple_widgets
|
852
|
+
---------------------------------------------------
|
853
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
854
|
+
[1m[35mSQL (0.8ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00001"], ["birthdate", Thu, 20 Nov 2003], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "first-name-00001"], ["last_name", "last-name-00001"], ["preferred_name", "preferred-name-00001"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
855
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
856
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
857
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00002"], ["birthdate", Mon, 03 Aug 1987], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "first-name-00002"], ["last_name", "last-name-00002"], ["preferred_name", "preferred-name-00002"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
858
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
859
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
860
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00002"], ["birthdate", Thu, 03 May 2007], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "first-name-00002"], ["last_name", "last-name-00002"], ["preferred_name", "preferred-name-00003"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
861
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
862
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE (id != 3) AND "widgets"."address" = 'address-00002'
|
863
|
+
[1m[36mWidget Load (0.1ms)[0m [1mSELECT "widgets".* FROM "widgets" WHERE (id != 3) AND "widgets"."address" = 'address-00002'[0m
|
864
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE (id != 3) AND "widgets"."birthdate" = '2007-05-03'
|
865
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE (id != 3) AND "widgets"."first_name" = 'first-name-00002'[0m
|
866
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE (id != 3) AND "widgets"."first_name" = 'first-name-00002'
|
867
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE (id != 3) AND "widgets"."last_name" = 'last-name-00002'[0m
|
868
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE (id != 3) AND "widgets"."last_name" = 'last-name-00002'
|
869
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE (id != 3) AND "widgets"."preferred_name" = 'preferred-name-00003'[0m
|
870
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
871
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
872
|
+
----------------------------------------------------------------
|
873
|
+
AttrSimilarTest: test_find_similar_with_five_matching_attributes
|
874
|
+
----------------------------------------------------------------
|
875
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
876
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00003"], ["birthdate", Fri, 25 Jun 1993], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "first-name-00003"], ["last_name", "last-name-00003"], ["preferred_name", "preferred-name-00004"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
877
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
878
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."address" = 'address-00003'[0m
|
879
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."address" = 'address-00003'
|
880
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."birthdate" = '1993-06-25'[0m
|
881
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."birthdate" = '1993-06-25'
|
882
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00003'[0m
|
883
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00003'
|
884
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00003'[0m
|
885
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00003'
|
886
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."preferred_name" = 'preferred-name-00004'[0m
|
887
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."preferred_name" = 'preferred-name-00004'
|
888
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
889
|
+
[1m[35m (0.1ms)[0m begin transaction
|
890
|
+
----------------------------------------------------------------
|
891
|
+
AttrSimilarTest: test_find_similar_with_four_matching_attributes
|
892
|
+
----------------------------------------------------------------
|
893
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
894
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00004"], ["birthdate", Tue, 29 Jun 2010], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "first-name-00004"], ["last_name", "last-name-00004"], ["preferred_name", "preferred-name-00005"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
895
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
896
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."address" = 'address-00004'
|
897
|
+
[1m[36mWidget Load (0.2ms)[0m [1mSELECT "widgets".* FROM "widgets" WHERE "widgets"."address" = 'address-00004'[0m
|
898
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."birthdate" = '1994-10-30'
|
899
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00004'[0m
|
900
|
+
[1m[35mWidget Load (0.2ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00004'
|
901
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00004'[0m
|
902
|
+
[1m[35mWidget Load (0.2ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00004'
|
903
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."preferred_name" = 'preferred-name-00005'[0m
|
904
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."preferred_name" = 'preferred-name-00005'
|
905
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
906
|
+
[1m[35m (0.1ms)[0m begin transaction
|
907
|
+
--------------------------------------------------------------
|
908
|
+
AttrSimilarTest: test_find_similar_with_no_matching_attributes
|
909
|
+
--------------------------------------------------------------
|
910
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
911
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00005"], ["birthdate", Mon, 04 Apr 2011], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "first-name-00005"], ["last_name", "last-name-00005"], ["preferred_name", "preferred-name-00006"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
912
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
913
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
914
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00006"], ["birthdate", Tue, 11 Nov 2008], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "first-name-00006"], ["last_name", "last-name-00006"], ["preferred_name", "preferred-name-00007"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
915
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
916
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE (id != 2) AND "widgets"."address" = 'address-00006'[0m
|
917
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE (id != 2) AND "widgets"."birthdate" = '2008-11-11'
|
918
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE (id != 2) AND "widgets"."first_name" = 'first-name-00006'[0m
|
919
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE (id != 2) AND "widgets"."last_name" = 'last-name-00006'
|
920
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE (id != 2) AND "widgets"."preferred_name" = 'preferred-name-00007'[0m
|
921
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
922
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
923
|
+
--------------------------------------------------------------
|
924
|
+
AttrSimilarTest: test_find_similar_with_one_matching_attribute
|
925
|
+
--------------------------------------------------------------
|
926
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
927
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00007"], ["birthdate", Wed, 20 Sep 2006], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "first-name-00007"], ["last_name", "last-name-00007"], ["preferred_name", "preferred-name-00008"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
928
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
929
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."address" = 'address-00007'[0m
|
930
|
+
[1m[35mWidget Load (0.2ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."address" = 'address-00007'
|
931
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."birthdate" = '1999-02-09'[0m
|
932
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00008'
|
933
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00008'[0m
|
934
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."preferred_name" = 'preferred-name-00009'
|
935
|
+
[1m[36m (0.2ms)[0m [1mrollback transaction[0m
|
936
|
+
[1m[35m (0.1ms)[0m begin transaction
|
937
|
+
-----------------------------------------------------------------
|
938
|
+
AttrSimilarTest: test_find_similar_with_three_matching_attributes
|
939
|
+
-----------------------------------------------------------------
|
940
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
941
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["address", "address-00008"], ["birthdate", Wed, 28 Oct 1987], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "first-name-00009"], ["last_name", "last-name-00009"], ["preferred_name", "preferred-name-00010"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
942
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
943
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."address" = 'address-00008'
|
944
|
+
[1m[36mWidget Load (0.2ms)[0m [1mSELECT "widgets".* FROM "widgets" WHERE "widgets"."address" = 'address-00008'[0m
|
945
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."birthdate" = '2004-02-18'
|
946
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00009'[0m
|
947
|
+
[1m[35mWidget Load (0.2ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00009'
|
948
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00009'[0m
|
949
|
+
[1m[35mWidget Load (0.2ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00009'
|
950
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."preferred_name" = 'preferred-name-00011'[0m
|
951
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
952
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
953
|
+
---------------------------------------------------------------
|
954
|
+
AttrSimilarTest: test_find_similar_with_two_matching_attributes
|
955
|
+
---------------------------------------------------------------
|
956
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
957
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "widgets" ("address", "birthdate", "created_at", "first_name", "last_name", "preferred_name", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["address", "address-00009"], ["birthdate", Fri, 09 Sep 1994], ["created_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00], ["first_name", "first-name-00010"], ["last_name", "last-name-00010"], ["preferred_name", "preferred-name-00012"], ["updated_at", Mon, 09 Dec 2013 04:32:29 UTC +00:00]]
|
958
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
959
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."address" = 'address-00009'[0m
|
960
|
+
[1m[35mWidget Load (0.1ms)[0m SELECT "widgets".* FROM "widgets" WHERE "widgets"."address" = 'address-00009'
|
961
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."birthdate" = '2006-12-10'[0m
|
962
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00010'
|
963
|
+
[1m[36mWidget Load (0.1ms)[0m [1mSELECT "widgets".* FROM "widgets" WHERE "widgets"."first_name" = 'first-name-00010'[0m
|
964
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "widgets" WHERE "widgets"."last_name" = 'last-name-00011'
|
965
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "widgets" WHERE "widgets"."preferred_name" = 'preferred-name-00013'[0m
|
966
|
+
[1m[35m (0.3ms)[0m rollback transaction
|