mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Removed BaseDatabaseCreation.set_autocommit per deprecation timeline.
This commit is contained in:
parent
6993f2886b
commit
7e0f9095f7
@ -5,7 +5,6 @@ import warnings
|
||||
|
||||
from django.conf import settings
|
||||
from django.db.utils import load_backend
|
||||
from django.utils.deprecation import RemovedInDjango18Warning
|
||||
from django.utils.encoding import force_bytes
|
||||
from django.utils.functional import cached_property
|
||||
from django.utils.six.moves import input
|
||||
@ -467,17 +466,6 @@ class BaseDatabaseCreation(object):
|
||||
cursor.execute("DROP DATABASE %s"
|
||||
% self.connection.ops.quote_name(test_database_name))
|
||||
|
||||
def set_autocommit(self):
|
||||
"""
|
||||
Make sure a connection is in autocommit mode. - Deprecated, not used
|
||||
anymore by Django code. Kept for compatibility with user code that
|
||||
might use it.
|
||||
"""
|
||||
warnings.warn(
|
||||
"set_autocommit was moved from BaseDatabaseCreation to "
|
||||
"BaseDatabaseWrapper.", RemovedInDjango18Warning, stacklevel=2)
|
||||
return self.connection.set_autocommit(True)
|
||||
|
||||
def sql_table_creation_suffix(self):
|
||||
"""
|
||||
SQL to append to the end of the test table creation statements.
|
||||
|
Loading…
Reference in New Issue
Block a user