Skip to content
Commits on Apr 27, 2008
  1. @malcolmt
Commits on Apr 26, 2008
  1. @malcolmt

    queryset-refactor: Added a Model.from_sequence() constructor for inte…

    malcolmt committed
    …rnal and
    
    advanced usage.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7474 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  2. @malcolmt

    queryset-refactor: Pass any extra(select=...) columns through the value

    malcolmt committed
    conversion function in the Oracle backend after reading the row from the
    database.
    
    Refs #7087 (see comment 7 on that ticket).
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7470 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  3. @malcolmt

    queryset-refactor: Make sure the right list of fields is passed to the

    malcolmt committed
    Query.resolve_columns() method for those backends that provide it (e.g. Oracle).
    
    Refs #7088
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7469 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  4. @malcolmt

    queryset-refactor: Repaired the dates() method with extra(select=...).xi

    malcolmt committed
    It was broken by [7340]. Patch from Ian Kelly. Fixed #7087.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7468 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  5. @malcolmt

    queryset-refactor: For custom Q-like objects, pass in the used_aliases

    malcolmt committed
    parameter (see [7462]) from Query.add_q() to their add_to_query() method. This
    provides custom objects with the same context as Q's.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7467 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  6. @malcolmt

    queryset-refactor: Added a few modifications to the select column ali…

    malcolmt committed
    …ases from
    
    [7457], based on a patch from Ian Kelly. Fixed #7057.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7466 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  7. @malcolmt
Commits on Apr 25, 2008
  1. @malcolmt

    queryset-refactor: Fixed some bugs in the multi-valued filtering beha…

    malcolmt committed
    …viour
    
    introduced in [7317]. It was failing in a couple of different ways on some
    complex Q() combinations.
    
    Fixed #7047
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7462 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  2. @malcolmt

    queryset-refactor: Simplify the way filters are passed to the Query c…

    malcolmt committed
    …lass.
    
    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.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7461 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  3. @malcolmt
  4. @malcolmt

    queryset-refactor: Fixed a bug in the internal Query.join_map datastr…

    malcolmt committed
    …ucture.
    
    Could result in some incorrect results(?) when using the same table multiple
    times in a query.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  5. @malcolmt

    queryset-refactor: An attempt to fix an ambiguous column error that c…

    malcolmt committed
    …an 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).
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7457 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Commits on Apr 24, 2008
  1. @malcolmt

    queryset-refactor: Changed the way order_by() and distinct() interact.

    malcolmt committed
    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() constructs
    are used, so the documentation has been updated with an explanation of what's
    going on there.
    
    Fixed #7070.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7455 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  2. @malcolmt
  3. @malcolmt

    queryset-refactor: Added a note about using already present tables in

    malcolmt committed
    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).
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7453 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  4. @malcolmt

    queryset-refactor: Clarified what the default reverse names are for

    malcolmt committed
    ManyToManyFields and ForeignKeys on abstract base classes.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7452 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  5. @malcolmt

    queryset-refactor: Renamed the Queryset method valueslist() to values…

    malcolmt committed
    …_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).
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7451 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Commits on Apr 23, 2008
  1. @malcolmt

    queryset-refactor: Removed a warning about "experimental API", since …

    malcolmt committed
    …there's
    
    not really any obviously better way to do this. Let it stand.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7448 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  2. @malcolmt
  3. @malcolmt

    queryset-refactor: Fixed the interaction between extra(select=...) and

    malcolmt committed
    valuelist(). Fixed #7053.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7446 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  4. @malcolmt

    queryset-refactor: Removed an unwanted side-effect from the Query.as_…

    malcolmt committed
    …sql() method.
    
    Fixed #7056
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7445 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  5. @malcolmt

    queryset-refactor: Fixed some errors in Oracle regex handling that were

    malcolmt committed
    introduced in [7087]. Patch from Ian Kelly. Fixed #7065.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7444 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  6. @malcolmt

    queryset-refactor: The change in [7438] didn't fix #7036 properly. Th…

    malcolmt committed
    …is is a
    
    more comprehensive diagnosis and fix from Ian Kelly. Fixed #7036.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Commits on Apr 22, 2008
  1. @malcolmt

    queryset-refactor: Made on of the tests use more portable SQL to help…

    malcolmt committed
    … Oracle.
    
    Patch from Ian Kelly. Fixed #7058.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7440 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  2. @malcolmt

    queryset-refactor: Don't use the "AS" keyword in the FROM-clause. Fix…

    malcolmt committed
    …ed #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.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7439 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Commits on Apr 20, 2008
  1. @malcolmt

    queryset-refactor: Fixed db column to model field mapping for Oracle …

    malcolmt committed
    …backend.
    
    Thanks, Justin Bronn. Fixed #7036.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7438 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  2. @malcolmt

    queryset-refactor: Added faster paths for updates and inserts that ar…

    malcolmt committed
    …e 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.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7437 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Commits on Apr 16, 2008
  1. @malcolmt
  2. @malcolmt
  3. @malcolmt

    queryset-refactor: Fixed a few inadvertent sharing problems for relat…

    malcolmt committed
    …ed fields
    
    in abstract base classes. This means, for example, that many-to-many fields can
    be used in abstract base classes.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7431 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  4. @malcolmt
  5. @malcolmt
  6. @malcolmt

    queryset-refactor: Added some missed quoting to a table name.

    malcolmt committed
    (Noticed in passing in the patch on #6596). Refs #6596.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7428 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  7. @malcolmt

    queryset-refactor: The Oracle changes necessary for [7426]. I can't t…

    malcolmt committed
    …est these
    
    at the moment, but they should be close to correct.
    
    Refs #6956.
    
    
    git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7427 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Something went wrong with that request. Please try again.