Skip to content
This repository
Browse code

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...
commit ac7a0209bbd92b543e50ee6c8641998c7f04c3c1 1 parent 813290d
Tarmo Tänav authored August 26, 2008 jeremy committed August 26, 2008
2  activerecord/test/cases/defaults_test.rb
@@ -5,7 +5,7 @@
5 5
 class DefaultTest < ActiveRecord::TestCase
6 6
   def test_nil_defaults_for_not_null_columns
7 7
     column_defaults =
8  
-      if current_adapter?(:MysqlAdapter) && Mysql.client_version < 50051
  8
+      if current_adapter?(:MysqlAdapter) && (Mysql.client_version < 50051 || (50100..50122).include?(Mysql.client_version))
9 9
         { 'id' => nil, 'name' => '',  'course_id' => nil }
10 10
       else
11 11
         { 'id' => nil, 'name' => nil, 'course_id' => nil }

0 notes on commit ac7a020

Please sign in to comment.
Something went wrong with that request. Please try again.