can't call literal here because it'll try to join it's own thread

This commit is contained in:
Brian Lopez 2010-08-05 01:20:42 -07:00
parent 04932b549b
commit 1bdf44ce7f
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ module Sequel
# Doesn't work across implicit reconnects, but Sequel doesn't turn on # Doesn't work across implicit reconnects, but Sequel doesn't turn on
# that feature. # that feature.
if encoding = opts[:encoding] || opts[:charset] if encoding = opts[:encoding] || opts[:charset]
sqls << "SET NAMES #{literal(encoding.to_s)}" sqls << "SET NAMES #{conn.escape(encoding.to_s)}"
end end
# increase timeout so mysql server doesn't disconnect us # increase timeout so mysql server doesn't disconnect us