![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
From the spec (http://www.python.org/dev/peps/pep-0249/), it seems that youshould be able to provide the parameters as arguments to the execute() function, like this: |
#2
| |||
| |||
|
|
From the spec (http://www.python.org/dev/peps/pep-0249/), it seems that you should be able to provide the parameters as arguments to the execute() function, like this: rs = cur.execute("INSERT INTO steering_file_entry (id,galaxy_id,comparison,notes,auth)\ VALUES (?,?,?,?,'import')", getID(),fk_galaxyID,fk_comparison,fk_notes) or this rs = cur.execute("INSERT INTO steering_file_entry (id,galaxy_id,comparison,notes,auth)\ VALUES (:a,:b,:c,:d,'import')", getID(),fk_galaxyID,fk_comparison,fk_notes) but both of those gave me ingresdbi.InterfaceError: usage: cursor.execute() Does anyone have any idea what I'm doing wrong? Martin Bowes ------------------------------------------------------------------------ _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://ext-cando.kettleriverconsulti...fo/info-ingres |
#3
| |||
| |||
|
|
From the spec (http://www.python.org/dev/peps/pep-0249/), it seems that you should be able to provide the parameters as arguments to the execute() function, like this: rs = cur.execute("INSERT INTO steering_file_entry (id,galaxy_id,comparison,notes,auth)\ VALUES (?,?,?,?,'import')", getID(),fk_galaxyID,fk_comparison,fk_notes) or this rs = cur.execute("INSERT INTO steering_file_entry (id,galaxy_id,comparison,notes,auth)\ VALUES (:a,:b,:c,:d,'import')", getID(),fk_galaxyID,fk_comparison,fk_notes) but both of those gave me ingresdbi.InterfaceError: usage: cursor.execute() Does anyone have any idea what I'm doing wrong? Martin Bowes ------------------------------------------------------------------------ _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://ext-cando.kettleriverconsulti...fo/info-ingres |
![]() |
| Thread Tools | |
| Display Modes | |
| |