Skip to content

Commit

Permalink
Log a message about preparing a statement when using sqlite adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyevans committed May 25, 2011
1 parent 78c5cba commit ba43176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sequel/adapters/sqlite.rb
Expand Up @@ -173,7 +173,7 @@ def execute_prepared_statement(conn, type, name, opts, &block)
end
end
unless cps
cps = conn.prepare(sql)
cps = log_yield("Preparing #{name}: #{sql}"){conn.prepare(sql)}
conn.prepared_statements[name] = [cps, sql]
end
if block
Expand Down

0 comments on commit ba43176

Please sign in to comment.