﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
13630	DatabaseOperations doesn't have same constructor with SQLITE and PostgreSQL backend	Cédric RICARD	nobody	"Using ''sqlite3'' backend on Django 1.2.1, the '''DatabaseOperations''' object is constructed without any parameter (no change from older versions).
Example:

{{{
from django.db import backend

backend.DatabaseOperations().quote_name(my_value)

}}}

But using ''postgresql_psycopg2'' backend, the '''DatabaseOperations''' constructor need a ''connection'' as parameter :
Example:

{{{
from django.db import backend, connection

backend.DatabaseOperations(connection).quote_name(my_value)
}}}

So this is not possible to have a code working with all backends."	Bug	closed	Database layer (models, ORM)	1.2	Normal	fixed		ian.g.kelly@…	Accepted	1	0	0	0	0	0
