Unterminated string in DB-API

Farhad Farhad.Fouladi at Dresdner-Bank.com
Thu Oct 17 18:48:26 CEST 2002

Hi there,

I got the following error by running DB-API. Any idea would be much

>> cursor.execute("INSERT INTO number_att(id,attvalue) values ( ? , ? )",
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
InformixdbError: Error -766 performing EXEC: Unterminated string

Error -766: With INFORMIX-ESQL/C, if you use a host variable in an INSERT
or in the WHERE clause of an SQL statement, and the database is ANSI
compliant, the string must be null terminated.


More information about the Python-list mailing list