Skip to content

Commit

Permalink
Fix default nil tests for MySQL 5.0.51 [#192 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information
ryanb authored and josh committed May 31, 2008
1 parent 03ba5d7 commit f701533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/defaults_test.rb
Expand Up @@ -5,7 +5,7 @@
class DefaultTest < ActiveRecord::TestCase class DefaultTest < ActiveRecord::TestCase
def test_nil_defaults_for_not_null_columns def test_nil_defaults_for_not_null_columns
column_defaults = column_defaults =
if current_adapter?(:MysqlAdapter) if current_adapter?(:MysqlAdapter) && Mysql.client_version < 50051
{ 'id' => nil, 'name' => '', 'course_id' => nil } { 'id' => nil, 'name' => '', 'course_id' => nil }
else else
{ 'id' => nil, 'name' => nil, 'course_id' => nil } { 'id' => nil, 'name' => nil, 'course_id' => nil }
Expand Down

0 comments on commit f701533

Please sign in to comment.