activerecord 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activerecord might be problematic. Click here for more details.
- data/CHANGELOG +7 -0
- data/Rakefile +1 -1
- data/lib/active_record/association_preload.rb +12 -9
- data/lib/active_record/associations.rb +4 -4
- data/lib/active_record/base.rb +2 -2
- data/lib/active_record/calculations.rb +8 -4
- data/lib/active_record/reflection.rb +4 -0
- data/lib/active_record/validations.rb +3 -3
- data/lib/active_record/version.rb +1 -1
- data/test/cases/associations/eager_test.rb +7 -0
- data/test/cases/associations/extension_test.rb +15 -0
- data/test/cases/base_test.rb +18 -0
- data/test/cases/calculations_test.rb +3 -3
- data/test/cases/finder_test.rb +8 -0
- data/test/cases/inheritance_test.rb +1 -1
- data/test/cases/validations_test.rb +7 -0
- metadata +4 -7
- data/test/debug.log +0 -358
- data/test/fixtures/fixture_database.sqlite3 +0 -0
- data/test/fixtures/fixture_database_2.sqlite3 +0 -0
data/CHANGELOG
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
*2.1.2 (October 23rd, 2008)*
|
2
|
+
|
3
|
+
* Added SQL escaping for :limit and :offset in MySQL [Jonathan Wiess]
|
4
|
+
|
5
|
+
* Multiparameter attributes skip time zone conversion for time-only columns #1030 [Geoff Buesing]
|
6
|
+
|
7
|
+
|
1
8
|
*2.1.1 (September 4th, 2008)*
|
2
9
|
|
3
10
|
* Set config.active_record.timestamped_migrations = false to have migrations with numeric prefix instead of UTC timestamp. #446. [Andrew Stone, Nik Wakelin]
|
data/Rakefile
CHANGED
@@ -172,7 +172,7 @@ spec = Gem::Specification.new do |s|
|
|
172
172
|
s.files = s.files + Dir.glob( "#{dir}/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
|
173
173
|
end
|
174
174
|
|
175
|
-
s.add_dependency('activesupport', '= 2.1.
|
175
|
+
s.add_dependency('activesupport', '= 2.1.2' + PKG_BUILD)
|
176
176
|
|
177
177
|
s.files.delete FIXTURES_ROOT + "/fixture_database.sqlite"
|
178
178
|
s.files.delete FIXTURES_ROOT + "/fixture_database_2.sqlite"
|
@@ -95,8 +95,8 @@ module ActiveRecord
|
|
95
95
|
records.each {|record| record.send(reflection.name).loaded}
|
96
96
|
options = reflection.options
|
97
97
|
|
98
|
-
conditions = "t0.#{reflection.primary_key_name}
|
99
|
-
conditions << append_conditions(
|
98
|
+
conditions = "t0.#{reflection.primary_key_name} #{in_or_equals_for_ids(ids)}"
|
99
|
+
conditions << append_conditions(reflection, preload_options)
|
100
100
|
|
101
101
|
associated_records = reflection.klass.find(:all, :conditions => [conditions, ids],
|
102
102
|
:include => options[:include],
|
@@ -222,8 +222,6 @@ module ActiveRecord
|
|
222
222
|
|
223
223
|
table_name = klass.quoted_table_name
|
224
224
|
primary_key = klass.primary_key
|
225
|
-
conditions = "#{table_name}.#{connection.quote_column_name(primary_key)} IN (?)"
|
226
|
-
conditions << append_conditions(options, preload_options)
|
227
225
|
column_type = klass.columns.detect{|c| c.name == primary_key}.type
|
228
226
|
ids = id_map.keys.uniq.map do |id|
|
229
227
|
if column_type == :integer
|
@@ -234,6 +232,8 @@ module ActiveRecord
|
|
234
232
|
id
|
235
233
|
end
|
236
234
|
end
|
235
|
+
conditions = "#{table_name}.#{connection.quote_column_name(primary_key)} #{in_or_equals_for_ids(ids)}"
|
236
|
+
conditions << append_conditions(reflection, preload_options)
|
237
237
|
associated_records = klass.find(:all, :conditions => [conditions, ids],
|
238
238
|
:include => options[:include],
|
239
239
|
:select => options[:select],
|
@@ -248,13 +248,13 @@ module ActiveRecord
|
|
248
248
|
table_name = reflection.klass.quoted_table_name
|
249
249
|
|
250
250
|
if interface = reflection.options[:as]
|
251
|
-
conditions = "#{reflection.klass.quoted_table_name}.#{connection.quote_column_name "#{interface}_id"}
|
251
|
+
conditions = "#{reflection.klass.quoted_table_name}.#{connection.quote_column_name "#{interface}_id"} #{in_or_equals_for_ids(ids)} and #{reflection.klass.quoted_table_name}.#{connection.quote_column_name "#{interface}_type"} = '#{self.base_class.sti_name}'"
|
252
252
|
else
|
253
253
|
foreign_key = reflection.primary_key_name
|
254
|
-
conditions = "#{reflection.klass.quoted_table_name}.#{foreign_key}
|
254
|
+
conditions = "#{reflection.klass.quoted_table_name}.#{foreign_key} #{in_or_equals_for_ids(ids)}"
|
255
255
|
end
|
256
256
|
|
257
|
-
conditions << append_conditions(
|
257
|
+
conditions << append_conditions(reflection, preload_options)
|
258
258
|
|
259
259
|
reflection.klass.find(:all,
|
260
260
|
:select => (preload_options[:select] || options[:select] || "#{table_name}.*"),
|
@@ -270,13 +270,16 @@ module ActiveRecord
|
|
270
270
|
instance_eval("%@#{sql.gsub('@', '\@')}@")
|
271
271
|
end
|
272
272
|
|
273
|
-
def append_conditions(
|
273
|
+
def append_conditions(reflection, preload_options)
|
274
274
|
sql = ""
|
275
|
-
sql << " AND (#{interpolate_sql_for_preload(
|
275
|
+
sql << " AND (#{interpolate_sql_for_preload(reflection.sanitized_conditions)})" if reflection.sanitized_conditions
|
276
276
|
sql << " AND (#{sanitize_sql preload_options[:conditions]})" if preload_options[:conditions]
|
277
277
|
sql
|
278
278
|
end
|
279
279
|
|
280
|
+
def in_or_equals_for_ids(ids)
|
281
|
+
ids.size > 1 ? "IN (?)" : "= ?"
|
282
|
+
end
|
280
283
|
end
|
281
284
|
end
|
282
285
|
end
|
@@ -919,7 +919,7 @@ module ActiveRecord
|
|
919
919
|
# Create the callbacks to update counter cache
|
920
920
|
if options[:counter_cache]
|
921
921
|
cache_column = options[:counter_cache] == true ?
|
922
|
-
"#{self.to_s.underscore.pluralize}_count" :
|
922
|
+
"#{self.to_s.demodulize.underscore.pluralize}_count" :
|
923
923
|
options[:counter_cache]
|
924
924
|
|
925
925
|
method_name = "belongs_to_counter_cache_after_create_for_#{reflection.name}".to_sym
|
@@ -1581,12 +1581,12 @@ module ActiveRecord
|
|
1581
1581
|
|
1582
1582
|
def create_extension_modules(association_id, block_extension, extensions)
|
1583
1583
|
if block_extension
|
1584
|
-
extension_module_name = "#{self.to_s}#{association_id.to_s.camelize}AssociationExtension"
|
1584
|
+
extension_module_name = "#{self.to_s.demodulize}#{association_id.to_s.camelize}AssociationExtension"
|
1585
1585
|
|
1586
1586
|
silence_warnings do
|
1587
|
-
|
1587
|
+
self.parent.const_set(extension_module_name, Module.new(&block_extension))
|
1588
1588
|
end
|
1589
|
-
Array(extensions).push(extension_module_name.constantize)
|
1589
|
+
Array(extensions).push("#{self.parent}::#{extension_module_name}".constantize)
|
1590
1590
|
else
|
1591
1591
|
Array(extensions)
|
1592
1592
|
end
|
data/lib/active_record/base.rb
CHANGED
@@ -2085,7 +2085,7 @@ module ActiveRecord #:nodoc:
|
|
2085
2085
|
end
|
2086
2086
|
|
2087
2087
|
def quote_bound_value(value) #:nodoc:
|
2088
|
-
if value.respond_to?(:map) && !value.is_a?(String)
|
2088
|
+
if value.respond_to?(:map) && !value.is_a?(String) && !value.is_a?(ActiveSupport::Multibyte::Chars)
|
2089
2089
|
if value.respond_to?(:empty?) && value.empty?
|
2090
2090
|
connection.quote(nil)
|
2091
2091
|
else
|
@@ -2632,7 +2632,7 @@ module ActiveRecord #:nodoc:
|
|
2632
2632
|
end
|
2633
2633
|
|
2634
2634
|
def instantiate_time_object(name, values)
|
2635
|
-
if self.class.
|
2635
|
+
if self.class.send(:create_time_zone_conversion_attribute?, name, column_for_attribute(name))
|
2636
2636
|
Time.zone.local(*values)
|
2637
2637
|
else
|
2638
2638
|
Time.time_with_datetime_fallback(@@default_timezone, *values)
|
@@ -217,7 +217,7 @@ module ActiveRecord
|
|
217
217
|
|
218
218
|
sql << " ORDER BY #{options[:order]} " if options[:order]
|
219
219
|
add_limit!(sql, options, scope)
|
220
|
-
sql <<
|
220
|
+
sql << ") #{aggregate_alias}_subquery" if use_workaround
|
221
221
|
sql
|
222
222
|
end
|
223
223
|
|
@@ -278,11 +278,15 @@ module ActiveRecord
|
|
278
278
|
operation = operation.to_s.downcase
|
279
279
|
case operation
|
280
280
|
when 'count' then value.to_i
|
281
|
-
when 'sum' then value
|
282
|
-
when 'avg' then value && value.
|
283
|
-
else
|
281
|
+
when 'sum' then type_cast_using_column(value || '0', column)
|
282
|
+
when 'avg' then value && value.to_d
|
283
|
+
else type_cast_using_column(value, column)
|
284
284
|
end
|
285
285
|
end
|
286
|
+
|
287
|
+
def type_cast_using_column(value, column)
|
288
|
+
column ? column.type_cast(value) : value
|
289
|
+
end
|
286
290
|
end
|
287
291
|
end
|
288
292
|
end
|
@@ -112,6 +112,10 @@ module ActiveRecord
|
|
112
112
|
name == other_aggregation.name && other_aggregation.options && active_record == other_aggregation.active_record
|
113
113
|
end
|
114
114
|
|
115
|
+
def sanitized_conditions #:nodoc:
|
116
|
+
@sanitized_conditions ||= klass.send(:sanitize_sql, options[:conditions]) if options[:conditions]
|
117
|
+
end
|
118
|
+
|
115
119
|
private
|
116
120
|
def derive_class_name
|
117
121
|
name.to_s.camelize
|
@@ -428,7 +428,7 @@ module ActiveRecord
|
|
428
428
|
|
429
429
|
db_cols = begin
|
430
430
|
column_names
|
431
|
-
rescue
|
431
|
+
rescue Exception # To ignore both statement and connection errors
|
432
432
|
[]
|
433
433
|
end
|
434
434
|
names = attr_names.reject { |name| db_cols.include?(name.to_s) }
|
@@ -590,7 +590,7 @@ module ActiveRecord
|
|
590
590
|
# Configuration options:
|
591
591
|
# * <tt>:message</tt> - Specifies a custom error message (default is: "has already been taken").
|
592
592
|
# * <tt>:scope</tt> - One or more columns by which to limit the scope of the uniqueness constraint.
|
593
|
-
# * <tt>:case_sensitive</tt> - Looks for an exact match. Ignored by non-text columns (+
|
593
|
+
# * <tt>:case_sensitive</tt> - Looks for an exact match. Ignored by non-text columns (+true+ by default).
|
594
594
|
# * <tt>:allow_nil</tt> - If set to true, skips this validation if the attribute is +nil+ (default is +false+).
|
595
595
|
# * <tt>:allow_blank</tt> - If set to true, skips this validation if the attribute is blank (default is +false+).
|
596
596
|
# * <tt>:if</tt> - Specifies a method, proc or string to call to determine if the validation should
|
@@ -631,7 +631,7 @@ module ActiveRecord
|
|
631
631
|
# sqlite has case sensitive SELECT query, while MySQL/Postgresql don't.
|
632
632
|
# Hence, this is needed only for sqlite.
|
633
633
|
condition_sql = "LOWER(#{record.class.quoted_table_name}.#{attr_name}) #{attribute_condition(value)}"
|
634
|
-
condition_params = [value.chars.downcase]
|
634
|
+
condition_params = [value.chars.downcase.to_s]
|
635
635
|
end
|
636
636
|
|
637
637
|
if scope = configuration[:scope]
|
@@ -116,6 +116,13 @@ class EagerAssociationTest < ActiveRecord::TestCase
|
|
116
116
|
assert_equal 2, posts.first.comments.size
|
117
117
|
end
|
118
118
|
|
119
|
+
def test_loading_from_an_association_that_has_a_hash_of_conditions
|
120
|
+
assert_nothing_raised do
|
121
|
+
Author.find(:all, :include => :hello_posts_with_hash_conditions)
|
122
|
+
end
|
123
|
+
assert !Author.find(authors(:david).id, :include => :hello_posts_with_hash_conditions).hello_posts.empty?
|
124
|
+
end
|
125
|
+
|
119
126
|
def test_loading_with_no_associations
|
120
127
|
assert_nil Post.find(posts(:authorless).id, :include => :author).author
|
121
128
|
end
|
@@ -3,6 +3,7 @@ require 'models/post'
|
|
3
3
|
require 'models/comment'
|
4
4
|
require 'models/project'
|
5
5
|
require 'models/developer'
|
6
|
+
require 'models/company_in_module'
|
6
7
|
|
7
8
|
class AssociationsExtensionsTest < ActiveRecord::TestCase
|
8
9
|
fixtures :projects, :developers, :developers_projects, :comments, :posts
|
@@ -44,4 +45,18 @@ class AssociationsExtensionsTest < ActiveRecord::TestCase
|
|
44
45
|
david = Marshal.load(Marshal.dump(david))
|
45
46
|
assert_equal projects(:action_controller), david.projects_extended_by_name.find_most_recent
|
46
47
|
end
|
48
|
+
|
49
|
+
|
50
|
+
def test_extension_name
|
51
|
+
extension = Proc.new {}
|
52
|
+
name = :association_name
|
53
|
+
|
54
|
+
assert_equal 'DeveloperAssociationNameAssociationExtension', Developer.send(:create_extension_modules, name, extension, []).first.name
|
55
|
+
assert_equal 'MyApplication::Business::DeveloperAssociationNameAssociationExtension',
|
56
|
+
MyApplication::Business::Developer.send(:create_extension_modules, name, extension, []).first.name
|
57
|
+
assert_equal 'MyApplication::Business::DeveloperAssociationNameAssociationExtension', MyApplication::Business::Developer.send(:create_extension_modules, name, extension, []).first.name
|
58
|
+
assert_equal 'MyApplication::Business::DeveloperAssociationNameAssociationExtension', MyApplication::Business::Developer.send(:create_extension_modules, name, extension, []).first.name
|
59
|
+
end
|
60
|
+
|
61
|
+
|
47
62
|
end
|
data/test/cases/base_test.rb
CHANGED
@@ -1065,6 +1065,24 @@ class BasicsTest < ActiveRecord::TestCase
|
|
1065
1065
|
Time.zone = nil
|
1066
1066
|
Topic.skip_time_zone_conversion_for_attributes = []
|
1067
1067
|
end
|
1068
|
+
|
1069
|
+
def test_multiparameter_attributes_on_time_only_column_with_time_zone_aware_attributes_does_not_do_time_zone_conversion
|
1070
|
+
ActiveRecord::Base.time_zone_aware_attributes = true
|
1071
|
+
ActiveRecord::Base.default_timezone = :utc
|
1072
|
+
Time.zone = ActiveSupport::TimeZone[-28800]
|
1073
|
+
attributes = {
|
1074
|
+
"bonus_time(1i)" => "2000", "bonus_time(2i)" => "1", "bonus_time(3i)" => "1",
|
1075
|
+
"bonus_time(4i)" => "16", "bonus_time(5i)" => "24"
|
1076
|
+
}
|
1077
|
+
topic = Topic.find(1)
|
1078
|
+
topic.attributes = attributes
|
1079
|
+
assert_equal Time.utc(2000, 1, 1, 16, 24, 0), topic.bonus_time
|
1080
|
+
assert topic.bonus_time.utc?
|
1081
|
+
ensure
|
1082
|
+
ActiveRecord::Base.time_zone_aware_attributes = false
|
1083
|
+
ActiveRecord::Base.default_timezone = :local
|
1084
|
+
Time.zone = nil
|
1085
|
+
end
|
1068
1086
|
|
1069
1087
|
def test_multiparameter_attributes_on_time_with_empty_seconds
|
1070
1088
|
attributes = {
|
@@ -18,8 +18,8 @@ class CalculationsTest < ActiveRecord::TestCase
|
|
18
18
|
|
19
19
|
def test_should_average_field
|
20
20
|
value = Account.average(:credit_limit)
|
21
|
-
assert_kind_of
|
22
|
-
|
21
|
+
assert_kind_of BigDecimal, value
|
22
|
+
assert_equal BigDecimal.new('53.0'), value
|
23
23
|
end
|
24
24
|
|
25
25
|
def test_should_return_nil_as_average
|
@@ -273,7 +273,7 @@ class CalculationsTest < ActiveRecord::TestCase
|
|
273
273
|
end
|
274
274
|
|
275
275
|
def test_should_sum_expression
|
276
|
-
assert_equal 636, Account.sum("2 * credit_limit")
|
276
|
+
assert_equal '636', Account.sum("2 * credit_limit")
|
277
277
|
end
|
278
278
|
|
279
279
|
def test_count_with_from_option
|
data/test/cases/finder_test.rb
CHANGED
@@ -387,6 +387,14 @@ class FinderTest < ActiveRecord::TestCase
|
|
387
387
|
assert_equal ActiveRecord::Base.connection.quote(''), bind('?', '')
|
388
388
|
end
|
389
389
|
|
390
|
+
def test_bind_string_with_nl
|
391
|
+
assert_equal ActiveRecord::Base.connection.quote("a\nb"), bind('?', "a\nb")
|
392
|
+
end
|
393
|
+
|
394
|
+
def test_bind_mb_string_with_nl
|
395
|
+
assert_equal ActiveRecord::Base.connection.quote("a\nb"), bind('?', "a\nb".chars)
|
396
|
+
end
|
397
|
+
|
390
398
|
def test_bind_record
|
391
399
|
o = Struct.new(:quoted_id).new(1)
|
392
400
|
assert_equal '1', bind('?', o)
|
@@ -193,7 +193,7 @@ class InheritanceTest < ActiveRecord::TestCase
|
|
193
193
|
|
194
194
|
def test_eager_load_belongs_to_primary_key_quoting
|
195
195
|
con = Account.connection
|
196
|
-
assert_sql(/\(#{con.quote_table_name('companies')}.#{con.quote_column_name('id')}
|
196
|
+
assert_sql(/\(#{con.quote_table_name('companies')}.#{con.quote_column_name('id')} = 1\)/) do
|
197
197
|
Account.find(1, :include => :firm)
|
198
198
|
end
|
199
199
|
end
|
@@ -364,6 +364,13 @@ class ValidationsTest < ActiveRecord::TestCase
|
|
364
364
|
assert t2.save, "Should now save t2 as unique"
|
365
365
|
end
|
366
366
|
|
367
|
+
def test_validates_uniquness_with_newline_chars
|
368
|
+
Topic.validates_uniqueness_of(:title, :case_sensitive => false)
|
369
|
+
|
370
|
+
t = Topic.new("title" => "new\nline")
|
371
|
+
assert t.save, "Should save t as unique"
|
372
|
+
end
|
373
|
+
|
367
374
|
def test_validate_uniqueness_with_scope
|
368
375
|
Reply.validates_uniqueness_of(:content, :scope => "parent_id")
|
369
376
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
@@ -9,7 +9,7 @@ autorequire: active_record
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-10-23 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.1.
|
23
|
+
version: 2.1.2
|
24
24
|
version:
|
25
25
|
description: Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM. It ties database tables and classes together for business objects, like Customer or Subscription, that can find, save, and destroy themselves without resorting to manual SQL.
|
26
26
|
email: david@loudthinking.com
|
@@ -193,7 +193,6 @@ files:
|
|
193
193
|
- test/connections/native_sqlite3/in_memory_connection.rb
|
194
194
|
- test/connections/native_sybase
|
195
195
|
- test/connections/native_sybase/connection.rb
|
196
|
-
- test/debug.log
|
197
196
|
- test/fixtures
|
198
197
|
- test/fixtures/accounts.yml
|
199
198
|
- test/fixtures/all
|
@@ -223,8 +222,6 @@ files:
|
|
223
222
|
- test/fixtures/developers_projects.yml
|
224
223
|
- test/fixtures/edges.yml
|
225
224
|
- test/fixtures/entrants.yml
|
226
|
-
- test/fixtures/fixture_database.sqlite3
|
227
|
-
- test/fixtures/fixture_database_2.sqlite3
|
228
225
|
- test/fixtures/fk_test_has_fk.yml
|
229
226
|
- test/fixtures/fk_test_has_pk.yml
|
230
227
|
- test/fixtures/funny_jokes.yml
|
@@ -391,7 +388,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
391
388
|
requirements: []
|
392
389
|
|
393
390
|
rubyforge_project: activerecord
|
394
|
-
rubygems_version: 1.
|
391
|
+
rubygems_version: 1.3.0
|
395
392
|
signing_key:
|
396
393
|
specification_version: 2
|
397
394
|
summary: Implements the ActiveRecord pattern for ORM.
|
data/test/debug.log
DELETED
@@ -1,358 +0,0 @@
|
|
1
|
-
# Logfile created on Wed Apr 30 00:19:12 -0500 2008 by /
|
2
|
-
Unable to load post, underlying cause no such file to load -- post.rb
|
3
|
-
|
4
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking'
|
5
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_file'
|
6
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
|
7
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:202:in `load_file'
|
8
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:94:in `require_or_load'
|
9
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:60:in `depend_on'
|
10
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:442:in `require_dependency'
|
11
|
-
./cases/../../lib/active_record/fixtures.rb:854:in `try_to_load_dependency'
|
12
|
-
./cases/../../lib/active_record/fixtures.rb:869:in `require_fixture_classes'
|
13
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `each'
|
14
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `require_fixture_classes'
|
15
|
-
./cases/../../lib/active_record/fixtures.rb:849:in `fixtures'
|
16
|
-
cases/named_scope_test.rb:9
|
17
|
-
Unable to load author, underlying cause no such file to load -- author.rb
|
18
|
-
|
19
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking'
|
20
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_file'
|
21
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
|
22
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:202:in `load_file'
|
23
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:94:in `require_or_load'
|
24
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:60:in `depend_on'
|
25
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:442:in `require_dependency'
|
26
|
-
./cases/../../lib/active_record/fixtures.rb:854:in `try_to_load_dependency'
|
27
|
-
./cases/../../lib/active_record/fixtures.rb:869:in `require_fixture_classes'
|
28
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `each'
|
29
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `require_fixture_classes'
|
30
|
-
./cases/../../lib/active_record/fixtures.rb:849:in `fixtures'
|
31
|
-
cases/named_scope_test.rb:9
|
32
|
-
Unable to load topic, underlying cause no such file to load -- topic.rb
|
33
|
-
|
34
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking'
|
35
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_file'
|
36
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
|
37
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:202:in `load_file'
|
38
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:94:in `require_or_load'
|
39
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:60:in `depend_on'
|
40
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:442:in `require_dependency'
|
41
|
-
./cases/../../lib/active_record/fixtures.rb:854:in `try_to_load_dependency'
|
42
|
-
./cases/../../lib/active_record/fixtures.rb:869:in `require_fixture_classes'
|
43
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `each'
|
44
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `require_fixture_classes'
|
45
|
-
./cases/../../lib/active_record/fixtures.rb:849:in `fixtures'
|
46
|
-
cases/named_scope_test.rb:9
|
47
|
-
[4;36;1mTopic Load (0.001909)[0m [0;1mSELECT * FROM "topics" [0m
|
48
|
-
[4;35;1mTopic Load (0.001633)[0m [0mSELECT * FROM "topics" [0m
|
49
|
-
[4;36;1mTopic Load (0.001143)[0m [0;1mSELECT * FROM "topics" [0m
|
50
|
-
[4;35;1mTopic Load (0.001296)[0m [0mSELECT * FROM "topics" WHERE (content LIKE '%Have%') [0m
|
51
|
-
[4;36;1mTopic Load (0.000764)[0m [0;1mSELECT * FROM "topics" WHERE (content LIKE '%Have%') [0m
|
52
|
-
[4;35;1mTopic Load (0.000731)[0m [0mSELECT * FROM "topics" WHERE (content LIKE '%Have%') [0m
|
53
|
-
[4;36;1mTopic Load (0.001061)[0m [0;1mSELECT * FROM "topics" [0m
|
54
|
-
[4;35;1mTopic Load (0.000981)[0m [0mSELECT * FROM "topics" [0m
|
55
|
-
[4;36;1mTopic Load (0.000870)[0m [0;1mSELECT * FROM "topics" [0m
|
56
|
-
[4;35;1mTopic Load (0.000915)[0m [0mSELECT * FROM "topics" [0m
|
57
|
-
[4;36;1mAuthor Load (0.000274)[0m [0;1mSELECT * FROM "authors" WHERE ("authors"."id" = 1) [0m
|
58
|
-
[4;35;1mPost Load (0.000496)[0m [0mSELECT * FROM "posts" WHERE (body LIKE '%a%') [0m
|
59
|
-
[4;36;1mPost Load (0.001247)[0m [0;1mSELECT * FROM "posts" WHERE ("posts".author_id = 1) [0m
|
60
|
-
[4;35;1mPost Load (0.001080)[0m [0mSELECT * FROM "posts" WHERE (body LIKE '%a%') [0m
|
61
|
-
[4;36;1mPost Load (0.000536)[0m [0;1mSELECT * FROM "posts" WHERE (body LIKE '%a%') [0m
|
62
|
-
[4;35;1mPost Load (0.000406)[0m [0mSELECT * FROM "posts" WHERE ("posts".author_id = 1) AND (body LIKE '%a%') [0m
|
63
|
-
[4;36;1mAuthor Load (0.000252)[0m [0;1mSELECT * FROM "authors" WHERE ("authors"."id" = 1) [0m
|
64
|
-
[4;35;1mComment Load (0.000797)[0m [0mSELECT * FROM "comments" WHERE (comments.body LIKE '%e%') [0m
|
65
|
-
[4;36;1mPost Load (0.000699)[0m [0;1mSELECT * FROM "posts" WHERE ("posts".author_id = 1) [0m
|
66
|
-
[4;35;1mComment Load (0.000772)[0m [0mSELECT * FROM "comments" WHERE (comments.body LIKE '%e%') [0m
|
67
|
-
[4;36;1mComment Load (0.000879)[0m [0;1mSELECT "comments".* FROM "comments" INNER JOIN posts ON comments.post_id = posts.id WHERE (("posts".author_id = 1)) [0m
|
68
|
-
[4;35;1mComment Load (0.000840)[0m [0mSELECT * FROM "comments" WHERE (comments.body LIKE '%e%') [0m
|
69
|
-
[4;36;1mComment Load (0.000837)[0m [0;1mSELECT "comments".* FROM "comments" INNER JOIN posts ON comments.post_id = posts.id WHERE (("posts".author_id = 1)) AND (comments.body LIKE '%e%') [0m
|
70
|
-
[4;35;1mTopic Load (0.000850)[0m [0mSELECT * FROM "topics" [0m
|
71
|
-
[4;36;1mTopic Load (0.001908)[0m [0;1mSELECT * FROM "topics" [0m
|
72
|
-
[4;35;1mTopic Load (0.001432)[0m [0mSELECT * FROM "topics" [0m
|
73
|
-
[4;36;1mTopic Load (0.000777)[0m [0;1mSELECT * FROM "topics" [0m
|
74
|
-
[4;35;1mTopic Load (0.000772)[0m [0mSELECT * FROM "topics" [0m
|
75
|
-
[4;36;1mTopic Load (0.000318)[0m [0;1mSELECT * FROM "topics" LIMIT 1[0m
|
76
|
-
[4;35;1mTopic Load (0.000765)[0m [0mSELECT * FROM "topics" [0m
|
77
|
-
[4;36;1mTopic Load (0.000772)[0m [0;1mSELECT * FROM "topics" [0m
|
78
|
-
[4;35;1mTopic Load (0.000772)[0m [0mSELECT * FROM "topics" [0m
|
79
|
-
[4;36;1mTopic Load (0.000361)[0m [0;1mSELECT * FROM "topics" WHERE ("topics"."id" = 3) [0m
|
80
|
-
[4;35;1mTopic Load (0.000511)[0m [0mSELECT * FROM "topics" WHERE (written_on < '2005-07-15 09:28:00') [0m
|
81
|
-
[4;36;1mTopic Load (0.000320)[0m [0;1mSELECT * FROM "topics" WHERE ("topics"."id" = 2) [0m
|
82
|
-
[4;35;1mTopic Load (0.000462)[0m [0mSELECT * FROM "topics" WHERE (written_on < '2004-07-15 09:28:00') [0m
|
83
|
-
[4;36;1mTopic Load (0.000516)[0m [0;1mSELECT * FROM "topics" WHERE (written_on < '2005-07-15 09:28:00') [0m
|
84
|
-
[4;35;1mTopic Load (0.000343)[0m [0mSELECT * FROM "topics" WHERE (written_on < '2004-07-15 09:28:00') [0m
|
85
|
-
[4;36;1mTopic Load (0.000821)[0m [0;1mSELECT * FROM "topics" [0m
|
86
|
-
[4;35;1mTopic Create (0.000381)[0m [0mINSERT INTO "topics" ("title", "author_name", "type", "approved", "bonus_time", "replies_count", "author_email_address", "written_on", "content", "last_read", "parent_id") VALUES(NULL, NULL, NULL, 't', NULL, 0, 'test@test.com', '2008-04-30 00:19:13', NULL, NULL, NULL)[0m
|
87
|
-
[4;36;1mTopic Load (0.001058)[0m [0;1mSELECT * FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
88
|
-
[4;35;1mTopic Load (0.000950)[0m [0mSELECT * FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
89
|
-
[4;36;1mTopic Load (0.000643)[0m [0;1mSELECT * FROM "topics" WHERE (replies_count > 0) [0m
|
90
|
-
[4;35;1mTopic Load (0.000608)[0m [0mSELECT * FROM "topics" WHERE (replies_count > 0) [0m
|
91
|
-
[4;36;1mTopic Load (0.000552)[0m [0;1mSELECT * FROM "topics" WHERE ((replies_count > 0) AND ("topics"."approved" = 't')) [0m
|
92
|
-
[4;35;1mTopic Load (0.000920)[0m [0mSELECT * FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
93
|
-
[4;36;1mTopic Load (0.000812)[0m [0;1mSELECT * FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
94
|
-
[4;35;1mTopic Load (0.000806)[0m [0mSELECT * FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
95
|
-
[4;36;1mSQL (0.000204)[0m [0;1mSELECT count(*) AS count_all FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
96
|
-
[4;35;1mSQL (0.000176)[0m [0mSELECT count(*) AS count_all FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
97
|
-
Unable to load post, underlying cause no such file to load -- post.rb
|
98
|
-
|
99
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking'
|
100
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_file'
|
101
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
|
102
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:202:in `load_file'
|
103
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:94:in `require_or_load'
|
104
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:60:in `depend_on'
|
105
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:442:in `require_dependency'
|
106
|
-
./cases/../../lib/active_record/fixtures.rb:854:in `try_to_load_dependency'
|
107
|
-
./cases/../../lib/active_record/fixtures.rb:869:in `require_fixture_classes'
|
108
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `each'
|
109
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `require_fixture_classes'
|
110
|
-
./cases/../../lib/active_record/fixtures.rb:849:in `fixtures'
|
111
|
-
cases/named_scope_test.rb:11
|
112
|
-
Unable to load author, underlying cause no such file to load -- author.rb
|
113
|
-
|
114
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking'
|
115
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_file'
|
116
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
|
117
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:202:in `load_file'
|
118
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:94:in `require_or_load'
|
119
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:60:in `depend_on'
|
120
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:442:in `require_dependency'
|
121
|
-
./cases/../../lib/active_record/fixtures.rb:854:in `try_to_load_dependency'
|
122
|
-
./cases/../../lib/active_record/fixtures.rb:869:in `require_fixture_classes'
|
123
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `each'
|
124
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `require_fixture_classes'
|
125
|
-
./cases/../../lib/active_record/fixtures.rb:849:in `fixtures'
|
126
|
-
cases/named_scope_test.rb:11
|
127
|
-
Unable to load topic, underlying cause no such file to load -- topic.rb
|
128
|
-
|
129
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking'
|
130
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_file'
|
131
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
|
132
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:202:in `load_file'
|
133
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:94:in `require_or_load'
|
134
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:60:in `depend_on'
|
135
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:442:in `require_dependency'
|
136
|
-
./cases/../../lib/active_record/fixtures.rb:854:in `try_to_load_dependency'
|
137
|
-
./cases/../../lib/active_record/fixtures.rb:869:in `require_fixture_classes'
|
138
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `each'
|
139
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `require_fixture_classes'
|
140
|
-
./cases/../../lib/active_record/fixtures.rb:849:in `fixtures'
|
141
|
-
cases/named_scope_test.rb:11
|
142
|
-
[4;36;1mTopic Load (0.001976)[0m [0;1mSELECT * FROM "topics" [0m
|
143
|
-
[4;35;1mTopic Load (0.001593)[0m [0mSELECT * FROM "topics" [0m
|
144
|
-
[4;36;1mTopic Load (0.001164)[0m [0;1mSELECT * FROM "topics" [0m
|
145
|
-
[4;35;1mTopic Load (0.000571)[0m [0mSELECT * FROM "topics" LIMIT 1[0m
|
146
|
-
[4;36;1mTopic Load (0.000448)[0m [0;1mSELECT * FROM "topics" LIMIT 1[0m
|
147
|
-
[4;35;1mSQL (0.000197)[0m [0mSELECT count(*) AS count_all FROM "topics" [0m
|
148
|
-
[4;36;1mSQL (0.000184)[0m [0;1mSELECT count(*) AS count_all FROM "topics" [0m
|
149
|
-
[4;35;1mSQL (0.000201)[0m [0mSELECT avg("topics".replies_count) AS avg_replies_count FROM "topics" [0m
|
150
|
-
[4;36;1mSQL (0.000199)[0m [0;1mSELECT avg("topics".replies_count) AS avg_replies_count FROM "topics" [0m
|
151
|
-
Unable to load post, underlying cause no such file to load -- post.rb
|
152
|
-
|
153
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking'
|
154
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_file'
|
155
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
|
156
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:202:in `load_file'
|
157
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:94:in `require_or_load'
|
158
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:60:in `depend_on'
|
159
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:442:in `require_dependency'
|
160
|
-
./cases/../../lib/active_record/fixtures.rb:854:in `try_to_load_dependency'
|
161
|
-
./cases/../../lib/active_record/fixtures.rb:869:in `require_fixture_classes'
|
162
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `each'
|
163
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `require_fixture_classes'
|
164
|
-
./cases/../../lib/active_record/fixtures.rb:849:in `fixtures'
|
165
|
-
cases/named_scope_test.rb:12
|
166
|
-
Unable to load author, underlying cause no such file to load -- author.rb
|
167
|
-
|
168
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking'
|
169
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_file'
|
170
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
|
171
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:202:in `load_file'
|
172
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:94:in `require_or_load'
|
173
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:60:in `depend_on'
|
174
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:442:in `require_dependency'
|
175
|
-
./cases/../../lib/active_record/fixtures.rb:854:in `try_to_load_dependency'
|
176
|
-
./cases/../../lib/active_record/fixtures.rb:869:in `require_fixture_classes'
|
177
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `each'
|
178
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `require_fixture_classes'
|
179
|
-
./cases/../../lib/active_record/fixtures.rb:849:in `fixtures'
|
180
|
-
cases/named_scope_test.rb:12
|
181
|
-
Unable to load topic, underlying cause no such file to load -- topic.rb
|
182
|
-
|
183
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking'
|
184
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_file'
|
185
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
|
186
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:202:in `load_file'
|
187
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:94:in `require_or_load'
|
188
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:60:in `depend_on'
|
189
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:442:in `require_dependency'
|
190
|
-
./cases/../../lib/active_record/fixtures.rb:854:in `try_to_load_dependency'
|
191
|
-
./cases/../../lib/active_record/fixtures.rb:869:in `require_fixture_classes'
|
192
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `each'
|
193
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `require_fixture_classes'
|
194
|
-
./cases/../../lib/active_record/fixtures.rb:849:in `fixtures'
|
195
|
-
cases/named_scope_test.rb:12
|
196
|
-
[4;36;1mTopic Load (0.002000)[0m [0;1mSELECT * FROM "topics" [0m
|
197
|
-
[4;35;1mTopic Load (0.001548)[0m [0mSELECT * FROM "topics" [0m
|
198
|
-
[4;36;1mTopic Load (0.001159)[0m [0;1mSELECT * FROM "topics" [0m
|
199
|
-
[4;35;1mTopic Load (0.000799)[0m [0mSELECT * FROM "topics" WHERE (content LIKE '%Have%') [0m
|
200
|
-
[4;36;1mTopic Load (0.000629)[0m [0;1mSELECT * FROM "topics" WHERE (content LIKE '%Have%') [0m
|
201
|
-
[4;35;1mTopic Load (0.000636)[0m [0mSELECT * FROM "topics" WHERE (content LIKE '%Have%') [0m
|
202
|
-
[4;36;1mTopic Load (0.001059)[0m [0;1mSELECT * FROM "topics" [0m
|
203
|
-
[4;35;1mTopic Load (0.000874)[0m [0mSELECT * FROM "topics" [0m
|
204
|
-
[4;36;1mTopic Load (0.000807)[0m [0;1mSELECT * FROM "topics" [0m
|
205
|
-
[4;35;1mTopic Load (0.000331)[0m [0mSELECT * FROM "topics" LIMIT 1[0m
|
206
|
-
[4;36;1mTopic Load (0.000317)[0m [0;1mSELECT * FROM "topics" LIMIT 1[0m
|
207
|
-
[4;35;1mSQL (0.000145)[0m [0mSELECT count(*) AS count_all FROM "topics" [0m
|
208
|
-
[4;36;1mSQL (0.000313)[0m [0;1mSELECT count(*) AS count_all FROM "topics" [0m
|
209
|
-
[4;35;1mSQL (0.000342)[0m [0mSELECT avg("topics".replies_count) AS avg_replies_count FROM "topics" [0m
|
210
|
-
[4;36;1mSQL (0.000337)[0m [0;1mSELECT avg("topics".replies_count) AS avg_replies_count FROM "topics" [0m
|
211
|
-
[4;35;1mTopic Load (0.001830)[0m [0mSELECT * FROM "topics" [0m
|
212
|
-
[4;36;1mAuthor Load (0.000249)[0m [0;1mSELECT * FROM "authors" WHERE ("authors"."id" = 1) [0m
|
213
|
-
[4;35;1mPost Load (0.000518)[0m [0mSELECT * FROM "posts" WHERE (body LIKE '%a%') [0m
|
214
|
-
[4;36;1mPost Load (0.000703)[0m [0;1mSELECT * FROM "posts" WHERE ("posts".author_id = 1) [0m
|
215
|
-
[4;35;1mPost Load (0.000496)[0m [0mSELECT * FROM "posts" WHERE (body LIKE '%a%') [0m
|
216
|
-
[4;36;1mPost Load (0.000500)[0m [0;1mSELECT * FROM "posts" WHERE (body LIKE '%a%') [0m
|
217
|
-
[4;35;1mPost Load (0.000391)[0m [0mSELECT * FROM "posts" WHERE ("posts".author_id = 1) AND (body LIKE '%a%') [0m
|
218
|
-
[4;36;1mAuthor Load (0.000250)[0m [0;1mSELECT * FROM "authors" WHERE ("authors"."id" = 1) [0m
|
219
|
-
[4;35;1mComment Load (0.000786)[0m [0mSELECT * FROM "comments" WHERE (comments.body LIKE '%e%') [0m
|
220
|
-
[4;36;1mPost Load (0.000697)[0m [0;1mSELECT * FROM "posts" WHERE ("posts".author_id = 1) [0m
|
221
|
-
[4;35;1mComment Load (0.000778)[0m [0mSELECT * FROM "comments" WHERE (comments.body LIKE '%e%') [0m
|
222
|
-
[4;36;1mComment Load (0.000907)[0m [0;1mSELECT "comments".* FROM "comments" INNER JOIN posts ON comments.post_id = posts.id WHERE (("posts".author_id = 1)) [0m
|
223
|
-
[4;35;1mComment Load (0.000854)[0m [0mSELECT * FROM "comments" WHERE (comments.body LIKE '%e%') [0m
|
224
|
-
[4;36;1mComment Load (0.000825)[0m [0;1mSELECT "comments".* FROM "comments" INNER JOIN posts ON comments.post_id = posts.id WHERE (("posts".author_id = 1)) AND (comments.body LIKE '%e%') [0m
|
225
|
-
[4;35;1mTopic Load (0.000825)[0m [0mSELECT * FROM "topics" [0m
|
226
|
-
[4;36;1mTopic Load (0.000783)[0m [0;1mSELECT * FROM "topics" [0m
|
227
|
-
[4;35;1mTopic Load (0.000781)[0m [0mSELECT * FROM "topics" [0m
|
228
|
-
[4;36;1mTopic Load (0.000779)[0m [0;1mSELECT * FROM "topics" [0m
|
229
|
-
[4;35;1mTopic Load (0.000796)[0m [0mSELECT * FROM "topics" [0m
|
230
|
-
[4;36;1mTopic Load (0.000334)[0m [0;1mSELECT * FROM "topics" LIMIT 1[0m
|
231
|
-
[4;35;1mTopic Load (0.000765)[0m [0mSELECT * FROM "topics" [0m
|
232
|
-
[4;36;1mTopic Load (0.000769)[0m [0;1mSELECT * FROM "topics" [0m
|
233
|
-
[4;35;1mTopic Load (0.000784)[0m [0mSELECT * FROM "topics" [0m
|
234
|
-
[4;36;1mTopic Load (0.000441)[0m [0;1mSELECT * FROM "topics" WHERE ("topics"."id" = 3) [0m
|
235
|
-
[4;35;1mTopic Load (0.000496)[0m [0mSELECT * FROM "topics" WHERE (written_on < '2005-07-15 09:28:00') [0m
|
236
|
-
[4;36;1mTopic Load (0.000318)[0m [0;1mSELECT * FROM "topics" WHERE ("topics"."id" = 2) [0m
|
237
|
-
[4;35;1mTopic Load (0.000326)[0m [0mSELECT * FROM "topics" WHERE (written_on < '2004-07-15 09:28:00') [0m
|
238
|
-
[4;36;1mTopic Load (0.001103)[0m [0;1mSELECT * FROM "topics" WHERE (written_on < '2005-07-15 09:28:00') [0m
|
239
|
-
[4;35;1mTopic Load (0.000733)[0m [0mSELECT * FROM "topics" WHERE (written_on < '2004-07-15 09:28:00') [0m
|
240
|
-
[4;36;1mTopic Load (0.000815)[0m [0;1mSELECT * FROM "topics" [0m
|
241
|
-
[4;35;1mTopic Create (0.000400)[0m [0mINSERT INTO "topics" ("title", "author_name", "type", "approved", "bonus_time", "replies_count", "author_email_address", "written_on", "content", "last_read", "parent_id") VALUES(NULL, NULL, NULL, 't', NULL, 0, 'test@test.com', '2008-04-30 00:24:07', NULL, NULL, NULL)[0m
|
242
|
-
[4;36;1mTopic Load (0.000920)[0m [0;1mSELECT * FROM "topics" [0m
|
243
|
-
[4;35;1mTopic Load (0.001632)[0m [0mSELECT * FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
244
|
-
[4;36;1mTopic Load (0.001510)[0m [0;1mSELECT * FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
245
|
-
[4;35;1mTopic Load (0.000761)[0m [0mSELECT * FROM "topics" WHERE (replies_count > 0) [0m
|
246
|
-
[4;36;1mTopic Load (0.000738)[0m [0;1mSELECT * FROM "topics" WHERE (replies_count > 0) [0m
|
247
|
-
[4;35;1mTopic Load (0.000509)[0m [0mSELECT * FROM "topics" WHERE ((replies_count > 0) AND ("topics"."approved" = 't')) [0m
|
248
|
-
[4;36;1mTopic Load (0.001035)[0m [0;1mSELECT * FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
249
|
-
[4;35;1mTopic Load (0.000940)[0m [0mSELECT * FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
250
|
-
[4;36;1mTopic Load (0.000898)[0m [0;1mSELECT * FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
251
|
-
[4;35;1mSQL (0.000214)[0m [0mSELECT count(*) AS count_all FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
252
|
-
[4;36;1mSQL (0.000200)[0m [0;1mSELECT count(*) AS count_all FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
253
|
-
[4;35;1mReply Load (0.000704)[0m [0mSELECT * FROM "topics" WHERE ( ("topics"."type" = 'Reply' OR "topics"."type" = 'SillyReply' ) ) [0m
|
254
|
-
[4;36;1mReply Load (0.000613)[0m [0;1mSELECT * FROM "topics" WHERE ( ("topics"."type" = 'Reply' OR "topics"."type" = 'SillyReply' ) ) [0m
|
255
|
-
Unable to load post, underlying cause no such file to load -- post.rb
|
256
|
-
|
257
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking'
|
258
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_file'
|
259
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
|
260
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:202:in `load_file'
|
261
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:94:in `require_or_load'
|
262
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:60:in `depend_on'
|
263
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:442:in `require_dependency'
|
264
|
-
./cases/../../lib/active_record/fixtures.rb:854:in `try_to_load_dependency'
|
265
|
-
./cases/../../lib/active_record/fixtures.rb:869:in `require_fixture_classes'
|
266
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `each'
|
267
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `require_fixture_classes'
|
268
|
-
./cases/../../lib/active_record/fixtures.rb:849:in `fixtures'
|
269
|
-
cases/named_scope_test.rb:9
|
270
|
-
Unable to load author, underlying cause no such file to load -- author.rb
|
271
|
-
|
272
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking'
|
273
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_file'
|
274
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
|
275
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:202:in `load_file'
|
276
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:94:in `require_or_load'
|
277
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:60:in `depend_on'
|
278
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:442:in `require_dependency'
|
279
|
-
./cases/../../lib/active_record/fixtures.rb:854:in `try_to_load_dependency'
|
280
|
-
./cases/../../lib/active_record/fixtures.rb:869:in `require_fixture_classes'
|
281
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `each'
|
282
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `require_fixture_classes'
|
283
|
-
./cases/../../lib/active_record/fixtures.rb:849:in `fixtures'
|
284
|
-
cases/named_scope_test.rb:9
|
285
|
-
Unable to load topic, underlying cause no such file to load -- topic.rb
|
286
|
-
|
287
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking'
|
288
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_file'
|
289
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
|
290
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:202:in `load_file'
|
291
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:94:in `require_or_load'
|
292
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:60:in `depend_on'
|
293
|
-
./cases/../../lib/../../activesupport/lib/active_support/dependencies.rb:442:in `require_dependency'
|
294
|
-
./cases/../../lib/active_record/fixtures.rb:854:in `try_to_load_dependency'
|
295
|
-
./cases/../../lib/active_record/fixtures.rb:869:in `require_fixture_classes'
|
296
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `each'
|
297
|
-
./cases/../../lib/active_record/fixtures.rb:866:in `require_fixture_classes'
|
298
|
-
./cases/../../lib/active_record/fixtures.rb:849:in `fixtures'
|
299
|
-
cases/named_scope_test.rb:9
|
300
|
-
[4;36;1mTopic Load (0.001968)[0m [0;1mSELECT * FROM "topics" [0m
|
301
|
-
[4;35;1mTopic Load (0.001587)[0m [0mSELECT * FROM "topics" [0m
|
302
|
-
[4;36;1mTopic Load (0.001227)[0m [0;1mSELECT * FROM "topics" [0m
|
303
|
-
[4;35;1mTopic Load (0.000737)[0m [0mSELECT * FROM "topics" WHERE (content LIKE '%Have%') [0m
|
304
|
-
[4;36;1mTopic Load (0.000648)[0m [0;1mSELECT * FROM "topics" WHERE (content LIKE '%Have%') [0m
|
305
|
-
[4;35;1mTopic Load (0.000668)[0m [0mSELECT * FROM "topics" WHERE (content LIKE '%Have%') [0m
|
306
|
-
[4;36;1mTopic Load (0.001049)[0m [0;1mSELECT * FROM "topics" [0m
|
307
|
-
[4;35;1mTopic Load (0.000886)[0m [0mSELECT * FROM "topics" [0m
|
308
|
-
[4;36;1mTopic Load (0.000795)[0m [0;1mSELECT * FROM "topics" [0m
|
309
|
-
[4;35;1mTopic Load (0.000600)[0m [0mSELECT * FROM "topics" LIMIT 1[0m
|
310
|
-
[4;36;1mTopic Load (0.000330)[0m [0;1mSELECT * FROM "topics" LIMIT 1[0m
|
311
|
-
[4;35;1mSQL (0.000160)[0m [0mSELECT count(*) AS count_all FROM "topics" [0m
|
312
|
-
[4;36;1mSQL (0.000155)[0m [0;1mSELECT count(*) AS count_all FROM "topics" [0m
|
313
|
-
[4;35;1mSQL (0.000175)[0m [0mSELECT avg("topics".replies_count) AS avg_replies_count FROM "topics" [0m
|
314
|
-
[4;36;1mSQL (0.000345)[0m [0;1mSELECT avg("topics".replies_count) AS avg_replies_count FROM "topics" [0m
|
315
|
-
[4;35;1mTopic Load (0.000858)[0m [0mSELECT * FROM "topics" [0m
|
316
|
-
[4;36;1mAuthor Load (0.000273)[0m [0;1mSELECT * FROM "authors" WHERE ("authors"."id" = 1) [0m
|
317
|
-
[4;35;1mPost Load (0.000498)[0m [0mSELECT * FROM "posts" WHERE (body LIKE '%a%') [0m
|
318
|
-
[4;36;1mPost Load (0.000720)[0m [0;1mSELECT * FROM "posts" WHERE ("posts".author_id = 1) [0m
|
319
|
-
[4;35;1mPost Load (0.000482)[0m [0mSELECT * FROM "posts" WHERE (body LIKE '%a%') [0m
|
320
|
-
[4;36;1mPost Load (0.000482)[0m [0;1mSELECT * FROM "posts" WHERE (body LIKE '%a%') [0m
|
321
|
-
[4;35;1mPost Load (0.000391)[0m [0mSELECT * FROM "posts" WHERE ("posts".author_id = 1) AND (body LIKE '%a%') [0m
|
322
|
-
[4;36;1mAuthor Load (0.000245)[0m [0;1mSELECT * FROM "authors" WHERE ("authors"."id" = 1) [0m
|
323
|
-
[4;35;1mComment Load (0.000789)[0m [0mSELECT * FROM "comments" WHERE (comments.body LIKE '%e%') [0m
|
324
|
-
[4;36;1mPost Load (0.000692)[0m [0;1mSELECT * FROM "posts" WHERE ("posts".author_id = 1) [0m
|
325
|
-
[4;35;1mComment Load (0.000767)[0m [0mSELECT * FROM "comments" WHERE (comments.body LIKE '%e%') [0m
|
326
|
-
[4;36;1mComment Load (0.000879)[0m [0;1mSELECT "comments".* FROM "comments" INNER JOIN posts ON comments.post_id = posts.id WHERE (("posts".author_id = 1)) [0m
|
327
|
-
[4;35;1mComment Load (0.000803)[0m [0mSELECT * FROM "comments" WHERE (comments.body LIKE '%e%') [0m
|
328
|
-
[4;36;1mComment Load (0.000822)[0m [0;1mSELECT "comments".* FROM "comments" INNER JOIN posts ON comments.post_id = posts.id WHERE (("posts".author_id = 1)) AND (comments.body LIKE '%e%') [0m
|
329
|
-
[4;35;1mTopic Load (0.000823)[0m [0mSELECT * FROM "topics" [0m
|
330
|
-
[4;36;1mTopic Load (0.000792)[0m [0;1mSELECT * FROM "topics" [0m
|
331
|
-
[4;35;1mTopic Load (0.000794)[0m [0mSELECT * FROM "topics" [0m
|
332
|
-
[4;36;1mTopic Load (0.000813)[0m [0;1mSELECT * FROM "topics" [0m
|
333
|
-
[4;35;1mTopic Load (0.000769)[0m [0mSELECT * FROM "topics" [0m
|
334
|
-
[4;36;1mTopic Load (0.000316)[0m [0;1mSELECT * FROM "topics" LIMIT 1[0m
|
335
|
-
[4;35;1mTopic Load (0.000777)[0m [0mSELECT * FROM "topics" [0m
|
336
|
-
[4;36;1mTopic Load (0.000800)[0m [0;1mSELECT * FROM "topics" [0m
|
337
|
-
[4;35;1mTopic Load (0.000795)[0m [0mSELECT * FROM "topics" [0m
|
338
|
-
[4;36;1mTopic Load (0.000391)[0m [0;1mSELECT * FROM "topics" WHERE ("topics"."id" = 3) [0m
|
339
|
-
[4;35;1mTopic Load (0.000499)[0m [0mSELECT * FROM "topics" WHERE (written_on < '2005-07-15 09:28:00') [0m
|
340
|
-
[4;36;1mTopic Load (0.000320)[0m [0;1mSELECT * FROM "topics" WHERE ("topics"."id" = 2) [0m
|
341
|
-
[4;35;1mTopic Load (0.000326)[0m [0mSELECT * FROM "topics" WHERE (written_on < '2004-07-15 09:28:00') [0m
|
342
|
-
[4;36;1mTopic Load (0.000491)[0m [0;1mSELECT * FROM "topics" WHERE (written_on < '2005-07-15 09:28:00') [0m
|
343
|
-
[4;35;1mTopic Load (0.000325)[0m [0mSELECT * FROM "topics" WHERE (written_on < '2004-07-15 09:28:00') [0m
|
344
|
-
[4;36;1mTopic Load (0.000821)[0m [0;1mSELECT * FROM "topics" [0m
|
345
|
-
[4;35;1mTopic Create (0.000383)[0m [0mINSERT INTO "topics" ("title", "author_name", "type", "approved", "bonus_time", "replies_count", "author_email_address", "written_on", "content", "last_read", "parent_id") VALUES(NULL, NULL, NULL, 't', NULL, 0, 'test@test.com', '2008-04-30 00:24:48', NULL, NULL, NULL)[0m
|
346
|
-
[4;36;1mTopic Load (0.000944)[0m [0;1mSELECT * FROM "topics" [0m
|
347
|
-
[4;35;1mTopic Load (0.001618)[0m [0mSELECT * FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
348
|
-
[4;36;1mTopic Load (0.001445)[0m [0;1mSELECT * FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
349
|
-
[4;35;1mTopic Load (0.000720)[0m [0mSELECT * FROM "topics" WHERE (replies_count > 0) [0m
|
350
|
-
[4;36;1mTopic Load (0.000707)[0m [0;1mSELECT * FROM "topics" WHERE (replies_count > 0) [0m
|
351
|
-
[4;35;1mTopic Load (0.000494)[0m [0mSELECT * FROM "topics" WHERE ((replies_count > 0) AND ("topics"."approved" = 't')) [0m
|
352
|
-
[4;36;1mTopic Load (0.000863)[0m [0;1mSELECT * FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
353
|
-
[4;35;1mTopic Load (0.000855)[0m [0mSELECT * FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
354
|
-
[4;36;1mTopic Load (0.000867)[0m [0;1mSELECT * FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
355
|
-
[4;35;1mSQL (0.000208)[0m [0mSELECT count(*) AS count_all FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
356
|
-
[4;36;1mSQL (0.000195)[0m [0;1mSELECT count(*) AS count_all FROM "topics" WHERE ("topics"."approved" = 't') [0m
|
357
|
-
[4;35;1mReply Load (0.000574)[0m [0mSELECT * FROM "topics" WHERE ( ("topics"."type" = 'Reply' OR "topics"."type" = 'SillyReply' ) ) [0m
|
358
|
-
[4;36;1mReply Load (0.000504)[0m [0;1mSELECT * FROM "topics" WHERE ( ("topics"."type" = 'Reply' OR "topics"."type" = 'SillyReply' ) ) [0m
|
Binary file
|
Binary file
|