Permalink
Browse files

Fix default nil tests for MySQL 5.0.51 [#192 state:resolved]

Signed-off-by: Joshua Peek <josh@joshpeek.com>
  • Loading branch information...
1 parent 03ba5d7 commit f7015336f66d284cff8ecb89df9f430791ac57ea @ryanb ryanb committed with josh May 31, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/defaults_test.rb
@@ -5,7 +5,7 @@
class DefaultTest < ActiveRecord::TestCase
def test_nil_defaults_for_not_null_columns
column_defaults =
- if current_adapter?(:MysqlAdapter)
+ if current_adapter?(:MysqlAdapter) && Mysql.client_version < 50051
{ 'id' => nil, 'name' => '', 'course_id' => nil }
else
{ 'id' => nil, 'name' => nil, 'course_id' => nil }

0 comments on commit f701533

Please sign in to comment.