List Info

Thread: Empte XXX__in queries with postgres




Empte XXX__in queries with postgres
user name
2006-07-30 21:40:14
Hi

I fairly often have code that looks like

Model.objects.filter(id__in=some_list)

where some_list is generated programatically. Sometimes
some_list is
empty, and if it is, I get a psycopg.ProgrammingError
exception. OTOH if I
use SQLite I simply get back an empty query-set as expected.

Is this considered to be a bug, or must I simply live with
it?

Thanks
Neilen

-- 
you know its kind of tragic 
we live in the new world
but we've lost the magic
-- Battery 9 (www.battery9.co.za)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at http://gr
oups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Empte XXX__in queries with postgres
user name
2006-07-30 23:58:24


On 7/31/06, Neilen Marais <snowisp.com">nmaraissnowisp.com> wrote:

Is this considered to be a bug, or must I simply live with it?

I'd call inconsistency between database platforms a bug. If you would log this, we would be much obliged.

Thanks,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users"; group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to django-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )