ruby-plsql 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.2.4 2009-03-06
2
+ * Bug fixes
3
+ * Fixed that procedures can be called with VARCHAR2 parameters with length up to 32767
4
+
1
5
  == 0.2.3 2008-10-17
2
6
  * Improvements
3
7
  * Added CLOB data type support for input and output parameters and function return values
@@ -225,7 +225,7 @@ module PLSQL
225
225
  def plsql_to_ruby_data_type(data_type, data_length)
226
226
  case data_type
227
227
  when "VARCHAR2"
228
- [String, data_length || 4000]
228
+ [String, data_length || 32767]
229
229
  when "CLOB"
230
230
  [Java::OracleSql::CLOB, nil]
231
231
  when "NUMBER"
@@ -237,7 +237,7 @@ module PLSQL
237
237
  # CLOB
238
238
  # BLOB
239
239
  else
240
- [String, 4000]
240
+ [String, 32767]
241
241
  end
242
242
  end
243
243
 
@@ -88,7 +88,7 @@ module PLSQL
88
88
  def plsql_to_ruby_data_type(data_type, data_length)
89
89
  case data_type
90
90
  when "VARCHAR2"
91
- [String, data_length || 4000]
91
+ [String, data_length || 32767]
92
92
  when "CLOB"
93
93
  [OCI8::CLOB, nil]
94
94
  when "NUMBER"
@@ -100,7 +100,7 @@ module PLSQL
100
100
  # CLOB
101
101
  # BLOB
102
102
  else
103
- [String, 4000]
103
+ [String, 32767]
104
104
  end
105
105
  end
106
106
 
@@ -2,7 +2,7 @@ module RubyPlsql #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 3
5
+ TINY = 4
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
data/spec/spec_helper.rb CHANGED
@@ -19,11 +19,11 @@ def get_connection
19
19
  end
20
20
  else
21
21
  begin
22
- DriverManager.getConnection("jdbc:oracle:thin:@ubuntu710:1521:XE","hr","hr")
22
+ DriverManager.getConnection("jdbc:oracle:thin:@ubuntu810:1521:XE","hr","hr")
23
23
  # if connection fails then sleep 5 seconds and retry
24
24
  rescue NativeException
25
25
  sleep 5
26
- DriverManager.getConnection("jdbc:oracle:thin:@ubuntu710:1521:XE","hr","hr")
26
+ DriverManager.getConnection("jdbc:oracle:thin:@ubuntu810:1521:XE","hr","hr")
27
27
  end
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-plsql
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raimonds Simanovskis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-17 00:00:00 +03:00
12
+ date: 2009-03-06 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -20,7 +20,7 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.7.0
23
+ version: 1.8.2
24
24
  version:
25
25
  description: ruby-plsql gem provides simple Ruby API for calling Oracle PL/SQL procedures.
26
26
  email:
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  requirements: []
75
75
 
76
76
  rubyforge_project: ruby-plsql
77
- rubygems_version: 1.2.0
77
+ rubygems_version: 1.3.1
78
78
  signing_key:
79
79
  specification_version: 2
80
80
  summary: ruby-plsql gem provides simple Ruby API for calling Oracle PL/SQL procedures.