· 8 years ago · May 17, 2018, 07:00 AM
1Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000133) SELECT sqlite_version(*)
2Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000094) DROP TABLE IF EXISTS "videos"
3Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000015) DROP TABLE IF EXISTS "people"
4Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000014) DROP TABLE IF EXISTS "people"
5Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000014) DROP TABLE IF EXISTS "people"
6Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000014) DROP TABLE IF EXISTS "people"
7Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000014) DROP TABLE IF EXISTS "person_videos"
8Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000022) PRAGMA table_info("videos")
9Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000369) CREATE TABLE "videos" ("id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "name" VARCHAR(32) NOT NULL)
10Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000110) CREATE INDEX "index_videos_name" ON "videos" ("name")
11Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000009) PRAGMA table_info("people")
12Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000120) CREATE TABLE "people" ("id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "name" VARCHAR(32) NOT NULL, "type" VARCHAR NOT NULL)
13Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000099) CREATE INDEX "index_people_name" ON "people" ("name")
14Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000096) CREATE INDEX "index_people_type" ON "people" ("type")
15Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000018) PRAGMA table_info("people")
16Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000013) PRAGMA table_info("people")
17Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000011) PRAGMA table_info("people")
18Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000009) PRAGMA table_info("person_videos")
19Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000173) CREATE TABLE "person_videos" ("video_id" INTEGER NOT NULL, "actor_id" INTEGER NOT NULL, "writer_id" INTEGER NOT NULL, "director_id" INTEGER NOT NULL, PRIMARY KEY("video_id", "actor_id", "writer_id", "director_id"))
20Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000052) INSERT INTO "people" ("name", "type") VALUES ('One', 'Director')
21Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000052) INSERT INTO "people" ("name", "type") VALUES ('Two', 'Director')
22Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000050) INSERT INTO "people" ("name", "type") VALUES ('Three', 'Writer')
23Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000050) INSERT INTO "people" ("name", "type") VALUES ('Four', 'Actor')
24------
25Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000045) INSERT INTO "videos" ("name") VALUES ('UP')
26Thu, 10 Dec 2009 16:41:09 GMT ~ debug ~ (0.000065) SELECT "video_id", "actor_id", "writer_id", "director_id" FROM "person_videos" WHERE ("video_id" = 1 AND "director_id" = 1) ORDER BY "video_id", "actor_id", "writer_id", "director_id" LIMIT 1
27/Users/tjholowaychuk/Scripts/gems/dm-core/lib/dm-core/adapters/data_objects_adapter.rb:61:in `execute_non_query': person_videos.actor_id may not be NULL (DataObjects::IntegrityError)
28 from /Users/tjholowaychuk/Scripts/gems/dm-core/lib/dm-core/adapters/data_objects_adapter.rb:61:in `execute'
29 from /Users/tjholowaychuk/Scripts/gems/dm-core/lib/dm-core/adapters/data_objects_adapter.rb:269:in `with_connection'
30 from /Users/tjholowaychuk/Scripts/gems/dm-core/lib/dm-core/adapters/data_objects_adapter.rb:59:in `execute'
31 from /Users/tjholowaychuk/Scripts/gems/dm-core/lib/dm-core/adapters/data_objects_adapter.rb:110:in `create'
32 from /Users/tjholowaychuk/Scripts/gems/dm-core/lib/dm-core/adapters/data_objects_adapter.rb:83:in `each'
33 from /Users/tjholowaychuk/Scripts/gems/dm-core/lib/dm-core/adapters/data_objects_adapter.rb:83:in `create'
34 from /Users/tjholowaychuk/Scripts/gems/dm-core/lib/dm-core/repository.rb:129:in `create'
35 from /Users/tjholowaychuk/Scripts/gems/dm-core/lib/dm-core/resource.rb:864:in `_create'
36 ... 14 levels...
37 from /Users/tjholowaychuk/Scripts/gems/dm-core/lib/dm-core/associations/many_to_many.rb:455:in `all?'
38 from /Users/tjholowaychuk/Scripts/gems/dm-core/lib/dm-core/associations/many_to_many.rb:455:in `_save'
39 from /Users/tjholowaychuk/Scripts/gems/dm-core/lib/dm-core/collection.rb:869:in `save'
40 from _test3.rb:49