Skip to content

Commit 0176752

Browse files
committed
Fix sequel mysql encoding issue
1 parent f2b497f commit 0176752

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)