Latest errors on pickled objects and blob datatypes in mysql

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Mon May 7 16:21:59 EDT 2007


En Mon, 07 May 2007 14:08:21 -0300, krishnakant Mane  
<researchbase at gmail.com> escribió:

> my table is called testobj and the blob field is called obj.
> now following is my query with the cursor named CSRInsert.
> CSRInsert.execute("insert into testobj (obj) values  
> (?);",(pickled_object))
> the error is,
> "type error, not all arguments formatted during string formatting ".
>
> can some one now figure out what could be the problem?

Try exactly as advised:
CSRInsert.execute("insert into testobj (obj) values  
(?);",(pickled_object,))

-- 
Gabriel Genellina




More information about the Python-list mailing list