diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2007-04-06 02:27:18 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2007-04-06 02:27:18 +0000 |
| commit | 07f599ca5ce7291d2d474d376d9cffe8fc6f8138 (patch) | |
| tree | 29c2a220feb8542c95e50f4694eef99bd129df1d | |
| parent | dabd96646cf04f0b4dc346f90baf8199e225f128 (diff) | |
Fixed the ADO backend to match the required interface and normalized naming of parameters.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4938 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/db/backends/ado_mssql/base.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/django/db/backends/ado_mssql/base.py b/django/db/backends/ado_mssql/base.py index e0f6379edf..1a2f3de140 100644 --- a/django/db/backends/ado_mssql/base.py +++ b/django/db/backends/ado_mssql/base.py @@ -138,7 +138,7 @@ def get_drop_foreignkey_sql(): def get_pk_default_value(): return "DEFAULT" -def get_sql_flush(sql_styler, full_table_list): +def get_sql_flush(style, tables, sequences): """Return a list of SQL statements required to remove all data from all tables in the database (without actually removing the tables themselves) and put the database in an empty 'initial' state @@ -147,9 +147,9 @@ def get_sql_flush(sql_styler, full_table_list): # TODO - SQL not actually tested against ADO MSSQL yet! # TODO - autoincrement indices reset required? See other get_sql_flush() implementations sql_list = ['%s %s;' % \ - (sql_styler.SQL_KEYWORD('TRUNCATE'), - sql_styler.SQL_FIELD(quote_name(table)) - ) for table in full_table_list] + (style.SQL_KEYWORD('TRUNCATE'), + style.SQL_FIELD(quote_name(table)) + ) for table in tables] def get_sql_sequence_reset(style, model_list): "Returns a list of the SQL statements to reset sequences for the given models." |
