On Wednesday 29 August 2012 22:17:22 Ian Kelly wrote:
>
> https://github.com/ikelly/django/commit/086f502a1c2acb9db27531f7df78cb9df9a
> b83bd
>
I've run a version based on this -- basically, porting the patch to Django 1.3
which we use (so, no tzinfo), using "float" as the default for expressions, and
putting the whole thing as a derived class from the original adapter rather
than a patch (because that's what we do here, as we also need named parameters
and we had to add them). I found that it leaks something -- the error says
"cursors", but I suspect something more subtle; either way, this is what I got
from a page which makes several hundred queries (don't ask):
Traceback (most recent call last):
File ".../lib/python2.7/site-packages/django/core/servers/basehttp.py", line
283, in run
self.result = application(self.environ, self.start_response)
File ".../lib/python2.7/site-packages/staticfiles/handlers.py", line 66, in
__call__
return self.application(environ, start_response)
File ".../lib/python2.7/site-packages/django/core/handlers/wsgi.py", line
274, in __call__
signals.request_finished.send(sender=self.__class__)
File ".../lib/python2.7/site-packages/django/dispatch/dispatcher.py", line
172, in send
response = receiver(signal=self, sender=sender, **named)
File ".../lib/python2.7/site-packages/django/db/__init__.py", line 85, in
close_connection
conn.close()
File ".../lib/python2.7/site-packages/django/db/backends/__init__.py", line
244, in close
self.connection.close()
DatabaseError: ORA-02002: error while writing to audit trail
ORA-00604: error occurred at recursive SQL level 1
ORA-01000: maximum open cursors exceeded
Thanks,
Shai
--
You received this message because you are subscribed to the Google Groups
"Django developers" 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/django-developers?hl=en.