Skip to content

Commit

Permalink
Skip part of a spec on MariaDB 10.5
Browse files Browse the repository at this point in the history
This resulted in my MariaDB 10.5 installation raising an out of
memory error.
  • Loading branch information
jeremyevans committed Jul 30, 2020
1 parent e43b672 commit 83fc185
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions spec/integration/plugin_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2129,9 +2129,11 @@ def set(k, v, ttl) self[k] = v end
proc{@ds.insert(try.merge(:m1=>'', :m2=>nil, :m3=>''))}.must_raise(Sequel::DatabaseError)
end

# Test for dropping of constraint
@db.alter_table(:cv_test){validate{drop :maxl2}}
@ds.insert(@valid_row.merge(:minlen=>'1234567'))
unless @db.database_type == :mysql && @db.mariadb? && @db.server_version >= 10500
# Test for dropping of constraint
@db.alter_table(:cv_test){validate{drop :maxl2}}
@ds.insert(@valid_row.merge(:minlen=>'1234567'))
end
end

it "should set up automatic validations inside the model" do
Expand Down

0 comments on commit 83fc185

Please sign in to comment.