sorry for being inaccurate and misleading... :-)
-----Ursprüngliche Nachricht-----
Gesendet: 27.06.08 15:57:26
Betreff: Re: [cx-oracle-users] how to pass PL/SQL-BOOLEAN argument to Oracle procedure from python code
cx_Oracle DOES have partial support for that in the callproc() interface.
If you use cursor.callproc("Fred", False) the value will be passed as
a true boolean to PL/SQL. There are no other situations where that
works at the moment. Essentially what I do is change the generated SQL
that is being called to use :2 = 1 and bind in an integer 0 or 1 as
appropriate. Make sense?
Anthony
Post by Andreas MockHi,
Boolean is not a vlaid SQL-Type, therefor there is no equivalent with cx_Oracle.
You have to call your PL/SQL-Procedure with an anonymous wrapper mapping
1 => TRUE and 0 => False or something like that.
Best regards
Andreas Mock
-----Ursprüngliche Nachricht-----
Gesendet: 27.06.08 08:27:42
Betreff: [cx-oracle-users] how to pass PL/SQL-BOOLEAN argument to Oracle procedure from python code
hey
I'm using cx_Oracle to connect with my python code to Oracle database,
and i wanted to know how can i pass PL/SQL-BOOLEAN argument to Oracle
procedure from my python code (as followed) ?
my code is something like "cursor.execute(query,varList)"
where query is "begin SYS.MYPACKAGE.MYPROCEDURE(varcharArg => :1,
booleanArg => :2); end;" (my Oracle function get two values:1.varchar
value,2.boolean value)
and varList is my argument list, and the second argument need to be
of type BOOLEAN, how can i achieve that ?
thanks !
Windows Live Hotmail is giving away Zunes. Enter for your chance to
win. Enter Now!-------------------------------------------------------
------------------ Check out the new SourceForge.net Marketplace. It'
s the best place to buy or sell services for just about anything Open
Source. http://sourceforge.net/services/buy/index.php_________________
______________________________ cx-oracle-users mailing list cx-oracle-
listinfo/cx-oracle-users
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
cx-oracle-users mailing list
https://lists.sourceforge.net/lists/listinfo/cx-oracle-users
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
cx-oracle-users mailing list
https://lists.sourceforge.net/lists/listinfo/cx-oracle-users