activerecord-oracle_enhanced-adapter 1.5.2 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e7bf4f74b9131f30ae47274a973191aea66e03d3
4
- data.tar.gz: 2af0f28befbf925eb787298ee035658312d428e0
3
+ metadata.gz: fd6a6db570f470b83b8fe4621508cce81d6d749e
4
+ data.tar.gz: ed27740e8ca3f41d06865bc6f59f0d83ec2917fb
5
5
  SHA512:
6
- metadata.gz: 0d85c334b48b66f131f75a1762f1db4e70c5d0908847f83261b4e36a7d91cbfdddb8d5dfeea74c41cf3a3abf969f4e7079cecc8727647346abd0685fbbfa4252
7
- data.tar.gz: 6a47685852c79569b1e7bec9bbb4c20835009144ed5e10e9725d20cb4337da8ce1406836151dd89890b00729e958655fcdb5b0f6273f11e88c91ca8cec94ed69
6
+ metadata.gz: f5adcb7139e0b61b0c293f05223359f4b2b90f2e181132a399a43779988c33d77bb68e91dc68d9fb21b40f22cb46fa8a1b812f6717c55a1608045752f268babb
7
+ data.tar.gz: d5c03d67d03bbc42daa0dcc07f2d05e564eab79304dc3739e931a19066f385c1b357c389a301b613793bcddd5d220933750b3d6a0f95acdeeab56f9048519ccb
data/History.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 1.5.3 / 2014-03-04
2
+
3
+ * Enhancements
4
+ * Supports Rails 4.1.0.rc1
5
+ * Support rails/rails#13886 by chainging select_rows arguments [#415]
6
+
7
+ * Bug Fix
8
+ * Fix ORA-01008: not all variables bound [#422]
9
+
1
10
  ## 1.5.2 / 2014-01-24
2
11
 
3
12
  * Enhancements
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.2
1
+ 1.5.3
@@ -5,12 +5,12 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{activerecord-oracle_enhanced-adapter}
8
- s.version = "1.5.2"
8
+ s.version = "1.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.license = 'MIT'
12
12
  s.authors = [%q{Raimonds Simanovskis}]
13
- s.date = %q{2014-01-24}
13
+ s.date = %q{2014-03-04}
14
14
  s.description = %q{Oracle "enhanced" ActiveRecord adapter contains useful additional methods for working with new and legacy Oracle databases.
15
15
  This adapter is superset of original ActiveRecord Oracle adapter.
16
16
  }
@@ -761,7 +761,7 @@ module ActiveRecord
761
761
 
762
762
  cursor.exec
763
763
 
764
- if name == 'EXPLAIN'
764
+ if name == 'EXPLAIN' and sql =~ /^EXPLAIN/
765
765
  res = true
766
766
  else
767
767
  columns = cursor.get_col_names.map do |col_name|
@@ -801,13 +801,8 @@ module ActiveRecord
801
801
 
802
802
  # Returns an array of arrays containing the field values.
803
803
  # Order is the same as that returned by #columns.
804
- def select_rows(sql, name = nil)
805
- # last parameter indicates to return also column list
806
- result = columns = nil
807
- log(sql, name) do
808
- result, columns = @connection.select(sql, name, true)
809
- end
810
- result.map{ |v| columns.map{|c| v[c]} }
804
+ def select_rows(sql, name = nil, binds = [])
805
+ exec_query(sql, name, binds).rows
811
806
  end
812
807
 
813
808
  # Executes an INSERT statement and returns the new record's ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-oracle_enhanced-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raimonds Simanovskis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-25 00:00:00.000000000 Z
11
+ date: 2014-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jeweler
@@ -264,7 +264,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
264
264
  version: '0'
265
265
  requirements: []
266
266
  rubyforge_project:
267
- rubygems_version: 2.2.1
267
+ rubygems_version: 2.2.2
268
268
  signing_key:
269
269
  specification_version: 4
270
270
  summary: Oracle enhanced adapter for ActiveRecord