mirror of
https://github.com/Hopiu/django.git
synced 2026-05-17 12:01:06 +00:00
Removed an unecessary function.
It was introduced by the refactoring in5a4e63e6and made redundant by the refactoring in18934677.
This commit is contained in:
parent
5ec0405a09
commit
09ca010768
1 changed files with 5 additions and 7 deletions
|
|
@ -344,15 +344,13 @@ class DatabaseWrapper(BaseDatabaseWrapper):
|
|||
def init_connection_state(self):
|
||||
pass
|
||||
|
||||
def _sqlite_create_connection(self):
|
||||
conn_params = self.get_connection_params()
|
||||
self.connection = self.get_new_connection(conn_params)
|
||||
self.init_connection_state()
|
||||
connection_created.send(sender=self.__class__, connection=self)
|
||||
|
||||
def _cursor(self):
|
||||
if self.connection is None:
|
||||
self._sqlite_create_connection()
|
||||
conn_params = self.get_connection_params()
|
||||
self.connection = self.get_new_connection(conn_params)
|
||||
self.init_connection_state()
|
||||
connection_created.send(sender=self.__class__, connection=self)
|
||||
|
||||
return self.connection.cursor(factory=SQLiteCursorWrapper)
|
||||
|
||||
def check_constraints(self, table_names=None):
|
||||
|
|
|
|||
Loading…
Reference in a new issue