1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +03:00

Revert "B#1557 onedb fsck breaks the resources when they contain non-ASCII chars (#2200)"

This reverts commit 988ef875c2fcde2681550f080653eb99515db3fb.
This commit is contained in:
Ruben S. Montero 2018-09-05 15:47:36 +02:00
parent 6f690a8ce5
commit 5a799f3a02

View File

@ -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