can't call literal here because it'll try to join it's own thread
This commit is contained in:
parent
04932b549b
commit
1bdf44ce7f
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue