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 +4 -0
- data/lib/plsql/jdbc_connection.rb +2 -2
- data/lib/plsql/oci_connection.rb +2 -2
- data/lib/ruby_plsql/version.rb +1 -1
- data/spec/spec_helper.rb +2 -2
- metadata +4 -4
data/History.txt
CHANGED
@@ -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 ||
|
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,
|
240
|
+
[String, 32767]
|
241
241
|
end
|
242
242
|
end
|
243
243
|
|
data/lib/plsql/oci_connection.rb
CHANGED
@@ -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 ||
|
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,
|
103
|
+
[String, 32767]
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
data/lib/ruby_plsql/version.rb
CHANGED
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:@
|
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:@
|
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.
|
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:
|
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.
|
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.
|
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.
|