We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc8d5e6 + f39d260 commit 34c55b0Copy full SHA for 34c55b0
1 file changed
lib/rails_admin/adapters/active_record.rb
@@ -72,6 +72,8 @@ def encoding
72
::ActiveRecord::Base.connection.select_one("SELECT ''::text AS str;").values.first.encoding
73
when 'mysql2'
74
::ActiveRecord::Base.connection.instance_variable_get(:@connection).encoding
75
+ when 'oracle_enhanced'
76
+ ::ActiveRecord::Base.connection.select_one("SELECT dummy FROM DUAL").values.first.encoding
77
else
78
::ActiveRecord::Base.connection.select_one("SELECT '' AS str;").values.first.encoding
79
end
0 commit comments