[Python-de] DCOracle
Josef Cihal
josef.cihal at irm.at
Tue Apr 9 18:27:44 EDT 2002
Hallo,
ich bekomme folgende Fehlermeldung nach einem Befehl:
SKRIPT:
import DCOracle
dbc=DCOracle.Connect('scott/tiger at db')
>>dbc.execute('insert into table_name (csv_line,csv_id) values
(:p1,:p2)',p1=('1','2','3'),p2=(1,2,3) )
Traceback (innermost last):
File "<stdin>", line 1, in ?
File "D:\Programme\Python\Lib\DCOracle\ociCurs.py", line 201, in execute
File "D:\Programme\Python\Lib\DCOracle\ociBind.py", line 377, in
bindParams
File "D:\Programme\Python\Lib\DCOracle\ociBind.py", line 189, in
_bindStringArray
TypeError: object doesn't support slice assignment
Wo könnte bitte Problem sein?
Warum wird es nicht unterstützt?
SO FUNKTIONIERT ES, aber warum werden nicht strings unterstützt?
>>dbc.execute('insert into table_name (csv_line,csv_id) values
(:p1,:p2)',p1=(1,2,3),p2=(1,2,3) )
Vielen Dank für jede Idee oder Vorschlag!
lg
josef cihal
More information about the Python-de
mailing list