diff options
| author | Anssi Kääriäinen <akaariai@gmail.com> | 2014-11-17 10:26:10 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-11-28 07:30:26 -0500 |
| commit | ab89414f40db1598364a7fe4cfac1766cacd2668 (patch) | |
| tree | b32932e121a8f3643d120cc8083adab2d74a223e /django/db/models/sql/constants.py | |
| parent | c7175fcdfe94be60c04f3b1ceb6d0b2def2b6f09 (diff) | |
Fixed #23853 -- Added Join class to replace JoinInfo
Also removed Query.join_map. This structure was used to speed up join
reuse calculation. Initial benchmarking shows that this isn't actually
needed. If there are use cases where the removal has real-world
performance implications, it should be relatively straightforward to
reintroduce it as map {alias: [Join-like objects]}.
Diffstat (limited to 'django/db/models/sql/constants.py')
| -rw-r--r-- | django/db/models/sql/constants.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/django/db/models/sql/constants.py b/django/db/models/sql/constants.py index 49fdf114b3..e0e3f10100 100644 --- a/django/db/models/sql/constants.py +++ b/django/db/models/sql/constants.py @@ -21,12 +21,6 @@ GET_ITERATOR_CHUNK_SIZE = 100 # Namedtuples for sql.* internal use. -# Join lists (indexes into the tuples that are values in the alias_map -# dictionary in the Query class). -JoinInfo = namedtuple('JoinInfo', - 'table_name rhs_alias join_type lhs_alias ' - 'join_cols nullable join_field') - # Pairs of column clauses to select, and (possibly None) field for the clause. SelectInfo = namedtuple('SelectInfo', 'col field') @@ -41,3 +35,7 @@ ORDER_DIR = { 'ASC': ('ASC', 'DESC'), 'DESC': ('DESC', 'ASC'), } + +# SQL join types. +INNER = 'INNER JOIN' +LOUTER = 'LEFT OUTER JOIN' |
