Tuesday, October 12, 2010

Re: Escaping text for raw SQL?



On Tue, Oct 12, 2010 at 9:00 AM, Javier Guerra Giraldez <javier@guerrag.com> wrote:
On Tue, Oct 12, 2010 at 10:46 AM, Nick Arnett <nick.arnett@gmail.com> wrote:
> Anybody know a good way to do this?

Words.objects.filter(foo__in=mylist)

Didn't even occur to me to not use raw SQL for this, but I could... trouble is, I wanted this to be reusable in a way that will be clumsy in the ORM.  But maybe I'll go that route.  I'm using raw SQL for a lot of this because the ORM is way too slow for what I'm doing.

Nick

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment