ruby-plsql 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +5 -0
- data/lib/plsql/procedure.rb +2 -0
- data/lib/ruby_plsql/version.rb +1 -1
- data/spec/plsql/procedure_spec.rb +8 -0
- data/spec/spec.opts +6 -1
- data/website/index.html +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/lib/plsql/procedure.rb
CHANGED
@@ -85,6 +85,8 @@ module PLSQL
|
|
85
85
|
# Sequential arguments
|
86
86
|
else
|
87
87
|
raise ArgumentError, "Too many arguments passed to PL/SQL procedure" if args.size > @argument_list.size
|
88
|
+
# Add missing arguments with nil value
|
89
|
+
args = args + [nil]*(@argument_list.size-args.size) if args.size < @argument_list.size
|
88
90
|
i = 0
|
89
91
|
sql << args.map do |v|
|
90
92
|
k = @argument_list[i]
|
data/lib/ruby_plsql/version.rb
CHANGED
@@ -165,4 +165,12 @@ describe "Procedure with output parameters" do
|
|
165
165
|
plsql.test_copy(:p_from => "abc", :p_to => nil, :p_to_double => nil).should == { :p_to => "abc", :p_to_double => "abcabc" }
|
166
166
|
end
|
167
167
|
|
168
|
+
it "should substitute output parameters with nil if they are not specified" do
|
169
|
+
plsql.test_copy("abc").should == { :p_to => "abc", :p_to_double => "abcabc" }
|
170
|
+
end
|
171
|
+
|
172
|
+
it "should substitute all parementers with nil if none are specified" do
|
173
|
+
plsql.test_copy.should == { :p_to => nil, :p_to_double => nil }
|
174
|
+
end
|
175
|
+
|
168
176
|
end
|
data/spec/spec.opts
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.1.
|
36
|
+
<a href="http://rubyforge.org/projects/ruby-plsql" class="numbers">0.1.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.1.
|
4
|
+
version: 0.1.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-04-
|
12
|
+
date: 2008-04-02 00:00:00 +03:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|