From 1bdf44ce7f38eeaa528d7618b472100f5bbeaf63 Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Thu, 5 Aug 2010 01:20:42 -0700 Subject: [PATCH] can't call literal here because it'll try to join it's own thread --- lib/sequel/adapters/mysql2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sequel/adapters/mysql2.rb b/lib/sequel/adapters/mysql2.rb index b2187ce..2105cf9 100644 --- a/lib/sequel/adapters/mysql2.rb +++ b/lib/sequel/adapters/mysql2.rb @@ -66,7 +66,7 @@ module Sequel # Doesn't work across implicit reconnects, but Sequel doesn't turn on # that feature. if encoding = opts[:encoding] || opts[:charset] - sqls << "SET NAMES #{literal(encoding.to_s)}" + sqls << "SET NAMES #{conn.escape(encoding.to_s)}" end # increase timeout so mysql server doesn't disconnect us