Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Include mysql older than 5.1.23 in the 5.1 series in the list of thos…
…e that can't handle NULL defaults

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
tarmo authored and jeremy committed Aug 26, 2008
1 parent 52e15ab commit fa795cc
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) && Mysql.client_version < 50051 if current_adapter?(:MysqlAdapter) && (Mysql.client_version < 50051 || (50100..50122).include?(Mysql.client_version))
{ '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 fa795cc

Please sign in to comment.