mirror of
https://github.com/django/django.git
synced 2025-10-27 07:36:08 +00:00
newforms-admin: Merged from trunk up to [7478]
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7479 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -66,6 +66,7 @@ class MysqlDebugWrapper:
|
||||
class DatabaseFeatures(BaseDatabaseFeatures):
|
||||
autoindexes_primary_keys = False
|
||||
inline_fk_references = False
|
||||
empty_fetchmany_value = ()
|
||||
|
||||
class DatabaseOperations(BaseDatabaseOperations):
|
||||
def date_extract_sql(self, lookup_type, field_name):
|
||||
@@ -98,6 +99,10 @@ class DatabaseOperations(BaseDatabaseOperations):
|
||||
sql += "%s," % offset
|
||||
return sql + str(limit)
|
||||
|
||||
def no_limit_value(self):
|
||||
# 2**64 - 1, as recommended by the MySQL documentation
|
||||
return 18446744073709551615L
|
||||
|
||||
def quote_name(self, name):
|
||||
if name.startswith("`") and name.endswith("`"):
|
||||
return name # Quoting once is enough.
|
||||
|
||||
Reference in New Issue
Block a user