Django

Code

Changeset 5425

Show
Ignore:
Timestamp:
06/04/07 16:23:18 (1 year ago)
Author:
bouldersprinters
Message:

boulder-oracle-sprint: Added all our new attributes and methods to the
mysql_old backend.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/boulder-oracle-sprint/django/db/backends/mysql_old/base.py

    r5319 r5425  
    136136        return self.server_version 
    137137 
     138allows_group_by_ordinal = True 
     139allows_unique_and_pk = True 
     140autoindexes_primary_keys = False 
     141needs_datetime_string_cast = True     # MySQLdb requires a typecast for dates 
     142needs_upper_for_iops = False 
    138143supports_constraints = True 
     144supports_tablespaces = False 
     145uses_case_insensitive_names = False 
    139146 
    140147def quote_name(name): 
     
    169176    return sql 
    170177 
     178def get_datetime_cast_sql(): 
     179    return None 
     180 
    171181def get_limit_offset_sql(limit, offset=None): 
    172182    sql = "LIMIT " 
     
    190200    return "DEFAULT" 
    191201 
     202def get_max_name_length(): 
     203    return None; 
     204 
     205def get_start_transaction_sql(): 
     206    return "BEGIN;" 
     207 
     208def get_autoinc_sql(table): 
     209    return None 
     210 
    192211def get_sql_flush(style, tables, sequences): 
    193212    """Return a list of SQL statements required to remove all data from 
    194213    all tables in the database (without actually removing the tables 
    195214    themselves) and put the database in an empty 'initial' state 
    196      
     215 
    197216    """ 
    198217    # NB: The generated SQL below is specific to MySQL 
     
    206225                )  for table in tables] + \ 
    207226              ['SET FOREIGN_KEY_CHECKS = 1;'] 
    208                
     227 
    209228        # 'ALTER TABLE table AUTO_INCREMENT = 1;'... style SQL statements 
    210229        # to reset sequence indices