On Sun, Feb 13, 2011 at 11:59:40AM +0100, Daniel Fetchinson wrote:
> >> What would be the most natural way of specifying an ordering for columns?
> >
> > SQLObject preserves the order of columns, indices and joins since at
> > least version 0.14.0; the order of every object is stored in the
> > attribute .creationOrder. Lists of columns (sqlmeta.columnList), indices
> > (sqlmeta.indexes and sqlmeta.indexDefinitions) and join definitions
> > (sqlmeta.joinDefinitions) are sorted according to .creationOrder; the
> > list of joins (sqlmeta.joins) is not sorted due to the way joins are
> > created.
>
> Great, thank you very much, I did not know about this feature!
Most of it was implemented by Ian Bicking long before me. At version
0.14.0 I completed it, extended to indices and joins and added to News:
http://sqlobject.org/News.html#sqlobject-0-14-0
Oleg.
--
Oleg Broytman http://phdru.name/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.
|