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.
1 parent 2e5e334 commit 4d0942aCopy full SHA for 4d0942a
support/mysql_enc_to_ruby.rb
@@ -52,7 +52,10 @@
52
53
collations.each do |collation|
54
mysql_col_idx = collation[2].to_i
55
- rb_enc = mysql_to_rb[collation[1]]
+ rb_enc = mysql_to_rb.fetch(collation[1]) do |mysql_enc|
56
+ $stderr.puts "WARNING: Missing mapping for collation \"#{collation[0]}\" with encoding \"#{mysql_enc}\" and id #{mysql_col_idx}, assuming NULL"
57
+ "NULL"
58
+ end
59
encodings[mysql_col_idx - 1] = [mysql_col_idx, rb_enc]
60
end
61
0 commit comments