From 5a799f3a024f7a7cc6d018124ba1d8001b0f95bd Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Wed, 5 Sep 2018 15:47:36 +0200 Subject: [PATCH] Revert "B#1557 onedb fsck breaks the resources when they contain non-ASCII chars (#2200)" This reverts commit 988ef875c2fcde2681550f080653eb99515db3fb. --- src/onedb/onedb_backend.rb | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/onedb/onedb_backend.rb b/src/onedb/onedb_backend.rb index dd254fb5d6..08a68e6b43 100644 --- a/src/onedb/onedb_backend.rb +++ b/src/onedb/onedb_backend.rb @@ -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