mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
Revert "B#1557 onedb fsck breaks the resources when they contain non-ASCII chars (#2200)"
This reverts commit 988ef875c2.
This commit is contained in:
1 parent
1235866e51
commit
ea4b31726d
1 file changed
-7
@@ -305,13 +305,6 @@ class BackEndMySQL < OneDBBacKEnd
|
||||
|
||||
begin
|
||||
@db = Sequel.connect(endpoint)
|
||||
|
||||
encoding = "utf8mb4"
|
||||
@db.fetch("SELECT @@CHARACTER_SET_DATABASE;") do |row|
|
||||
encoding = row[:@@CHARACTER_SET_DATABASE]
|
||||
end
|
||||
|
||||
@db = Sequel.connect(endpoint + "?encoding=#{encoding}")
|
||||
rescue Exception => e
|
||||
raise "Error connecting to DB: " + e.message
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user