error in inserting a long blob data

ketulp_baroda at yahoo.com ketulp_baroda at yahoo.com
Thu Feb 26 01:02:17 EST 2004


"Diez B. Roggisch" <deets_noospaam at web.de> wrote in message news:<c1ht2m$u7c$01$2 at news.t-online.com>...
> > 
> > values['attachmentpath'] contains the file data.
> > The data type of the file data is LONGBLOB in MySql.
> > I am not getting why it works for some file but not for others.
> 
> Do you have single quotes in your attachment - these would confuse the mysql
> parser. I don't remember how to quote them for mysql (in oracle its '' for
> a single quote) - but thats in the manuals.

How to escape such sequences in python



More information about the Python-list mailing list