#244 SQLRelatedJoin: defaultOrder of intermediateTable not used

closed-wont-fix
General (125)
5
2009-09-08
2008-08-19
No

The SELECT build for a SQLRelatedJoin does not use the sqlmeta: defaultOrder from the intermediateTable.
This is not urgent, because I can provide an orderBy in to the join constructor, but it would by nice if it works automatic.

Btw: The documentation seems to be outdated, because the _defaultOrder class variable was replaced with class sqlmeta: defaultOrder I think. And what is about defaultOrderBy I have seen in a
test_combining_joins.py?

Discussion

  • Oleg Broytman

    Oleg Broytman - 2009-04-29

    SQLRelatedJoin uses defaultOrder from the other table, but not from the intermediate table:

    if self.orderBy is NoDefault:
    self.orderBy = self.otherClass.sqlmeta.defaultOrder

    Do you want SQLObject to test the order of the other table then from the intermediate table and to use the first one that is not None?

     
  • Oleg Broytman

    Oleg Broytman - 2009-04-29
    • labels: 519515 --> General
    • assigned_to: nobody --> phd
    • summary: SQLRelatedJoin: defaultOrder of
      intermediateTable not used --> SQLRelatedJoin: defaultOrder of intermediateTable not used
     
  • Oleg Broytman

    Oleg Broytman - 2009-09-08
    • status: open --> closed-wont-fix
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks