From 83fc18531bb11301065b9c249ff8c34fadd5c74a Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Thu, 30 Jul 2020 13:35:50 -0700 Subject: [PATCH] Skip part of a spec on MariaDB 10.5 This resulted in my MariaDB 10.5 installation raising an out of memory error. --- spec/integration/plugin_test.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/integration/plugin_test.rb b/spec/integration/plugin_test.rb index 3ee7a8ad66..f4843439ea 100644 --- a/spec/integration/plugin_test.rb +++ b/spec/integration/plugin_test.rb @@ -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