I work with raw SQL. My code is like this: DATABASE = 'mysql://root:qwe...@localhost/news? charset=utf8&use_unicode=0' db = sqlalchemy.create_engine(DATABASE) db.execute("INSERT INTO news (`bebe`) VALUES (%s)", some_string)
If some_string contains data like 0xD0, it will cause SQL error because of it will not be escaped. How to solve this problem? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---