Skip to content

Commit e4ca7d7

Browse files
committed
Support optional collation in create_table output.
- introduced in MariaDB 10.9.4
1 parent 2a2a6ab commit e4ca7d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/test/cases/adapters/mysql2/table_options_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def teardown
3232
test "table options with CHARSET" do
3333
@connection.create_table "mysql_table_options", force: true, options: "CHARSET=latin1"
3434
output = dump_table_schema("mysql_table_options")
35-
expected = /create_table "mysql_table_options", charset: "latin1", force: :cascade/
35+
expected = /create_table "mysql_table_options", charset: "latin1"(?:, collation: "\w+")?, force: :cascade/
3636
assert_match expected, output
3737
end
3838

0 commit comments

Comments
 (0)