sql-logging 3.0.6 → 3.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,13 +4,13 @@ class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter
4
4
  def execute_with_sql_logging(sql, *args)
5
5
  result = nil
6
6
  elapsed = Benchmark.measure do
7
- result = execute_without_sql_logging(sql, name)
7
+ result = execute_without_sql_logging(sql, *args)
8
8
  end
9
9
  msec = elapsed.real * 1000
10
10
  if result.respond_to?(:rows)
11
- SqlLogging::Statistics.record_query(sql, name, msec, result.rows)
11
+ SqlLogging::Statistics.record_query(sql, args.first, msec, result.rows)
12
12
  else
13
- SqlLogging::Statistics.record_query(sql, name, msec, result)
13
+ SqlLogging::Statistics.record_query(sql, args.first, msec, result)
14
14
  end
15
15
  result
16
16
  end
@@ -1,3 +1,3 @@
1
1
  module SqlLogging
2
- VERSION = '3.0.6'
2
+ VERSION = '3.0.7'
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: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 6
10
- version: 3.0.6
9
+ - 7
10
+ version: 3.0.7
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-12-21 00:00:00 Z
18
+ date: 2012-05-02 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rails