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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f80bbb6d5c98a556d1bd9d86aa57ab480371540
|
4
|
+
data.tar.gz: d733e728c1cc338c1034b4fd167b8d3328b81c0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4d9e5a2f91bce6b44bfe7c2d069370d684fcf274f8f529ba883fabf31f47a04f934fbd5904027197345cb552999ccc6059f412919b02b48526fd847b1673c9b
|
7
|
+
data.tar.gz: ec2b498c79f5273e73f9cd4a3043c8641dfba2285db39eb96c9a5f17ea87ed345f31c2339b50f724303a378416dcd248076e6c6db60a3e34fe4e9d7b720046e3
|
@@ -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
|
-
|
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.
|
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:
|
11
|
+
date: 2014-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|