DCOracle2

Damien Metzler dmetzler.nospam at partner.auchan.fr
Fri Mar 21 10:54:56 EST 2003


Hello,

i have a problem regarding the module DCOracle2:
i'd like to map an Oracle stored procedure with a python function (like 
in the documentation). I do the following :


###########################
import DCOracle2

print "Connecting to Database..."
db=DCOracle2.connect('admindc/dcadmin at dbks.linux')
c=db.cursor()
findMag=c.procedures.ADMINDC.TEST.FINDMAG


findMag(2,mag)
print mag
#########################


and here is what i have as a result :

#########################"
Connecting to Database...
Traceback (most recent call last):
   File "C:\Documents and Settings\f997x055.F8889\Bureau\PyOracle.py", 
line 22, in ?
     findMag=c.procedures.ADMINDC.TEST.FINDMAG
   File "D:\Python22\DCOracle2\DCOracle2.py", line 1637, in __getattr__
AttributeError: TEST
###########################

The schema admindc exists, the package TEST and the procedure FINDMAG too.

Does anyone have the same problem... Is it a bug ?







More information about the Python-list mailing list