Django

Code

Changeset 4938

Show
Ignore:
Timestamp:
04/05/07 21:27:18 (2 years ago)
Author:
russellm
Message:

Fixed the ADO backend to match the required interface and normalized naming of parameters.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/db/backends/ado_mssql/base.py

    r4937 r4938  
    139139    return "DEFAULT" 
    140140 
    141 def get_sql_flush(sql_styler, full_table_list): 
     141def get_sql_flush(style, tables, sequences): 
    142142    """Return a list of SQL statements required to remove all data from 
    143143    all tables in the database (without actually removing the tables 
     
    148148    # TODO - autoincrement indices reset required? See other get_sql_flush() implementations 
    149149    sql_list = ['%s %s;' % \ 
    150                 (sql_styler.SQL_KEYWORD('TRUNCATE'), 
    151                  sql_styler.SQL_FIELD(quote_name(table)) 
    152                  )  for table in full_table_list
     150                (style.SQL_KEYWORD('TRUNCATE'), 
     151                 style.SQL_FIELD(quote_name(table)) 
     152                 )  for table in tables
    153153 
    154154def get_sql_sequence_reset(style, model_list):