activerecord-jdbcvertica-adapter 0.0.2 → 0.0.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: ef8c99593c309ea5022843f5e859fb227ac8cad0
4
- data.tar.gz: fafac54837575e44c2942da0870a2b2b055defc4
3
+ metadata.gz: 1f80bbb6d5c98a556d1bd9d86aa57ab480371540
4
+ data.tar.gz: d733e728c1cc338c1034b4fd167b8d3328b81c0e
5
5
  SHA512:
6
- metadata.gz: c991d5d66846f4281e6c2c3edac37bb2acd3504f6937eb51989ab4c67cd24d95ad943c6b0e90fb742d3f4d2c68495f0764aa08863f0db3ffa5daf1675d3049b2
7
- data.tar.gz: 36b62487759985b87e310f947eb29f5dc7c60f32346af1cf94278756045ce96b38377c4c571752f779f75df029a5d1ad76ed7a9f54df12e9668c923f0baf1ac2
6
+ metadata.gz: a4d9e5a2f91bce6b44bfe7c2d069370d684fcf274f8f529ba883fabf31f47a04f934fbd5904027197345cb552999ccc6059f412919b02b48526fd847b1673c9b
7
+ data.tar.gz: ec2b498c79f5273e73f9cd4a3043c8641dfba2285db39eb96c9a5f17ea87ed345f31c2339b50f724303a378416dcd248076e6c6db60a3e34fe4e9d7b720046e3
@@ -1,7 +1,7 @@
1
1
  module Activerecord
2
2
  module Jdbcvertica
3
3
  module Adapter
4
- VERSION = "0.0.2"
4
+ VERSION = "0.0.3"
5
5
  end
6
6
  end
7
7
  end
@@ -25,6 +25,10 @@ module ::ArJdbc
25
25
  ADAPTER_NAME
26
26
  end
27
27
 
28
+ def add_index(*args)
29
+ # no op
30
+ end
31
+
28
32
  ##
29
33
  # Vertica JDBC does not work with JDBC GET_GENERATED_KEYS
30
34
  # so we need to execute the sql raw and then lookup the
@@ -60,8 +64,12 @@ module ::ArJdbc
60
64
  quote_column_name(attr)
61
65
  end
62
66
 
67
+ def remove_index(*args)
68
+ # no op
69
+ end
70
+
63
71
  def rename_index(*args)
64
- raise ArgumentError, "rename_index does not work on Vertica"
72
+ # no op
65
73
  end
66
74
 
67
75
  end
@@ -30,34 +30,10 @@ describe IndexKing do
30
30
  IndexKing.drop_kings
31
31
  end
32
32
 
33
- describe "#add_index" do
34
- it "throws an error .... always" do
35
- -> {
36
- connection.add_index(:kings, "id")
37
- }.must_raise(ActiveRecord::StatementInvalid)
38
- end
39
- end
40
-
41
33
  describe "#index_exists?" do
42
34
  it "always says false" do
43
35
  connection.index_exists?(:kings, :id).must_equal(false)
44
36
  connection.index_exists?(:kings, [ :id, :not_id ]).must_equal(false)
45
37
  end
46
38
  end
47
-
48
- describe "#remove_index" do
49
- it "throws an error .... always" do
50
- -> {
51
- connection.remove_index(:kings, "id")
52
- }.must_raise(ArgumentError)
53
- end
54
- end
55
-
56
- describe "#rename_index" do
57
- it "throws an error .... always" do
58
- -> {
59
- connection.rename_index(:kings, "id", "derp")
60
- }.must_raise(ArgumentError)
61
- end
62
- end
63
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-jdbcvertica-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Dewitt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-18 00:00:00.000000000 Z
11
+ date: 2014-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord