vertica 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.2
1
+ 0.9.3
data/lib/vertica/error.rb CHANGED
@@ -31,6 +31,7 @@ class Vertica::Error < StandardError
31
31
  '53200' => (OutOfMemory = Class.new(Vertica::Error::QueryError)),
32
32
  '42601' => (SyntaxError = Class.new(Vertica::Error::QueryError)),
33
33
  '42V01' => (MissingRelation = Class.new(Vertica::Error::QueryError)),
34
- '42703' => (MissingColumn = Class.new(Vertica::Error::QueryError))
34
+ '42703' => (MissingColumn = Class.new(Vertica::Error::QueryError)),
35
+ '22V04' => (CopyRejected = Class.new(Vertica::Error::QueryError))
35
36
  }
36
37
  end
@@ -54,6 +54,10 @@ class Vertica::Result
54
54
  @row_style == :array ? rows[0][0] : rows[0][columns[0].name]
55
55
  end
56
56
  end
57
+
58
+ def [](row, col = nil)
59
+ col.nil? ? row[row] : rows[row][col]
60
+ end
57
61
 
58
62
  alias_method :each, :each_row
59
63
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vertica
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-08-02 00:00:00.000000000 Z
14
+ date: 2012-12-10 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake
18
- requirement: &70251107449460 !ruby/object:Gem::Requirement
18
+ requirement: &70275673064020 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ! '>='
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: '0'
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70251107449460
26
+ version_requirements: *70275673064020
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jeweler
29
- requirement: &70251107448680 !ruby/object:Gem::Requirement
29
+ requirement: &70275673063540 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ! '>='
@@ -34,7 +34,7 @@ dependencies:
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *70251107448680
37
+ version_requirements: *70275673063540
38
38
  description: Query Vertica with ruby
39
39
  email: sprsquish@gmail.com
40
40
  executables: []