File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ def test_mysql_strict_mode_disabled
6
6
run_without_connection do |orig_connection |
7
7
ActiveRecord ::Base . establish_connection ( orig_connection . merge ( :strict => false ) )
8
8
sql_mode = select_rows ( "SELECT @@SESSION.sql_mode" )
9
- db_version = ActiveRecord ::Base . connection . database_version
10
9
if db_version > "5.6"
11
10
assert ! sql_mode . flatten . include? ( "STRICT_ALL_TABLES" )
12
11
else
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ def mariadb_driver?; end unless defined? JRUBY_VERSION
22
22
def mariadb_server? ; connection . send ( :mariadb? ) end
23
23
alias mariadb? mariadb_server?
24
24
25
+ def database_version
26
+ ActiveRecord ::Base . connection . database_version
27
+ end
28
+ alias db_version database_version
29
+
25
30
end
26
31
27
32
class Test ::Unit ::TestCase
You can’t perform that action at this time.
0 commit comments