sql-logging 3.0.5 → 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,13 @@
1
1
  require 'active_record/connection_adapters/mysql_adapter'
2
2
 
3
3
  class ActiveRecord::ConnectionAdapters::MysqlAdapter
4
- def select_with_sql_logging(sql, name = nil)
4
+ def select_with_sql_logging(sql, *args)
5
5
  rows = nil
6
6
  elapsed = Benchmark.measure do
7
- rows = select_without_sql_logging(sql, name)
7
+ rows = select_without_sql_logging(sql, *args)
8
8
  end
9
9
  msec = elapsed.real * 1000
10
- SqlLogging::Statistics.record_query(sql, name, msec, rows)
10
+ SqlLogging::Statistics.record_query(sql, args.first, msec, rows)
11
11
  rows
12
12
  end
13
13
 
@@ -1,13 +1,13 @@
1
1
  require 'active_record/connection_adapters/mysql2_adapter'
2
2
 
3
3
  class ActiveRecord::ConnectionAdapters::Mysql2Adapter
4
- def select_with_sql_logging(sql, name = nil)
4
+ def select_with_sql_logging(sql, *args)
5
5
  rows = nil
6
6
  elapsed = Benchmark.measure do
7
- rows = select_without_sql_logging(sql, name)
7
+ rows = select_without_sql_logging(sql, *args)
8
8
  end
9
9
  msec = elapsed.real * 1000
10
- SqlLogging::Statistics.record_query(sql, name, msec, rows)
10
+ SqlLogging::Statistics.record_query(sql, args.first, msec, rows)
11
11
  rows
12
12
  end
13
13
 
@@ -1,7 +1,7 @@
1
1
  require 'active_record/connection_adapters/postgresql_adapter'
2
2
 
3
3
  class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
4
- def execute_with_sql_logging(sql, name = nil)
4
+ def execute_with_sql_logging(sql, *args)
5
5
  result = nil
6
6
  elapsed = Benchmark.measure do
7
7
  result = execute_without_sql_logging(sql, name)
@@ -1,3 +1,3 @@
1
1
  module SqlLogging
2
- VERSION = '3.0.5'
2
+ VERSION = '3.0.6'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sql-logging
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 5
10
- version: 3.0.5
9
+ - 6
10
+ version: 3.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steve Madsen
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-26 00:00:00 Z
18
+ date: 2011-12-21 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rails