simpleOracleJDBC 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,7 @@ module SimpleOracleJDBC
12
12
  end
13
13
  class UnknownBindType < Exception
14
14
  end
15
- class UnknowSQLType < Exception
15
+ class UnknownSQLType < Exception
16
16
  end
17
17
 
18
18
  class Interface
data/test/binding_test.rb CHANGED
@@ -220,5 +220,13 @@ class BindingTest < Test::Unit::TestCase
220
220
  assert_equal(results[0][0], nil)
221
221
  end
222
222
 
223
+ def test_unknown_data_type_from_sql_raises_exeception
224
+ sql = @interface.execute_sql("select cast('hello there' as nvarchar2(1000)) from dual")
225
+ assert_raises SimpleOracleJDBC::UnknownSQLType do
226
+ results = sql.all_array
227
+ end
228
+ end
229
+
230
+
223
231
 
224
232
  end
metadata CHANGED
@@ -1,62 +1,79 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simpleOracleJDBC
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
5
- prerelease:
4
+ prerelease:
5
+ version: 0.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Stephen O'Donnell
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-17 00:00:00.000000000 Z
12
+ date: 2013-04-12 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: A lightweight wrapper around the JDBC interface to make it easier to
15
- make SQL and stored procedure calls.
14
+ description: A lightweight wrapper around the JDBC interface to make it easier to make SQL and stored procedure calls.
16
15
  email: stephen@betteratoracle.com
17
16
  executables: []
18
17
  extensions: []
19
18
  extra_rdoc_files:
20
19
  - README.md
21
20
  files:
22
- - test/binding_test.rb
23
- - test/db_call_test.rb
24
- - test/helper.rb
25
- - test/interface_test.rb
26
- - test/result_set_test.rb
27
- - test/sql_test.rb
28
- - test/test_runner.rb
29
- - lib/simple_oracle_jdbc/#bindings.rb#
30
- - lib/simple_oracle_jdbc/bindings.rb
31
- - lib/simple_oracle_jdbc/db_call.rb
32
- - lib/simple_oracle_jdbc/interface.rb
33
- - lib/simple_oracle_jdbc/result_set.rb
34
- - lib/simple_oracle_jdbc/sql.rb
35
- - lib/simple_oracle_jdbc.rb
36
- - Rakefile.rb
37
- - README.md
21
+ - !binary |-
22
+ dGVzdC9iaW5kaW5nX3Rlc3QucmI=
23
+ - !binary |-
24
+ dGVzdC9kYl9jYWxsX3Rlc3QucmI=
25
+ - !binary |-
26
+ dGVzdC9oZWxwZXIucmI=
27
+ - !binary |-
28
+ dGVzdC9pbnRlcmZhY2VfdGVzdC5yYg==
29
+ - !binary |-
30
+ dGVzdC9yZXN1bHRfc2V0X3Rlc3QucmI=
31
+ - !binary |-
32
+ dGVzdC9zcWxfdGVzdC5yYg==
33
+ - !binary |-
34
+ dGVzdC90ZXN0X3J1bm5lci5yYg==
35
+ - !binary |-
36
+ bGliL3NpbXBsZV9vcmFjbGVfamRiYy5yYg==
37
+ - !binary |-
38
+ bGliL3NpbXBsZV9vcmFjbGVfamRiYy8jYmluZGluZ3MucmIj
39
+ - !binary |-
40
+ bGliL3NpbXBsZV9vcmFjbGVfamRiYy9iaW5kaW5ncy5yYg==
41
+ - !binary |-
42
+ bGliL3NpbXBsZV9vcmFjbGVfamRiYy9kYl9jYWxsLnJi
43
+ - !binary |-
44
+ bGliL3NpbXBsZV9vcmFjbGVfamRiYy9pbnRlcmZhY2UucmI=
45
+ - !binary |-
46
+ bGliL3NpbXBsZV9vcmFjbGVfamRiYy9yZXN1bHRfc2V0LnJi
47
+ - !binary |-
48
+ bGliL3NpbXBsZV9vcmFjbGVfamRiYy9zcWwucmI=
49
+ - !binary |-
50
+ UmFrZWZpbGUucmI=
51
+ - !binary |-
52
+ UkVBRE1FLm1k
38
53
  homepage: http://betteratoracle.com
39
54
  licenses: []
40
- post_install_message:
55
+ post_install_message:
41
56
  rdoc_options: []
42
57
  require_paths:
43
58
  - lib
44
59
  required_ruby_version: !ruby/object:Gem::Requirement
45
- none: false
46
60
  requirements:
47
61
  - - ! '>='
48
62
  - !ruby/object:Gem::Version
49
- version: '0'
50
- required_rubygems_version: !ruby/object:Gem::Requirement
63
+ version: !binary |-
64
+ MA==
51
65
  none: false
66
+ required_rubygems_version: !ruby/object:Gem::Requirement
52
67
  requirements:
53
68
  - - ! '>='
54
69
  - !ruby/object:Gem::Version
55
- version: '0'
70
+ version: !binary |-
71
+ MA==
72
+ none: false
56
73
  requirements: []
57
- rubyforge_project:
58
- rubygems_version: 1.8.24
59
- signing_key:
74
+ rubyforge_project:
75
+ rubygems_version: 1.8.25
76
+ signing_key:
60
77
  specification_version: 3
61
78
  summary: A gem to simplify JDBC database access to Oracle when using JRuby
62
79
  test_files: []