Re: db/backends/postgresql/opererations.py: sequence_reset_sql problem

2009-04-21 Thread gordyt
I went ahead and filed a bug report (http://code.djangoproject.com/ ticket/10881) and attached two small files that can be used to reproduce the problem. --gordon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djan

Re: db/backends/postgresql/opererations.py: sequence_reset_sql problem

2009-04-21 Thread gordyt
Forgot to mention that I'm running revision 10558. --gordon --~--~-~--~~~---~--~~ 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

db/backends/postgresql/opererations.py: sequence_reset_sql problem

2009-04-21 Thread gordyt
Howdy Folks, I think there is a problem with the sequence_reset_sql method. Here is the the problem area: - cut here - for f in model._meta.many_to_many: output.append("%s setval('%s', coalesce(max(%s), 1), max(%s) %s null) %s %s;" % \ (st