search for: test_count_explicit_column

Displaying 1 result from an estimated 1 matches for "test_count_explicit_column".

2011 Apr 24
2
False Positives In ActiveRecord Tests
...that looks like a false positive in the core DBs. Here is one case in relations_test.rb. Can someone look at this and just tell me it is normal for other DBs and just odd for SQL Server? Or maybe it is just my understand of some SQL standard. I''m really not that SQL smart. Honestly. def test_count_explicit_columns Post.update_all(:comments_count => nil) posts = Post.scoped ... assert_equal 0, posts.where(''id is not null'').select(''comments_count'').count ... end OK, this passes in standard DBs, postgresql, sqlite3, and mysql. But why? There are 11...