We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rake test_mysql DRIVER=MariaDB
1 parent fd74fb4 commit 542e6caCopy full SHA for 542e6ca
test/db/mysql_config.rb
@@ -8,4 +8,17 @@
8
9
unless ( ps = ENV['PREPARED_STATEMENTS'] || ENV['PS'] ).nil?
10
MYSQL_CONFIG[:prepared_statements] = ps
11
+end
12
+
13
+if driver = ENV['DRIVER']
14
+ if driver =~ /maria/i
15
+ if driver.index('.').nil?
16
+ driver = 'org.mariadb.jdbc.Driver'
17
+ end
18
+ jars = File.expand_path('../jars', File.dirname(__FILE__))
19
+ if jar = Dir.glob("#{jars}/mariadb*.jar").last
20
+ load jar
21
22
23
+ MYSQL_CONFIG[:driver] = driver if driver.index('.')
24
end
0 commit comments