activerecord-jdbcteradata-adapter 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activerecord-jdbcteradata-adapter (0.3.9)
4
+ activerecord-jdbcteradata-adapter (0.4.0)
5
5
  activerecord
6
6
  activerecord-jdbc-adapter
7
7
  jdbc-teradata
@@ -23,9 +23,9 @@ GEM
23
23
  multi_json (~> 1.0)
24
24
  arel (3.0.2)
25
25
  builder (3.0.4)
26
- diff-lcs (1.2.2)
26
+ diff-lcs (1.2.4)
27
27
  i18n (0.6.1)
28
- jdbc-teradata (0.2.0)
28
+ jdbc-teradata (0.3.0)
29
29
  multi_json (1.7.3)
30
30
  rake (10.0.4)
31
31
  rspec (2.13.0)
@@ -35,7 +35,7 @@ GEM
35
35
  rspec-core (2.13.1)
36
36
  rspec-expectations (2.13.0)
37
37
  diff-lcs (>= 1.1.3, < 2.0)
38
- rspec-mocks (2.13.0)
38
+ rspec-mocks (2.13.1)
39
39
  tzinfo (0.3.37)
40
40
 
41
41
  PLATFORMS
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "activerecord-jdbcteradata-adapter"
3
- s.version = "0.4.0"
3
+ s.version = "0.4.1"
4
4
  s.authors = ["Chris Parker"]
5
5
  s.email = [ "mrcsparker@gmail.com"]
6
6
  s.homepage = "https://github.com/mrcsparker/activerecord-jdbcteradata-adapter"
@@ -10,7 +10,9 @@ class ActiveRecord::Base
10
10
  config[:username] ||= Java::JavaLang::System.get_property('user.name')
11
11
  config[:host] ||= 'localhost'
12
12
  config[:port] ||= 1025
13
- config[:url] ||= "jdbc:teradata://#{config[:host]}/DATABASE=#{config[:database]},DBS_PORT=#{config[:port]},COP=OFF,tmode=Teradata,charset=UTF8"
13
+ config[:tmode] ||= 'ANSI' # ANSI, Teradata, DEFAULT
14
+ config[:charset] ||= 'UTF8'
15
+ config[:url] ||= "jdbc:teradata://#{config[:host]}/DATABASE=#{config[:database]},DBS_PORT=#{config[:port]},COP=OFF,tmode=#{config[:tmode]},charset=#{config[:charset]}"
14
16
  config[:driver] ||= 'com.teradata.jdbc.TeraDriver'
15
17
  config[:adapter_class] = ActiveRecord::ConnectionAdapters::TeradataAdapter
16
18
  config[:adapter_spec] = ::ArJdbc::Teradata
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-jdbcteradata-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: