Savepoints not completely disabled with PostgreSQL prior to 8.0.
|Reported by:||mlafon@…||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||1.0-beta|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I am using Django 1.0 beta 1 with PostgreSQL 7.4.
With mod_python, I have the following exception : ProgrammingError: syntax error at or near "SAVEPOINT" at character 1
Savepoints should be disabled with PostgreSQL < 8.0 (Changeset ) but this does not work because it is not disabled in all DatabaseWrapper objects, only the first one. Surely because we are using a class member to store the fact that it has been disabled : self.__class__._version = version
The problem is not present when using manage.py runserver , surely because only one DatabaseWrapper will be created.
Change History (7)
comment:1 Changed 6 years ago by anonymous
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Summary changed from Savepoints non completely disabled with PostgreSQL prior to 8.0. to Savepoints not completely disabled with PostgreSQL prior to 8.0.
comment:5 Changed 6 years ago by mtredinnick
- Resolution set to fixed
- Status changed from new to closed