Changeset 6868
- Timestamp:
- 12/03/07 15:10:55 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/queryset-refactor/django/db/models/sql/where.py
r6866 r6868 43 43 result = [] 44 44 result_params = [] 45 empty = True 45 46 for child in node.children: 46 47 if hasattr(child, 'as_sql'): … … 61 62 # We can bail out early in this particular case (only). 62 63 raise 63 sql = None 64 elif node.negated: 65 empty = False 66 continue 67 empty = False 64 68 if sql: 65 69 result.append(format % sql) 66 70 result_params.extend(params) 71 if empty: 72 raise EmptyResultSet 67 73 conn = ' %s ' % node.connector 68 74 return conn.join(result), result_params
