Skip to content

Commit 370053f

Browse files
committed
Fix sequel mysql encoding issue
1 parent 13dfabc commit 370053f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spec/database.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def connect(orm)
1919
database = config[driver]['database']
2020
port = config[driver]['port']
2121
host = config[driver]['host']
22-
::Sequel.connect(adapter: adapter, database: database, username: user, password: password, port: port, host: host)
22+
encoding = config[driver]['encoding']
23+
::Sequel.connect(adapter: adapter, database: database, username: user, password: password, port: port, host: host, encoding: encoding)
2324
end
2425
end
2526

0 commit comments

Comments
 (0)