On Sat, May 22, 2010 at 4:12 PM, Michael Bayer <[email protected]> wrote: > > On May 22, 2010, at 1:14 AM, Michael Bayer wrote: > > On May 21, 2010, at 10:04 PM, Yang Zhang wrote: > > Also, how do I do the wrapping portably? For sqlite3 I have to wrap > > with sqlite3.Binary, for postgresql I have to wrap with > > psycopg2.Binary, etc. > > I am not able to reproduce your error in py2k or py3k: > > clarifying, I can't reproduce in py3k because the type of "bytes" is coerced > into LargeBinary. I *can* reproduce in py2k using a non-ascii value, as > the right side of the expression isn't coerced by the left, and we only see > "str" or "unicode" as the type which doesn't by itself get coerced into a > _Binary. So I have added an expression coercion rule to the _Binary in > r19922de7317c to fix this issue. > > -- > 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. >
Ah, I was *just* about to paste you a test case I constructed. Glad to see this get fixed, really appreciate it. -- Yang Zhang http://yz.mit.edu/ -- 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.
