ruby-plsql 0.2.1 → 0.2.2
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.
- data/History.txt +4 -0
- data/lib/plsql/procedure.rb +5 -2
- data/lib/ruby_plsql/version.rb +1 -1
- data/website/index.html +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/lib/plsql/procedure.rb
CHANGED
@@ -34,12 +34,14 @@ module PLSQL
|
|
34
34
|
@out_list = {}
|
35
35
|
@return = {}
|
36
36
|
@overloaded = false
|
37
|
-
# RSI: due to 10gR2 all_arguments performance issue SELECT
|
37
|
+
# RSI: due to 10gR2 all_arguments performance issue SELECT split into two statements
|
38
|
+
# added condition to ensure that if object is package then package specification not body is selected
|
38
39
|
object_id = @schema.connection.select_first("
|
39
40
|
SELECT o.object_id
|
40
41
|
FROM all_objects o
|
41
42
|
WHERE o.owner = :owner
|
42
43
|
AND o.object_name = :object_name
|
44
|
+
AND o.object_type <> 'PACKAGE BODY'
|
43
45
|
", @schema.schema_name, @package ? @package : @procedure
|
44
46
|
)[0] rescue nil
|
45
47
|
num_rows = @schema.connection.select_all("
|
@@ -69,7 +71,8 @@ module PLSQL
|
|
69
71
|
:data_precision => data_precision,
|
70
72
|
:data_scale => data_scale
|
71
73
|
}
|
72
|
-
|
74
|
+
# if function has return value
|
75
|
+
elsif position == 0 && in_out == 'OUT'
|
73
76
|
@return[overload] = {
|
74
77
|
:data_type => data_type,
|
75
78
|
:in_out => in_out,
|
data/lib/ruby_plsql/version.rb
CHANGED
data/website/index.html
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<h1>Ruby API for PL/SQL</h1>
|
34
34
|
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/ruby-plsql"; return false'>
|
35
35
|
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/ruby-plsql" class="numbers">0.2.
|
36
|
+
<a href="http://rubyforge.org/projects/ruby-plsql" class="numbers">0.2.2</a>
|
37
37
|
</div>
|
38
38
|
<h1>→ ‘ruby-plsql’</h1>
|
39
39
|
|
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.2
|
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-
|
12
|
+
date: 2008-08-20 00:00:00 +03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|