make sure queries run through the Sequel logger
This commit is contained in:
parent
edb742fee7
commit
807875e321
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue