Commits

Show all
Author Commit Message Labels Comments Date
uber...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
Move the queryset-refactor branch into the attic.
Branches
attic/queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Fixed some missing imports from [7470]. Thanks, Justin Bronn.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Added a Model.from_sequence() constructor for internal and advanced usage.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Pass any extra(select=...) columns through the value conversion function in the Oracle backend after reading the row from the database. Refs #7087 (see comment 7 on that ticket).
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Make sure the right list of fields is passed to the Query.resolve_columns() method for those backends that provide it (e.g. Oracle). Refs #7088
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Repaired the dates() method with extra(select=...).xi It was broken by [7340]. Patch from Ian Kelly. Fixed #7087.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: For custom Q-like objects, pass in the used_aliases parameter (see [7462]) from Query.add_q() to their add_to_query() method. This provides custom objects with the same context as Q's.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Added a few modifications to the select column aliases from [7457], based on a patch from Ian Kelly. Fixed #7057.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Typo fix, spotted by Justin Bronn. Fixed #7089.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Fixed some bugs in the multi-valued filtering behaviour introduced in [7317]. It was failing in a couple of different ways on some complex Q() combinations. Fixed #7047
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Simplify the way filters are passed to the Query class. This removes a lot of the complexity for handling exclude() calls and results in more efficient code. I feel a bit stupid for not having spotted this earlier.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Fixed a typo that was shown up by some simplification refactoring.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Fixed a bug in the internal Query.join_map datastructure. Could result in some incorrect results(?) when using the same table multiple times in a query.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: An attempt to fix an ambiguous column error that can arise in Oracle queries. Adds an options to add output column aliases. The testing I can do shows that the query is being constructed correctly. I haven't run the test against an Oracle install, though. Refs #7057 (ticket can be closed if the Oracle tests pass).
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Changed the way order_by() and distinct() interact. When using "select distinct" all ordering columns must be part of the output (select) columns. We were previously just throwing away ordering columns that weren't included, but there are some cases where they are needed and it's difficult to add them in manually. So now the default behaviour is to append any missing columns. This can affect the output of distinct() if complicated order_by() const…
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: A few bits of code cleanup.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Added a note about using already present tables in extra(tables=...). This is already a problem in trunk and it's pretty much impossible to work around in a non-complex way, so it's user beware (it's usually easy enough to avoid the problems).
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Clarified what the default reverse names are for ManyToManyFields and ForeignKeys on abstract base classes.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Renamed the Queryset method valueslist() to values_list. Suggested by Michael Trier. It's more consistent with order_by, select_related, etc. This is backwards incompatible for people previously using this method on the branch (the method doesn't exist on trunk, so it's very minor).
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Removed a warning about "experimental API", since there's not really any obviously better way to do this. Let it stand.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Fixed a crash when using extra(tables=...). Fixed #7045.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Fixed the interaction between extra(select=...) and valuelist(). Fixed #7053.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Removed an unwanted side-effect from the Query.as_sql() method. Fixed #7056
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Fixed some errors in Oracle regex handling that were introduced in [7087]. Patch from Ian Kelly. Fixed #7065.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: The change in [7438] didn't fix #7036 properly. This is a more comprehensive diagnosis and fix from Ian Kelly. Fixed #7036.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Made on of the tests use more portable SQL to help Oracle. Patch from Ian Kelly. Fixed #7058.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Don't use the "AS" keyword in the FROM-clause. Fixed #7055. Patch from Ian Kelly. This keyword is optional in SQL, but not permitted by Oracle. If we ever need to support a backend that requires this keyword at some later date, we can make it a connection.feature option, but that's overkill for now.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Fixed db column to model field mapping for Oracle backend. Thanks, Justin Bronn. Fixed #7036.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Added faster paths for updates and inserts that are done from other core code. This saves a round-trip from field object to field name and back to field object when we already have the right information to hand.
Branches
queryset-refactor
mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37
queryset-refactor: Removed a stray, unused import that crept into [7432].
Branches
queryset-refactor
  1. Prev
  2. Next