diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2007-04-06 02:25:58 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2007-04-06 02:25:58 +0000 |
| commit | dabd96646cf04f0b4dc346f90baf8199e225f128 (patch) | |
| tree | 028c363299237bba0fa9ca4c0265bf76649c29ee /django/db/backends/sqlite3/base.py | |
| parent | e339a41222590eace1bafff7e3d3fafe0929c3d0 (diff) | |
Fixed #3790 -- Fixed a problem with sequence resetting during fixture loads when using Postgres. Thanks to Jon Ballard and scott@staplefish.com for the report, and to Zach Thompson for suggesting a solution.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4937 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/sqlite3/base.py')
| -rw-r--r-- | django/db/backends/sqlite3/base.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/django/db/backends/sqlite3/base.py b/django/db/backends/sqlite3/base.py index 4b8a1c64a8..ec0f715491 100644 --- a/django/db/backends/sqlite3/base.py +++ b/django/db/backends/sqlite3/base.py @@ -170,6 +170,11 @@ def get_sql_flush(style, tables, sequences): # get_sql_flush() implementations). Just return SQL at this point return sql +def get_sql_sequence_reset(style, model_list): + "Returns a list of the SQL statements to reset sequences for the given models." + # No sequence reset required + return [] + def _sqlite_date_trunc(lookup_type, dt): try: dt = util.typecast_timestamp(dt) |
