On 2006-12-12 22:31, Shannon -jj Behrens wrote:
> > When I do it on pure MySQLdb, everything works fine. Not
> > surprisingly, because I explicitly say:
> >
> > cursor.execute("update testtable set test=%s", s)
> >
> > having s as given above (only one row, no where-clause needed).
>
> Have you read this thread:
> http://www.mail-archive.com/[email protected]/msg00366.html

Yes. Sorry, I should have mentioned it.

However, I am not sure that this a MySQLdb bug. As I showed using pure 
MySQLdb the roundtrip works as it should be.

When you do on SQLAlchemy:

>>> t.test = u's\xfcd!'
>>> session.flush()

Why is the engine saying:

(...) UPDATE testtable SET test=%s WHERE testtable.pkey = %s
(...) ['s\xc3\xbcd!', 'first']

Shouldn't it look like this:

(...) UPDATE testtable SET test=%s WHERE testtable.pkey = %s
(...) [u's\xfcd!', 'first']

Ciao,
Stefan

-- 
Start here: www.meretz.de

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to