Changeset 5970
- Timestamp:
- 08/19/07 20:14:53 (1 year ago)
- Files:
-
- django/trunk/django/db/backends/ado_mssql/base.py (modified) (1 diff)
- django/trunk/django/db/backends/dummy/base.py (modified) (1 diff)
- django/trunk/django/db/backends/mysql/base.py (modified) (1 diff)
- django/trunk/django/db/backends/mysql_old/base.py (modified) (1 diff)
- django/trunk/django/db/backends/oracle/base.py (modified) (1 diff)
- django/trunk/django/db/backends/postgresql/base.py (modified) (1 diff)
- django/trunk/django/db/backends/postgresql_psycopg2/base.py (modified) (1 diff)
- django/trunk/django/db/backends/sqlite3/base.py (modified) (1 diff)
- django/trunk/django/db/backends/util.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/db/backends/ado_mssql/base.py
r5969 r5970 103 103 uses_case_insensitive_names = False 104 104 105 dictfetchall = util.dictfetchall106 107 105 OPERATOR_MAPPING = { 108 106 'exact': '= %s', django/trunk/django/db/backends/dummy/base.py
r5969 r5970 40 40 supports_constraints = False 41 41 supports_tablespaces = False 42 dictfetchall = complain43 42 44 43 OPERATOR_MAPPING = {} django/trunk/django/db/backends/mysql/base.py
r5969 r5970 185 185 uses_case_insensitive_names = False 186 186 187 dictfetchall = util.dictfetchall188 189 187 OPERATOR_MAPPING = { 190 188 'exact': '= %s', django/trunk/django/db/backends/mysql_old/base.py
r5969 r5970 204 204 uses_case_insensitive_names = False 205 205 206 dictfetchall = util.dictfetchall207 208 206 OPERATOR_MAPPING = { 209 207 'exact': '= %s', django/trunk/django/db/backends/oracle/base.py
r5969 r5970 224 224 return force_unicode(s) 225 225 return s 226 227 dictfetchall = util.dictfetchall228 226 229 227 def get_field_cast_sql(db_type): django/trunk/django/db/backends/postgresql/base.py
r5969 r5970 201 201 uses_case_insensitive_names = False 202 202 203 def dictfetchall(cursor):204 "Returns all rows from a cursor as a dict"205 return cursor.dictfetchall()206 207 203 def typecast_string(s): 208 204 """ django/trunk/django/db/backends/postgresql_psycopg2/base.py
r5969 r5970 164 164 uses_case_insensitive_names = False 165 165 166 dictfetchall = util.dictfetchall167 168 166 OPERATOR_MAPPING = { 169 167 'exact': '= %s', django/trunk/django/db/backends/sqlite3/base.py
r5969 r5970 121 121 uses_case_insensitive_names = False 122 122 123 dictfetchall = util.dictfetchall124 125 123 def _sqlite_extract(lookup_type, dt): 126 124 try: django/trunk/django/db/backends/util.py
r5969 r5970 133 133 "Returns a dictionary for the given cursor.description and result row." 134 134 return dict(zip([col[0] for col in desc], row)) 135 136 def dictfetchall(cursor):137 "Returns all rows from a cursor as a dict"138 desc = cursor.description139 for row in cursor.fetchall():140 yield _dict_helper(desc, row)
