This commit is contained in:
Brian Lopez 2010-08-05 00:45:56 -07:00
parent 86302eb1f1
commit 93fabe2b24

View File

@ -208,7 +208,7 @@ module Sequel
super(sql, {:type=>:dui}.merge(opts), &block) super(sql, {:type=>:dui}.merge(opts), &block)
end end
# Handle correct quoting of strings using ::Mysql2#escape. # Handle correct quoting of strings using ::Mysql2::Client#escape.
def literal_string(v) def literal_string(v)
db.synchronize{|c| "'#{c.escape(v)}'"} db.synchronize{|c| "'#{c.escape(v)}'"}
end end