The following piece of python code:
try:
print "HERE1"
optstring = 'isolation=1'
print "HERE2"
result = sapdb.connect (name, pwd, dbname, node, optstring)
print "HERE3"
except sapdb.SQLError, err:
print "HERE4", err.errorCode
if err.errorCode == -4008:
print "HERE5"
name = upper (name)
result = sapdb.connect (name, pwd, dbname, node)
prints out
HERE1
HERE2
HERE4 -4008
HERE5
Error message -4008 says username/password wrong. But it is no longer
wrong in the second connect, because after this I can do a "SELECT *
FROM DUAL".
So how do specify options like 'isolation=1&timeout=0' ? Can this be
done later, outside of the connect statement? Or before connecting?
I'm using the sapdbmodule.so from
sapdb-python-linux-i386-7.3.0.23test.tgz.
--
MN-Logistik GmbH http://www.mn-logistik.de
Holger Schurig Network Administrator
Dieselstr. 18
61191 Rosbach v.d.H�he
Tel: 06003/9141-0 Fax: 06003/9141-49
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general