cx_Oracle question

Uwe Hoffmann qual at tiscali.de
Fri Sep 8 20:34:32 CEST 2006


Richard Schulman schrieb:

> 
> cursor.execute("""select mean_eng_txt from mean
>                   where mean_id=:arg_1""",arg_1)

cursor.execute("""select mean_eng_txt from mean
                    where mean_id=:arg_1""",{"arg_1":arg_1})

> Traceback (most recent call last):
>    File "oracle_test.py", line 7, in ?
>       cursor.execute('select mean_eng_txt from mean where
>       mean_id=:arg_1',arg_1)
> TypeError: expecting a dictionary, sequence or keyword args



More information about the Python-list mailing list