multipluck 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +10 -6
- data/lib/multipluck.rb +1 -1
- data/lib/multipluck/pluck.rb +31 -0
- data/lib/multipluck/version.rb +1 -1
- data/test/dummy/log/development.log +5 -0
- data/test/dummy/log/test.log +435 -0
- metadata +9 -11
- data/lib/multipluck/calculations.rb +0 -23
- data/test/dummy/test/unit/widget_test.rb +0 -7
data/README.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
Multipluck
|
|
1
|
+
## Multipluck [](http://travis-ci.org/hanzq/multipluck)
|
|
2
|
+
|
|
3
|
+
Multipluck is a Ruby gem for Rails that enhances the .pluck function to select multiple columns.
|
|
4
|
+
|
|
5
|
+
Currently limited to Rails 3.2.3+, but I plan to change that.
|
|
2
6
|
|
|
3
7
|
### Usage
|
|
4
8
|
|
|
@@ -11,13 +15,13 @@ User.pluck([:id, :name])
|
|
|
11
15
|
|
|
12
16
|
### Installation
|
|
13
17
|
|
|
14
|
-
1. Add the gem to your Gemfile
|
|
18
|
+
1. Add the gem to your Gemfile
|
|
15
19
|
|
|
16
|
-
```ruby
|
|
17
|
-
gem 'multipluck'
|
|
18
|
-
```
|
|
20
|
+
```ruby
|
|
21
|
+
gem 'multipluck'
|
|
22
|
+
```
|
|
19
23
|
|
|
20
|
-
2. Pluck forth!
|
|
24
|
+
2. Pluck forth!
|
|
21
25
|
|
|
22
26
|
|
|
23
27
|
This project rocks and uses MIT-LICENSE. Yes it does.
|
data/lib/multipluck.rb
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
module Multipluck
|
|
3
|
+
module Pluck
|
|
4
|
+
extend ActiveSupport::Concern
|
|
5
|
+
|
|
6
|
+
included do
|
|
7
|
+
# Preserve the original pluck functionality
|
|
8
|
+
alias_method :single_column_pluck, :pluck
|
|
9
|
+
|
|
10
|
+
def pluck(column_name_or_array)
|
|
11
|
+
return single_column_pluck(column_name_or_array) unless column_name_or_array.instance_of?(Array)
|
|
12
|
+
|
|
13
|
+
column_names = column_name_or_array.map(&:to_s)
|
|
14
|
+
|
|
15
|
+
# Array of rows
|
|
16
|
+
rows = klass.connection.select_all(select(column_names).arel)
|
|
17
|
+
|
|
18
|
+
# Row is a hash of of 'column_name' => value
|
|
19
|
+
rows.map! do |row|
|
|
20
|
+
attrs = klass.initialize_attributes(row)
|
|
21
|
+
column_names.map do |col_name|
|
|
22
|
+
klass.type_cast_attribute(col_name, attrs)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
ActiveRecord::Calculations.send(:include, Multipluck::Pluck)
|
data/lib/multipluck/version.rb
CHANGED
|
@@ -24,3 +24,8 @@ Migrating to CreateWidgets (20120422025545)
|
|
|
24
24
|
[1m[35m (1.3ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
|
25
25
|
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
|
26
26
|
[1m[35m (1.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20120422025545')
|
|
27
|
+
[1m[36m (0.7ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
|
28
|
+
Migrating to CreateWidgets (20120422025545)
|
|
29
|
+
[1m[35m (0.5ms)[0m select sqlite_version(*)
|
|
30
|
+
[1m[36m (0.1ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
|
31
|
+
[1m[35m (0.1ms)[0m PRAGMA index_list("widgets")
|
data/test/dummy/log/test.log
CHANGED
|
@@ -534,3 +534,438 @@ SQLite3::BusyException: cannot rollback transaction - SQL statements in progress
|
|
|
534
534
|
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
535
535
|
[1m[35m (0.0ms)[0m SELECT an_int FROM "widgets"
|
|
536
536
|
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
537
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
538
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
539
|
+
[1m[36mSQL (33.6ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 01:42:16 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 01:42:16 UTC +00:00]]
|
|
540
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
541
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int FROM "widgets" [0m
|
|
542
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
|
543
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
544
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
545
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 01:42:16 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 01:42:16 UTC +00:00]]
|
|
546
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
547
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
548
|
+
[1m[35m (0.1ms)[0m SELECT a_string, an_int FROM "widgets"
|
|
549
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
550
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
551
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
552
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 01:42:16 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 01:42:16 UTC +00:00]]
|
|
553
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
554
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
555
|
+
[1m[36mSQL (1.0ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "dog"], ["an_int", 12], ["created_at", Mon, 23 Apr 2012 01:42:16 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 01:42:16 UTC +00:00]]
|
|
556
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
557
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
558
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
559
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
560
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
561
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 01:42:16 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 01:42:16 UTC +00:00]]
|
|
562
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
563
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
564
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 12], ["created_at", Mon, 23 Apr 2012 01:42:16 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 01:42:16 UTC +00:00]]
|
|
565
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
566
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
567
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
568
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
569
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
570
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 01:42:16 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 01:42:16 UTC +00:00]]
|
|
571
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
572
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
573
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
574
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
575
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
576
|
+
[1m[36mSQL (32.0ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 01:42:28 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 01:42:28 UTC +00:00]]
|
|
577
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
578
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int FROM "widgets" [0m
|
|
579
|
+
[1m[35m (1.9ms)[0m rollback transaction
|
|
580
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
581
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
582
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 01:42:29 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 01:42:29 UTC +00:00]]
|
|
583
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
584
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
585
|
+
[1m[35m (0.0ms)[0m SELECT a_string, an_int FROM "widgets"
|
|
586
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
587
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
588
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
589
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 01:42:29 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 01:42:29 UTC +00:00]]
|
|
590
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
591
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
592
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "dog"], ["an_int", 12], ["created_at", Mon, 23 Apr 2012 01:42:29 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 01:42:29 UTC +00:00]]
|
|
593
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
594
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
595
|
+
[1m[35m (0.8ms)[0m rollback transaction
|
|
596
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
597
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
598
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 01:42:29 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 01:42:29 UTC +00:00]]
|
|
599
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
600
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
601
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 12], ["created_at", Mon, 23 Apr 2012 01:42:29 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 01:42:29 UTC +00:00]]
|
|
602
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
603
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
604
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
605
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
606
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
607
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 01:42:29 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 01:42:29 UTC +00:00]]
|
|
608
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
609
|
+
[1m[35m (0.0ms)[0m SELECT an_int FROM "widgets"
|
|
610
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
611
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
|
612
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
613
|
+
[1m[36mSQL (32.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 02:17:41 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 02:17:41 UTC +00:00]]
|
|
614
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
615
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int FROM "widgets" [0m
|
|
616
|
+
[1m[35m (2.8ms)[0m rollback transaction
|
|
617
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
618
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
619
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 02:17:41 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 02:17:41 UTC +00:00]]
|
|
620
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
621
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
622
|
+
[1m[35m (0.0ms)[0m SELECT a_string, an_int FROM "widgets"
|
|
623
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
|
624
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
625
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
626
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 02:17:41 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 02:17:41 UTC +00:00]]
|
|
627
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
628
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
629
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "dog"], ["an_int", 12], ["created_at", Mon, 23 Apr 2012 02:17:41 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 02:17:41 UTC +00:00]]
|
|
630
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
631
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
632
|
+
[1m[35m (1.2ms)[0m rollback transaction
|
|
633
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
634
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
635
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 02:17:41 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 02:17:41 UTC +00:00]]
|
|
636
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
637
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
638
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 12], ["created_at", Mon, 23 Apr 2012 02:17:41 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 02:17:41 UTC +00:00]]
|
|
639
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
640
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
641
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
642
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
643
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
644
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 02:17:41 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 02:17:41 UTC +00:00]]
|
|
645
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
646
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
647
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
648
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
649
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
650
|
+
[1m[36mSQL (31.6ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 02:40:08 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 02:40:08 UTC +00:00]]
|
|
651
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
652
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int FROM "widgets" [0m
|
|
653
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
654
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
655
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
656
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 02:40:08 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 02:40:08 UTC +00:00]]
|
|
657
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
658
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
659
|
+
[1m[35m (0.0ms)[0m SELECT a_string, an_int FROM "widgets"
|
|
660
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
661
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
662
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
663
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 02:40:08 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 02:40:08 UTC +00:00]]
|
|
664
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
665
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
666
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "dog"], ["an_int", 12], ["created_at", Mon, 23 Apr 2012 02:40:08 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 02:40:08 UTC +00:00]]
|
|
667
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
668
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
669
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
670
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
671
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
672
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 02:40:08 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 02:40:08 UTC +00:00]]
|
|
673
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
674
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
675
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 12], ["created_at", Mon, 23 Apr 2012 02:40:08 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 02:40:08 UTC +00:00]]
|
|
676
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
677
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
678
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
679
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
680
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
681
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Mon, 23 Apr 2012 02:40:08 UTC +00:00], ["updated_at", Mon, 23 Apr 2012 02:40:08 UTC +00:00]]
|
|
682
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
683
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
684
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
685
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
|
686
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
687
|
+
[1m[36mSQL (14.0ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 00:50:45 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:50:45 UTC +00:00]]
|
|
688
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
689
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int FROM "widgets" [0m
|
|
690
|
+
[1m[35m (1.1ms)[0m rollback transaction
|
|
691
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
692
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
693
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 00:50:45 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:50:45 UTC +00:00]]
|
|
694
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
695
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
696
|
+
[1m[35m (0.0ms)[0m SELECT a_string, an_int FROM "widgets"
|
|
697
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
698
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
699
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
700
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 00:50:45 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:50:45 UTC +00:00]]
|
|
701
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
702
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
703
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "dog"], ["an_int", 12], ["created_at", Tue, 24 Apr 2012 00:50:45 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:50:45 UTC +00:00]]
|
|
704
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
705
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
706
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
707
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
708
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
709
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 00:50:45 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:50:45 UTC +00:00]]
|
|
710
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
711
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
712
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 12], ["created_at", Tue, 24 Apr 2012 00:50:45 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:50:45 UTC +00:00]]
|
|
713
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
714
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
715
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
716
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
717
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
718
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 00:50:45 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:50:45 UTC +00:00]]
|
|
719
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
720
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
721
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
|
722
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
723
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
724
|
+
[1m[36mSQL (10.6ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 00:52:09 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:52:09 UTC +00:00]]
|
|
725
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
726
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int FROM "widgets" [0m
|
|
727
|
+
[1m[35m (1.6ms)[0m rollback transaction
|
|
728
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
729
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
730
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 00:52:09 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:52:09 UTC +00:00]]
|
|
731
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
732
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
733
|
+
[1m[35m (0.1ms)[0m SELECT a_string, an_int FROM "widgets"
|
|
734
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
735
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
736
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
737
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 00:52:09 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:52:09 UTC +00:00]]
|
|
738
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
739
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
740
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "dog"], ["an_int", 12], ["created_at", Tue, 24 Apr 2012 00:52:09 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:52:09 UTC +00:00]]
|
|
741
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
742
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
743
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
744
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
745
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
746
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 00:52:09 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:52:09 UTC +00:00]]
|
|
747
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
748
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
749
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 12], ["created_at", Tue, 24 Apr 2012 00:52:09 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:52:09 UTC +00:00]]
|
|
750
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
751
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
752
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
753
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
754
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
755
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 00:52:09 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:52:09 UTC +00:00]]
|
|
756
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
757
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
758
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
759
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
|
760
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
761
|
+
[1m[36mSQL (10.1ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 00:53:47 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:53:47 UTC +00:00]]
|
|
762
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
763
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int FROM "widgets" [0m
|
|
764
|
+
[1m[35m (1.6ms)[0m rollback transaction
|
|
765
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
766
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
767
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 00:53:47 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:53:47 UTC +00:00]]
|
|
768
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
769
|
+
[1m[36m (0.7ms)[0m [1mSELECT [:an_int, :a_string] FROM "widgets" [0m
|
|
770
|
+
SQLite3::SQLException: no such column: :an_int, :a_string: SELECT [:an_int, :a_string] FROM "widgets"
|
|
771
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
772
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
773
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
774
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 00:53:47 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:53:47 UTC +00:00]]
|
|
775
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
776
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
777
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "dog"], ["an_int", 12], ["created_at", Tue, 24 Apr 2012 00:53:47 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:53:47 UTC +00:00]]
|
|
778
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
779
|
+
[1m[35m (0.1ms)[0m SELECT [:an_int, :a_string] FROM "widgets"
|
|
780
|
+
SQLite3::SQLException: no such column: :an_int, :a_string: SELECT [:an_int, :a_string] FROM "widgets"
|
|
781
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
782
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
783
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
784
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 00:53:47 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:53:47 UTC +00:00]]
|
|
785
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
786
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
787
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 12], ["created_at", Tue, 24 Apr 2012 00:53:47 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:53:47 UTC +00:00]]
|
|
788
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
789
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int FROM "widgets" [0m
|
|
790
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
791
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
792
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
793
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 00:53:47 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 00:53:47 UTC +00:00]]
|
|
794
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
795
|
+
[1m[36m (0.1ms)[0m [1mSELECT [:an_int, :an_int] FROM "widgets" [0m
|
|
796
|
+
SQLite3::SQLException: no such column: :an_int, :an_int: SELECT [:an_int, :an_int] FROM "widgets"
|
|
797
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
798
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
|
799
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
800
|
+
[1m[36mSQL (17.1ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:05:39 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:05:39 UTC +00:00]]
|
|
801
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
802
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int FROM "widgets" [0m
|
|
803
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
804
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
805
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
806
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:05:39 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:05:39 UTC +00:00]]
|
|
807
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
808
|
+
[1m[36m (0.1ms)[0m [1mSELECT [:an_int, :a_string] FROM "widgets" [0m
|
|
809
|
+
SQLite3::SQLException: no such column: :an_int, :a_string: SELECT [:an_int, :a_string] FROM "widgets"
|
|
810
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
811
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
812
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
813
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:05:39 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:05:39 UTC +00:00]]
|
|
814
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
815
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
816
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "dog"], ["an_int", 12], ["created_at", Tue, 24 Apr 2012 01:05:39 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:05:39 UTC +00:00]]
|
|
817
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
818
|
+
[1m[35m (0.1ms)[0m SELECT [:an_int, :a_string] FROM "widgets"
|
|
819
|
+
SQLite3::SQLException: no such column: :an_int, :a_string: SELECT [:an_int, :a_string] FROM "widgets"
|
|
820
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
821
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
822
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
823
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:05:39 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:05:39 UTC +00:00]]
|
|
824
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
825
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
826
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 12], ["created_at", Tue, 24 Apr 2012 01:05:39 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:05:39 UTC +00:00]]
|
|
827
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
828
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int FROM "widgets" [0m
|
|
829
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
830
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
831
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
832
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:05:39 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:05:39 UTC +00:00]]
|
|
833
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
834
|
+
[1m[36m (0.1ms)[0m [1mSELECT [:an_int, :an_int] FROM "widgets" [0m
|
|
835
|
+
SQLite3::SQLException: no such column: :an_int, :an_int: SELECT [:an_int, :an_int] FROM "widgets"
|
|
836
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
837
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
838
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
839
|
+
[1m[36mSQL (10.4ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:06:44 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:06:44 UTC +00:00]]
|
|
840
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
841
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int FROM "widgets" [0m
|
|
842
|
+
[1m[35m (1.7ms)[0m rollback transaction
|
|
843
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
844
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
845
|
+
[1m[36mSQL (11.4ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:06:53 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:06:53 UTC +00:00]]
|
|
846
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
847
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
848
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 12], ["created_at", Tue, 24 Apr 2012 01:06:53 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:06:53 UTC +00:00]]
|
|
849
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
850
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
851
|
+
[1m[36m (1.8ms)[0m [1mrollback transaction[0m
|
|
852
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
|
853
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
854
|
+
[1m[36mSQL (10.1ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:06:58 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:06:58 UTC +00:00]]
|
|
855
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
856
|
+
[1m[36m (0.1ms)[0m [1mSELECT [:an_int, :an_int] FROM "widgets" [0m
|
|
857
|
+
SQLite3::SQLException: no such column: :an_int, :an_int: SELECT [:an_int, :an_int] FROM "widgets"
|
|
858
|
+
[1m[35m (1.9ms)[0m rollback transaction
|
|
859
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
860
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
861
|
+
[1m[36mSQL (13.6ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:09:22 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:09:22 UTC +00:00]]
|
|
862
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
863
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int FROM "widgets" [0m
|
|
864
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
|
865
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
866
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
867
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:09:22 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:09:22 UTC +00:00]]
|
|
868
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
869
|
+
[1m[36m (0.1ms)[0m [1mSELECT [:an_int, :a_string] FROM "widgets" [0m
|
|
870
|
+
SQLite3::SQLException: no such column: :an_int, :a_string: SELECT [:an_int, :a_string] FROM "widgets"
|
|
871
|
+
[1m[35m (0.3ms)[0m rollback transaction
|
|
872
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
873
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
874
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:09:22 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:09:22 UTC +00:00]]
|
|
875
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
876
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
877
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "dog"], ["an_int", 12], ["created_at", Tue, 24 Apr 2012 01:09:22 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:09:22 UTC +00:00]]
|
|
878
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
879
|
+
[1m[35m (0.1ms)[0m SELECT [:an_int, :a_string] FROM "widgets"
|
|
880
|
+
SQLite3::SQLException: no such column: :an_int, :a_string: SELECT [:an_int, :a_string] FROM "widgets"
|
|
881
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
882
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
883
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
884
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:09:22 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:09:22 UTC +00:00]]
|
|
885
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
886
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
887
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 12], ["created_at", Tue, 24 Apr 2012 01:09:22 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:09:22 UTC +00:00]]
|
|
888
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
889
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int FROM "widgets" [0m
|
|
890
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
891
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
|
892
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
893
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:09:22 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:09:22 UTC +00:00]]
|
|
894
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
895
|
+
[1m[36m (0.1ms)[0m [1mSELECT [:an_int, :an_int] FROM "widgets" [0m
|
|
896
|
+
SQLite3::SQLException: no such column: :an_int, :an_int: SELECT [:an_int, :an_int] FROM "widgets"
|
|
897
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
898
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
|
899
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
900
|
+
[1m[36mSQL (13.2ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:09:58 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:09:58 UTC +00:00]]
|
|
901
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
902
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int FROM "widgets" [0m
|
|
903
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
904
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
905
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
906
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:09:58 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:09:58 UTC +00:00]]
|
|
907
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
908
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
909
|
+
[1m[35m (0.1ms)[0m SELECT a_string, an_int FROM "widgets"
|
|
910
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
911
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
912
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
913
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:09:58 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:09:58 UTC +00:00]]
|
|
914
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
915
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
916
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "dog"], ["an_int", 12], ["created_at", Tue, 24 Apr 2012 01:09:58 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:09:58 UTC +00:00]]
|
|
917
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
918
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
919
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
920
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
921
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
922
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:09:58 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:09:58 UTC +00:00]]
|
|
923
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
924
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
925
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 12], ["created_at", Tue, 24 Apr 2012 01:09:58 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:09:58 UTC +00:00]]
|
|
926
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
927
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
928
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
929
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
930
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
931
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:09:58 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:09:58 UTC +00:00]]
|
|
932
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
933
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
934
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
|
935
|
+
[1m[36m (0.8ms)[0m [1mbegin transaction[0m
|
|
936
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
|
937
|
+
[1m[36mSQL (14.4ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:10:48 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:10:48 UTC +00:00]]
|
|
938
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
|
939
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int FROM "widgets" [0m
|
|
940
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
|
941
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
942
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
943
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:10:48 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:10:48 UTC +00:00]]
|
|
944
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
945
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
946
|
+
[1m[35m (0.0ms)[0m SELECT a_string, an_int FROM "widgets"
|
|
947
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
|
948
|
+
[1m[35m (0.0ms)[0m begin transaction
|
|
949
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
950
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "cow"], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:10:48 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:10:48 UTC +00:00]]
|
|
951
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
952
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
953
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", "dog"], ["an_int", 12], ["created_at", Tue, 24 Apr 2012 01:10:48 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:10:48 UTC +00:00]]
|
|
954
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
955
|
+
[1m[36m (0.1ms)[0m [1mSELECT an_int, a_string FROM "widgets" [0m
|
|
956
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
|
957
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
|
958
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
|
959
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:10:48 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:10:48 UTC +00:00]]
|
|
960
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
|
961
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
962
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 12], ["created_at", Tue, 24 Apr 2012 01:10:48 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:10:48 UTC +00:00]]
|
|
963
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
964
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
965
|
+
[1m[36m (1.0ms)[0m [1mrollback transaction[0m
|
|
966
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
967
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
|
968
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "widgets" ("a_bool", "a_datetime", "a_decimal", "a_string", "an_int", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["a_bool", nil], ["a_datetime", nil], ["a_decimal", nil], ["a_string", nil], ["an_int", 5], ["created_at", Tue, 24 Apr 2012 01:10:48 UTC +00:00], ["updated_at", Tue, 24 Apr 2012 01:10:48 UTC +00:00]]
|
|
969
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
|
970
|
+
[1m[35m (0.1ms)[0m SELECT an_int FROM "widgets"
|
|
971
|
+
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: multipluck
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,22 +9,22 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-04-
|
|
12
|
+
date: 2012-04-24 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70163287847220 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
|
-
- -
|
|
19
|
+
- - ! '>='
|
|
20
20
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: 3.2.
|
|
21
|
+
version: 3.2.0
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70163287847220
|
|
25
25
|
- !ruby/object:Gem::Dependency
|
|
26
26
|
name: sqlite3
|
|
27
|
-
requirement: &
|
|
27
|
+
requirement: &70163287846800 !ruby/object:Gem::Requirement
|
|
28
28
|
none: false
|
|
29
29
|
requirements:
|
|
30
30
|
- - ! '>='
|
|
@@ -32,7 +32,7 @@ dependencies:
|
|
|
32
32
|
version: '0'
|
|
33
33
|
type: :development
|
|
34
34
|
prerelease: false
|
|
35
|
-
version_requirements: *
|
|
35
|
+
version_requirements: *70163287846800
|
|
36
36
|
description:
|
|
37
37
|
email:
|
|
38
38
|
- davidwright@gmail.com
|
|
@@ -40,7 +40,7 @@ executables: []
|
|
|
40
40
|
extensions: []
|
|
41
41
|
extra_rdoc_files: []
|
|
42
42
|
files:
|
|
43
|
-
- lib/multipluck/
|
|
43
|
+
- lib/multipluck/pluck.rb
|
|
44
44
|
- lib/multipluck/version.rb
|
|
45
45
|
- lib/multipluck.rb
|
|
46
46
|
- lib/tasks/multipluck_tasks.rake
|
|
@@ -83,7 +83,6 @@ files:
|
|
|
83
83
|
- test/dummy/README.rdoc
|
|
84
84
|
- test/dummy/script/rails
|
|
85
85
|
- test/dummy/test/fixtures/widgets.yml
|
|
86
|
-
- test/dummy/test/unit/widget_test.rb
|
|
87
86
|
- test/multipluck_test.rb
|
|
88
87
|
- test/test_helper.rb
|
|
89
88
|
homepage: https://github.com/hanzq/multipluck
|
|
@@ -147,6 +146,5 @@ test_files:
|
|
|
147
146
|
- test/dummy/README.rdoc
|
|
148
147
|
- test/dummy/script/rails
|
|
149
148
|
- test/dummy/test/fixtures/widgets.yml
|
|
150
|
-
- test/dummy/test/unit/widget_test.rb
|
|
151
149
|
- test/multipluck_test.rb
|
|
152
150
|
- test/test_helper.rb
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
module ActiveRecord
|
|
2
|
-
module Calculations
|
|
3
|
-
# Preserve the original pluck functionality
|
|
4
|
-
alias single_column_pluck pluck
|
|
5
|
-
|
|
6
|
-
def pluck(column_name_or_array)
|
|
7
|
-
return single_column_pluck(column_name_or_array) unless column_name_or_array.instance_of?(Array)
|
|
8
|
-
|
|
9
|
-
column_names = column_name_or_array.map(&:to_s)
|
|
10
|
-
|
|
11
|
-
# Array of rows
|
|
12
|
-
rows = klass.connection.select_all(select(column_names).arel)
|
|
13
|
-
|
|
14
|
-
# Row is a hash of of 'column_name' => value
|
|
15
|
-
rows.map! do |row|
|
|
16
|
-
attrs = klass.initialize_attributes(row)
|
|
17
|
-
column_names.map do |col_name|
|
|
18
|
-
klass.type_cast_attribute(col_name, attrs)
|
|
19
|
-
end
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|