Yo'av Moshe wrote:
>
> Hey!
> I'm using SA in a TurboGears website for quite a long time now, and it
> was working great for a long time, until now! In my website users can
> upload articles, edit them, etc... The problem is with the search
> function - for some reason, searching for a certain word in my
> language (Hebrew) kills SA. The second time you're searching for it,
> it works.
>
> See what I mean here (it's me running the same query twice in
> IPython): http://paste2.org/p/457059
this code:
Article.query.filter(Article.c.content.like('%מטרות%')).all()
should read:
Article.query.filter(Article.c.content.like(u'%מטרות%')).all()
as far as why it works the second time, I'd guess it's some quirk of the
REPL you're using.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---