Re: [M-R] lookup like Article.objects.filter(id__in = []) will fail

2006-04-30 Thread Adrian Holovaty
On 4/30/06, Cheng Zhang <[EMAIL PROTECTED]> wrote: > I tried lookup like Article.objects.filter(id__in = []), which will > have SQL statement whose where clause is something like 'WHERE > ("poll_article"."id" IN ())'. Such SQL statement is ok with SQLite > but invalid for PostgreSQL. > > I work

Re: [M-R] lookup like Article.objects.filter(id__in = []) will fail

2006-04-30 Thread Cheng Zhang
On Apr 30, 2006, at 1:31 PM, Ivan Sagalaev wrote: > > Cheng Zhang wrote: > >> I tried lookup like Article.objects.filter(id__in = []), which will >> have SQL statement whose where clause is something like 'WHERE >> ("poll_article"."id" IN ())'. Such SQL statement is ok with SQLite >> but

Re: [M-R] lookup like Article.objects.filter(id__in = []) will fail

2006-04-29 Thread Ivan Sagalaev
Cheng Zhang wrote: >I tried lookup like Article.objects.filter(id__in = []), which will >have SQL statement whose where clause is something like 'WHERE >("poll_article"."id" IN ())'. Such SQL statement is ok with SQLite >but invalid for PostgreSQL. > >I work around this problem with code

[M-R] lookup like Article.objects.filter(id__in = []) will fail

2006-04-29 Thread Cheng Zhang
Hi, folks I tried lookup like Article.objects.filter(id__in = []), which will have SQL statement whose where clause is something like 'WHERE ("poll_article"."id" IN ())'. Such SQL statement is ok with SQLite but invalid for PostgreSQL. I work around this problem with code like: if