Changeset 5425
- Timestamp:
- 06/04/07 16:23:18 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/boulder-oracle-sprint/django/db/backends/mysql_old/base.py
r5319 r5425 136 136 return self.server_version 137 137 138 allows_group_by_ordinal = True 139 allows_unique_and_pk = True 140 autoindexes_primary_keys = False 141 needs_datetime_string_cast = True # MySQLdb requires a typecast for dates 142 needs_upper_for_iops = False 138 143 supports_constraints = True 144 supports_tablespaces = False 145 uses_case_insensitive_names = False 139 146 140 147 def quote_name(name): … … 169 176 return sql 170 177 178 def get_datetime_cast_sql(): 179 return None 180 171 181 def get_limit_offset_sql(limit, offset=None): 172 182 sql = "LIMIT " … … 190 200 return "DEFAULT" 191 201 202 def get_max_name_length(): 203 return None; 204 205 def get_start_transaction_sql(): 206 return "BEGIN;" 207 208 def get_autoinc_sql(table): 209 return None 210 192 211 def get_sql_flush(style, tables, sequences): 193 212 """Return a list of SQL statements required to remove all data from 194 213 all tables in the database (without actually removing the tables 195 214 themselves) and put the database in an empty 'initial' state 196 215 197 216 """ 198 217 # NB: The generated SQL below is specific to MySQL … … 206 225 ) for table in tables] + \ 207 226 ['SET FOREIGN_KEY_CHECKS = 1;'] 208 227 209 228 # 'ALTER TABLE table AUTO_INCREMENT = 1;'... style SQL statements 210 229 # to reset sequence indices
