diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-08-20 00:24:03 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-08-20 00:24:03 +0000 |
| commit | 13061bf20bc467c5655c2dfa280dc226a00effcd (patch) | |
| tree | f0829fee6a53bb3fa0e394cca6017b285f48bcf4 /django/db/backends/__init__.py | |
| parent | 147e99a08a4c5983f8b031917ace99e5a4827033 (diff) | |
Refactored get_start_transaction_sql() to DatabaseOperations.start_transaction_sql(). Refs #5106
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5965 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/__init__.py')
| -rw-r--r-- | django/db/backends/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index 07a645307f..8af82a4dda 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -160,3 +160,9 @@ class BaseDatabaseOperations(object): color_style() or no_style() in django.core.management.color. """ return [] # No sequence reset required by default. + + def start_transaction_sql(self): + """ + Returns the SQL statement required to start a transaction. + """ + return "BEGIN;" |
