activerecord-oracle_enhanced-adapter 1.7.9 → 1.7.10
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad31de0886f2d51597ecb960869cc2e90e7ac146
|
4
|
+
data.tar.gz: 77a52e2bf40f895a0f9b50b7d6a96c00c5aad8b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32b19632b9cf7044fc83f11e17e2a25207144e4667b4c776b85dee422ebaa61c5539fc2a0a263fa63ac3ab351accefa881b8d33df393cb802c5c083afbe2c7fa
|
7
|
+
data.tar.gz: 73699664c18ce873e9a9cd13926feb06833fe002a9d0449ddc819555428a28d708657aaeae0927872b190533f43b3540970eb0fbae0062fe186d6d9d258eae72
|
data/History.md
CHANGED
@@ -1,10 +1,20 @@
|
|
1
|
+
## 1.7.10 / 2017-02-03
|
2
|
+
|
3
|
+
* Changes and bug fixes
|
4
|
+
* Address `TypeError: can't cast Java::JavaSql::Timestamp` [#1147, 1153]
|
5
|
+
* Use docker-oracle-xe-11g for Travis CI for release17 branch [#1150]
|
6
|
+
* Use JRuby 9.1.7.0 for release17 branch [#1154]
|
7
|
+
* Pending until further investigation made for #908 for release17 branch [#1151]
|
8
|
+
|
9
|
+
* Known issues
|
10
|
+
* No changes since 1.7.7
|
11
|
+
|
1
12
|
## 1.7.9 / 2016-12-26
|
2
13
|
|
3
14
|
* Changes and bug fixes
|
4
15
|
|
5
16
|
* Fix ORA-00933 error when executing `rails db:schema:load` [#1084]
|
6
17
|
* Quoting booleans should return a frozen string [#1083]
|
7
|
-
* Quoting booleans should return a frozen string [#1083]
|
8
18
|
* CI against ruby 2.4.0 [#1096, #1086]
|
9
19
|
|
10
20
|
* Known issues
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.7.
|
1
|
+
1.7.10
|
@@ -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.
|
3
|
+
s.version = "1.7.10"
|
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{
|
9
|
+
s.date = %q{2017-02-03}
|
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
|
}
|
@@ -16,6 +16,9 @@ module ActiveRecord
|
|
16
16
|
Java::oracle.sql.DATE.new(value.strftime("%Y-%m-%d %H:%M:%S"))
|
17
17
|
when Time
|
18
18
|
Java::java.sql.Timestamp.new(value.year-1900, value.month-1, value.day, value.hour, value.min, value.sec, value.usec * 1000)
|
19
|
+
when Java::JavaSql::Timestamp
|
20
|
+
# Returning value as it is likely this value was already type casted from Time to Java::JavaSql::Timestamp
|
21
|
+
value
|
19
22
|
else
|
20
23
|
super
|
21
24
|
end
|
@@ -681,6 +681,7 @@ describe "OracleEnhancedAdapter" do
|
|
681
681
|
end
|
682
682
|
|
683
683
|
it "should explain query with binds" do
|
684
|
+
pending "Pending until further investigation made for #908" if RUBY_ENGINE == 'jruby'
|
684
685
|
pk = TestPost.columns_hash[TestPost.primary_key]
|
685
686
|
sub = Arel::Nodes::BindParam.new.to_sql
|
686
687
|
binds = [ActiveRecord::Relation::QueryAttribute.new(pk, 1, ActiveRecord::Type::Integer.new)]
|
@@ -815,4 +816,31 @@ describe "OracleEnhancedAdapter" do
|
|
815
816
|
expect(serialized_column.save!).to eq(true)
|
816
817
|
end
|
817
818
|
end
|
819
|
+
|
820
|
+
describe "quoting" do
|
821
|
+
before(:all) do
|
822
|
+
schema_define do
|
823
|
+
create_table :test_logs, force: true do |t|
|
824
|
+
t.timestamp :send_time
|
825
|
+
end
|
826
|
+
end
|
827
|
+
class TestLog < ActiveRecord::Base
|
828
|
+
validates_uniqueness_of :send_time
|
829
|
+
end
|
830
|
+
end
|
831
|
+
|
832
|
+
after(:all) do
|
833
|
+
schema_define do
|
834
|
+
drop_table :test_logs
|
835
|
+
end
|
836
|
+
Object.send(:remove_const, "TestLog")
|
837
|
+
ActiveRecord::Base.clear_cache! if ActiveRecord::Base.respond_to?(:"clear_cache!")
|
838
|
+
end
|
839
|
+
|
840
|
+
it "should create records including Time" do
|
841
|
+
TestLog.create! send_time: Time.now + 1.seconds
|
842
|
+
TestLog.create! send_time: Time.now + 2.seconds
|
843
|
+
expect(TestLog.count).to eq 2
|
844
|
+
end
|
845
|
+
end
|
818
846
|
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.7.
|
4
|
+
version: 1.7.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Raimonds Simanovskis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
133
|
version: '0'
|
134
134
|
requirements: []
|
135
135
|
rubyforge_project:
|
136
|
-
rubygems_version: 2.6.
|
136
|
+
rubygems_version: 2.6.10
|
137
137
|
signing_key:
|
138
138
|
specification_version: 4
|
139
139
|
summary: Oracle enhanced adapter for ActiveRecord
|