activerecord-oracle_enhanced-adapter 1.8.1 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +16 -1
- data/README.md +26 -1
- data/VERSION +1 -1
- data/lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb +3 -0
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 955c1c3d11ce8928038c4f64681234c4cf7ad304
|
4
|
+
data.tar.gz: c08040c3b024d62a76653409df2cda7e723a7ce6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 758ddc44a6c42afe6a160142c5d6d489bb5c4f240333d1ce715e7434f4da57240a46f84207b1160fe831bd0489a76e23e21cea4515b159bc01ade69379cc1620
|
7
|
+
data.tar.gz: a95939add8ff9aebaf535aeb4d293f0466dcde14479e0ccf4fdbdcf54f37b23e34924f793b54975dc06e0e0e24ec24406b441a6106a071946f7dcf25bd4fb04c
|
data/History.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
## 1.8.2 / 2017-08-24
|
2
|
+
|
3
|
+
* Changes and bug fixes
|
4
|
+
* Fix cursor leak when using activerecord-import gem [#1409, #1433]
|
5
|
+
* Mention new statement_limit default [#1364, #1365]
|
6
|
+
* Add upgrade section for `:statement_limit` value at Rails 5.1 [#1362, #1363]
|
7
|
+
* Set `disk_asynch_io` to `false` [#1413, #1414]
|
8
|
+
* Update README.md [#1367 #1368]
|
9
|
+
* CI against JRuby 9.1.12.0 [#1359, #1360]
|
10
|
+
* Bump ruby versions [#1346]
|
11
|
+
* rubocop namespace changes from `Style` to `Layout` [#1347, #1351]
|
12
|
+
|
13
|
+
* Changes and bug fixes
|
14
|
+
* No changes since 1.8.0.rc3
|
15
|
+
|
1
16
|
## 1.8.1 / 2017-05-11
|
2
17
|
|
3
18
|
* Changes and bug fixes
|
@@ -46,7 +61,7 @@
|
|
46
61
|
* Changes and bug fixes
|
47
62
|
* Eliminate a redundant empty lines in schema.rb generated by SchemaDumper [#1232]
|
48
63
|
* Align the columns of db/structure.sql [#1242]
|
49
|
-
* Use Abstract StatementPool [#1228]
|
64
|
+
* Use Abstract StatementPool (new `statement_limit` default is 1000 was 250) [#1228]
|
50
65
|
* Decouple Composite Primary Key code [#1224, #1225]
|
51
66
|
* Push `valid_type?` up to abstract adapter [#1208]
|
52
67
|
* Oracle12 visitor is also available for 12.2 [#1217]
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ Oracle enhanced adapter for ActiveRecord
|
|
6
6
|
DESCRIPTION
|
7
7
|
-----------
|
8
8
|
|
9
|
-
Oracle enhanced ActiveRecord adapter provides Oracle database access from Ruby on Rails applications. Oracle enhanced adapter can be used from Ruby on Rails versions between 2.3.x and 5.
|
9
|
+
Oracle enhanced ActiveRecord adapter provides Oracle database access from Ruby on Rails applications. Oracle enhanced adapter can be used from Ruby on Rails versions between 2.3.x and 5.1 and it is working with Oracle database versions from 10g to 12c.
|
10
10
|
|
11
11
|
INSTALLATION
|
12
12
|
------------
|
@@ -641,6 +641,31 @@ development:
|
|
641
641
|
|
642
642
|
UPGRADE
|
643
643
|
---------------
|
644
|
+
### Upgrade Rails 5.0 or older version to Rails 5.1
|
645
|
+
|
646
|
+
If your application gets `ORA-01000: maximum open cursors exceeded`
|
647
|
+
after upgrading to Rails 5.1
|
648
|
+
check these two values and configure `:statement_limit` value at database.yml
|
649
|
+
is larger than `open_cursors` at Oracle database instance.
|
650
|
+
|
651
|
+
* `open_cursors` value at Oracle database instance
|
652
|
+
|
653
|
+
```sql
|
654
|
+
SQL> select name,value from v$parameter where name = 'open_cursors';
|
655
|
+
|
656
|
+
NAME
|
657
|
+
--------------------------------------------------------------------------------
|
658
|
+
VALUE
|
659
|
+
--------------------------------------------------------------------------------
|
660
|
+
open_cursors
|
661
|
+
1200
|
662
|
+
|
663
|
+
```
|
664
|
+
|
665
|
+
* `:statement_limit` value at database.yml
|
666
|
+
|
667
|
+
Since Oracle enhanced adapter 1.8.0 this default value changed from 250 to 1000.
|
668
|
+
|
644
669
|
### Upgrade Rails 4.2 or older version to Rails 5
|
645
670
|
|
646
671
|
If your Oracle table columns have been created for Rails `:datetime` attributes in Rails 4.2 or earlier,
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.8.
|
1
|
+
1.8.2
|
@@ -97,6 +97,7 @@ module ActiveRecord
|
|
97
97
|
type_casted_binds = type_casted_binds(binds)
|
98
98
|
|
99
99
|
log(sql, name, binds, type_casted_binds) do
|
100
|
+
cached = false
|
100
101
|
returning_id_col = returning_id_index = nil
|
101
102
|
if without_prepared_statement?(binds)
|
102
103
|
cursor = @connection.prepare(sql)
|
@@ -115,6 +116,7 @@ module ActiveRecord
|
|
115
116
|
cursor.bind_returning_param(returning_id_index, Integer) if ORACLE_ENHANCED_CONNECTION == :jdbc
|
116
117
|
end
|
117
118
|
|
119
|
+
cached = true
|
118
120
|
end
|
119
121
|
|
120
122
|
cursor.exec_update
|
@@ -124,6 +126,7 @@ module ActiveRecord
|
|
124
126
|
returning_id = cursor.get_returning_param(returning_id_index, Integer).to_i
|
125
127
|
rows << [returning_id]
|
126
128
|
end
|
129
|
+
cursor.close unless cached
|
127
130
|
ActiveRecord::Result.new(returning_id_col || [], rows)
|
128
131
|
end
|
129
132
|
end
|
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.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Raimonds Simanovskis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -136,19 +136,19 @@ signing_key:
|
|
136
136
|
specification_version: 4
|
137
137
|
summary: Oracle enhanced adapter for ActiveRecord
|
138
138
|
test_files:
|
139
|
-
- spec/spec_config.yaml.template
|
140
|
-
- spec/spec_helper.rb
|
141
139
|
- spec/support/create_oracle_enhanced_users.sql
|
142
140
|
- spec/support/alter_system_user_password.sql
|
143
|
-
- spec/
|
141
|
+
- spec/spec_config.yaml.template
|
142
|
+
- spec/spec_helper.rb
|
144
143
|
- spec/active_record/connection_adapters/oracle_enhanced_database_tasks_spec.rb
|
145
|
-
- spec/active_record/connection_adapters/
|
146
|
-
- spec/active_record/connection_adapters/
|
144
|
+
- spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb
|
145
|
+
- spec/active_record/connection_adapters/oracle_enhanced_data_types_spec.rb
|
147
146
|
- spec/active_record/connection_adapters/oracle_enhanced_structure_dump_spec.rb
|
148
|
-
- spec/active_record/connection_adapters/oracle_enhanced_dbms_output_spec.rb
|
149
147
|
- spec/active_record/connection_adapters/oracle_enhanced_schema_dump_spec.rb
|
150
|
-
- spec/active_record/connection_adapters/
|
148
|
+
- spec/active_record/connection_adapters/oracle_enhanced_context_index_spec.rb
|
149
|
+
- spec/active_record/connection_adapters/oracle_enhanced_connection_spec.rb
|
151
150
|
- spec/active_record/connection_adapters/oracle_enhanced_procedures_spec.rb
|
152
|
-
- spec/active_record/connection_adapters/oracle_enhanced_schema_statements_spec.rb
|
153
|
-
- spec/active_record/connection_adapters/oracle_enhanced_adapter_spec.rb
|
154
151
|
- spec/active_record/connection_adapters/oracle_enhanced_dirty_spec.rb
|
152
|
+
- spec/active_record/connection_adapters/oracle_enhanced_emulate_oracle_adapter_spec.rb
|
153
|
+
- spec/active_record/connection_adapters/oracle_enhanced_schema_statements_spec.rb
|
154
|
+
- spec/active_record/connection_adapters/oracle_enhanced_dbms_output_spec.rb
|