Um, why?
It's true that it doesn't fail when I add that 'u', but it returns nothing
(an empty list).

What's that REPL?

Yo'av

2009/10/7 Michael Bayer <[email protected]>

>
> 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('%&#1502;&#1496;&#1512;&#1493;&#1514;%')).all()
>
> should read:
>
>
> Article.query.filter(Article.c.content.like(u'%&#1502;&#1496;&#1512;&#1493;&#1514;%')).all()
>
>
> as far as why it works the second time, I'd guess it's some quirk of the
> REPL you're using.
>
>
> >
>

-- 
Yo'av Moshe

--~--~---------~--~----~------------~-------~--~----~
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