MySQLdb.string_literal

gert gert.cuykens at gmail.com
Fri Nov 2 09:18:32 EDT 2007


On Nov 2, 1:48 pm, Carsten Haese <cars... at uniqsys.com> wrote:
> On Fri, 2007-11-02 at 12:24 +0000, gert wrote:
> > I want to escape binary data so i can insert data into a blob
>
> No, you don't want to escape binary data. You want to bind it to a
> parametrized query:
>
> http://informixdb.blogspot.com/2007/07/filling-in-blanks.html
>
> Keep in mind, though, that MySQLdb uses %s as parameter markers instead
> of the SQL standard question mark.


ok thx, this is one of those questions i wished i asked way sooner.




More information about the Python-list mailing list