Carsten Haese carsten at
Fri Nov 2 13:48:48 CET 2007

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:

Keep in mind, though, that MySQLdb uses %s as parameter markers instead
of the SQL standard question mark.

Carsten Haese

More information about the Python-list mailing list