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.
|
# yield the connection if a block is given.
|
||||||
def _execute(conn, sql, opts)
|
def _execute(conn, sql, opts)
|
||||||
begin
|
begin
|
||||||
# r = log_yield(sql){conn.query(sql)}
|
r = log_yield(sql){conn.query(sql)}
|
||||||
r = conn.query(sql)
|
|
||||||
if opts[:type] == :select
|
if opts[:type] == :select
|
||||||
yield r if r
|
yield r if r
|
||||||
elsif block_given?
|
elsif block_given?
|
||||||
|
Loading…
Reference in New Issue
Block a user