Skip to content

Commit ac9f9a9

Browse files
hugopeixotojeremy
authored andcommitted
MySQL: fix diacritic uniqueness test by setting the default character set and collation to utf8/utf8_unicode_ci
[#2883 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
1 parent 796b7c6 commit ac9f9a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ end
5353
namespace :mysql do
5454
desc 'Build the MySQL test databases'
5555
task :build_databases do
56-
%x( mysqladmin --user=#{MYSQL_DB_USER} create activerecord_unittest )
57-
%x( mysqladmin --user=#{MYSQL_DB_USER} create activerecord_unittest2 )
56+
%x( echo "create DATABASE activerecord_unittest DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci " | mysql --user=#{MYSQL_DB_USER})
57+
%x( echo "create DATABASE activerecord_unittest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci " | mysql --user=#{MYSQL_DB_USER})
5858
end
5959

6060
desc 'Drop the MySQL test databases'

0 commit comments

Comments
 (0)