activerecord-oracle_enhanced-adapter 1.7.0.beta6 → 1.7.0.beta7

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: 77097c9429eda534b2eae3d69206b6c0ba156761
4
- data.tar.gz: eb88e16a2ed58c08f1dcc840e4025270a19de242
3
+ metadata.gz: 1b5ecb4fcf3be4949760d12a99a2c06a89a44fea
4
+ data.tar.gz: d3d9a6418c0ee745bc8d41185aed6eaaef63a0ef
5
5
  SHA512:
6
- metadata.gz: f745b95441442a003e10f4eabbd17ee5df10cbddaa0f732cc02580d6abc4bfccdb1a50c8d7db8f3ce30956abda010f753c325a1141d682b5c35c5cf7f7cbd18d
7
- data.tar.gz: fa99a5a10abec54add4ed655b3d41031e40872bb1bcecf9256df2ebbe84fa6d18621183f428aacb2da010dc4e2ac9659c01dbb6721e677a1335af194d94934df
6
+ metadata.gz: 4c01bacb2da9176ff7c2217b93a8aa35f0420b3f282a7a77fc6ac7bd710c535e70d0ef9598a46e8553d29ace8a838407aab09fea084b221eda1929babc3c3a14
7
+ data.tar.gz: 0f61c5cd4ed438a14b81c82c3d3fde2514da3b4692820c049778c4469c877cd022b1356622abc4f215040ea28033740d7ae2f26b54f6183fb25e2b8f0d6b5986
data/History.md CHANGED
@@ -1,3 +1,21 @@
1
+ ## 1.7.0.beta7 / 2016-08-01
2
+
3
+ * Changes and bug fixes
4
+
5
+ * Use OracleEnhanced::SchemaDumper#tables and #table
6
+ only if they have Oracle enhanced specific features [#947, #797]
7
+
8
+ * Known issues
9
+
10
+ - Only with JRuby
11
+ * Rails 5 : explain should explain query with binds got Java::JavaSql::SQLException: Invalid column index [#908]
12
+ - CRuby and JRuby
13
+ * Rails 5 : custom methods for create record when exception is raised in after_create callback fails [#944]
14
+ * Rails 5 : emulate_booleans_from_strings support [#942]
15
+ * Rails 5 : undefined method `to_i' for #<Arel::Nodes::BindParam:0x00000002c92910> [#848, rails/arel#438]
16
+ * #848 reproduces when database version is 11gR2 or older, it does not reproduce with 12c
17
+ * One of the units test skipped when database version is 11gR2 or lower. [#946]
18
+
1
19
  ## 1.7.0.beta6 / 2016-07-29
2
20
 
3
21
  * Changes and bug fixes
data/README.md CHANGED
@@ -18,7 +18,7 @@ Oracle enhanced adapter Rails 5 support is still in beta release, so use with ca
18
18
 
19
19
  ```ruby
20
20
  # Use oracle as the database for Active Record
21
- gem 'activerecord-oracle_enhanced-adapter', '~> 1.7.0.beta6'
21
+ gem 'activerecord-oracle_enhanced-adapter', '~> 1.7.0.beta7'
22
22
  ```
23
23
 
24
24
  ### Rails 4.2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.0.beta6
1
+ 1.7.0.beta7
@@ -1,12 +1,12 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{activerecord-oracle_enhanced-adapter}
3
- s.version = "1.7.0.beta6"
3
+ s.version = "1.7.0.beta7"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.required_ruby_version = '>= 2.2.2'
7
7
  s.license = 'MIT'
8
8
  s.authors = [%q{Raimonds Simanovskis}]
9
- s.date = %q{2016-07-29}
9
+ s.date = %q{2016-08-01}
10
10
  s.description = %q{Oracle "enhanced" ActiveRecord adapter contains useful additional methods for working with new and legacy Oracle databases.
11
11
  This adapter is superset of original ActiveRecord Oracle adapter.
12
12
  }
@@ -6,6 +6,7 @@ module ActiveRecord #:nodoc:
6
6
  private
7
7
 
8
8
  def tables(stream)
9
+ return super unless @connection.respond_to?(:materialized_views)
9
10
  # do not include materialized views in schema dump - they should be created separately after schema creation
10
11
  sorted_tables = (@connection.data_sources - @connection.materialized_views).sort
11
12
  sorted_tables.each do |tbl|
@@ -85,6 +86,7 @@ module ActiveRecord #:nodoc:
85
86
  end
86
87
 
87
88
  def table(table, stream)
89
+ return super unless @connection.respond_to?(:temporary_table?)
88
90
  columns = @connection.columns(table)
89
91
  begin
90
92
  tbl = StringIO.new
@@ -719,6 +719,8 @@ describe "OracleEnhancedAdapter" do
719
719
  @employee.create!(sort_order: i+=1, first_name: 'Steven', last_name: 'Rogers')
720
720
  @employee.create!(sort_order: i+=1, first_name: 'Bruce', last_name: 'Banner')
721
721
  @employee.create!(sort_order: i+=1, first_name: 'Natasha', last_name: 'Romanova')
722
+ @oracle11g_or_lower = !! @conn.select_value(
723
+ "select * from product_component_version where product like 'Oracle%' and to_number(substr(version,1,2)) <= 11")
722
724
  end
723
725
 
724
726
  after(:all) do
@@ -740,6 +742,7 @@ describe "OracleEnhancedAdapter" do
740
742
  end
741
743
 
742
744
  it "should return the records starting from offset n with offset(n)" do
745
+ skip "Skipped until #848 or rails/arel#438 resolved " if @oracle11g_or_lower
743
746
  expect(@employee.order(:sort_order).first.first_name).to eq("Peter")
744
747
  expect(@employee.order(:sort_order).offset(0).first.first_name).to eq("Peter")
745
748
  expect(@employee.order(:sort_order).offset(1).first.first_name).to eq("Tony")
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.7.0.beta6
4
+ version: 1.7.0.beta7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raimonds Simanovskis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-29 00:00:00.000000000 Z
11
+ date: 2016-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord