make sure queries run through the Sequel logger

This commit is contained in:
Brian Lopez 2010-07-16 10:26:43 -07:00
parent edb742fee7
commit 807875e321

View File

@ -120,8 +120,7 @@ module Sequel
# yield the connection if a block is given.
def _execute(conn, sql, opts)
begin
# r = log_yield(sql){conn.query(sql)}
r = conn.query(sql)
r = log_yield(sql){conn.query(sql)}
if opts[:type] == :select
yield r if r
elsif block_given?