[PonyORM-list] Bug with filter() ?

Matthew Bell matthewrobertbell at gmail.com
Mon Nov 16 22:39:24 UTC 2015


Hello,

A query like this works fine:

models.Order.select().filter('"x" in o.user.email')

However, using an accented character, I have difficulties:

models.Order.select().filter('"ö" in o.user.email')
ExprEvalError: '\xc3\xb6' in o.user.email raises NameError: name 'o' is not
defined

or

models.Order.select().filter(u'"ö" in o.user.email')
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in
position 2: ordinal not in range(128)

This happens in SQLite and postgres. Am I doing something wrong?

Thanks
-- 
Regards,

Matthew Bell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </ponyorm-list/attachments/20151116/ae48583d/attachment.html>


More information about the ponyorm-list mailing list