summaryrefslogtreecommitdiff
path: root/test/dialect/oracle.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2009-01-03 18:58:52 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2009-01-03 18:58:52 +0000
commit67909d9645d73b4d852f1abeea3bac7c276517e3 (patch)
treee0512f545e27ac2e954fdb191fab776bfc3a36ab /test/dialect/oracle.py
parent4fcb1e97d9600a6d224072c0b62684ae8e8baa2f (diff)
downloadsqlalchemy-67909d9645d73b4d852f1abeea3bac7c276517e3.tar.gz
- Fixed bug which was preventing out params of certain types
from being received; thanks a ton to huddlej at wwu.edu ! [ticket:1265]
Diffstat (limited to 'test/dialect/oracle.py')
-rw-r--r--test/dialect/oracle.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/dialect/oracle.py b/test/dialect/oracle.py
index 3eaba8fb3..2186f2259 100644
--- a/test/dialect/oracle.py
+++ b/test/dialect/oracle.py
@@ -15,19 +15,19 @@ class OutParamTest(TestBase, AssertsExecutionResults):
def setUpAll(self):
testing.db.execute("""
-create or replace procedure foo(x_in IN number, x_out OUT number, y_out OUT number) IS
+create or replace procedure foo(x_in IN number, x_out OUT number, y_out OUT number, z_out OUT varchar) IS
retval number;
begin
retval := 6;
x_out := 10;
y_out := x_in * 15;
+ z_out := NULL;
end;
""")
def test_out_params(self):
- result = testing.db.execute(text("begin foo(:x, :y, :z); end;", bindparams=[bindparam('x', Numeric), outparam('y', Numeric), outparam('z', Numeric)]), x=5)
- assert result.out_parameters == {'y':10, 'z':75}, result.out_parameters
- print result.out_parameters
+ result = testing.db.execute(text("begin foo(:x_in, :x_out, :y_out, :z_out); end;", bindparams=[bindparam('x_in', Numeric), outparam('x_out', Numeric), outparam('y_out', Numeric), outparam('z_out', String)]), x_in=5)
+ assert result.out_parameters == {'x_out':10, 'y_out':75, 'z_out':None}, result.out_parameters
def tearDownAll(self):
testing.db.execute("DROP PROCEDURE foo")