-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Bayer ha scritto:
> [...]
> Unfortunately, fold_equivalents is not a generic solution for me
> I have a generative query, where I later add the select_from object.
> 
> The query is generative, since the tables involved are not know in
> advance.
> I have several plugins, that take a query instance as input, and return
> the (modified) query, and the additional tables involved.
> These tables are later joined together.
> 
>> I don't understand what you want then.   the flag is applied at the point
>> of select() where the list of columns that will be in its columns clause
>> is passed, and then its fixed...unless you're adding columns after the
>> fact (an unusual pattern).    

Here is the code I have:
http://paste.pocoo.org/show/178959/

What each plugin do is:
- - add additional columns in the select list
- - add additional where clauses or order_by clauses

Basically I have a simple table inheritance scheme, where each
additional table "derive" from the `contents` table,


> Feel free to look at its implementation and
>> suggest what it is you're looking for.
>

I think I need to refactor that code.
Each plugin *must not* add columns; instead the columnn to add should be
computed using the util.folded_equivalents if tables are joined.

So I think that I simply need the util.folded_equivalents function, thanks.


Manlio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkt6+ukACgkQscQJ24LbaURAtACcC2jVBx4GEc04Yb8Yckbvpve6
eh4An16RWuv9gwfpfj7Vc4rreXBcSogU
=UsZP
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to