Re: [Sqlalchemy-tickets] [sqlalchemy] #627: Auto-Joins, Partial Selects and ORMs
Brought to you by:
zzzeek
From: sqlalchemy <mi...@zz...> - 2007-06-28 16:22:49
|
IzYyNzogQXV0by1Kb2lucywgUGFydGlhbCBTZWxlY3RzIGFuZCBPUk1zDQotLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLSstLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tDQogICAgUmVwb3J0ZXI6ICBndWVzdCAgICAgICAgICAgIHwgICAgICAgT3duZXI6ICB6 enplZWsgICAgICAgICAgICAgICAgDQogICAgICAgIFR5cGU6ICBlbmhhbmNlbWVudCAgICAgIHwg ICAgICBTdGF0dXM6ICBuZXcgICAgICAgICAgICAgICAgICAgDQogICAgUHJpb3JpdHk6ICBtZWRp dW0gICAgICAgICAgIHwgICBNaWxlc3RvbmU6ICAgICAgICAgICAgICAgICAgICAgICAgDQogICBD b21wb25lbnQ6ICAobm9uZSkgICAgICAgICAgIHwgICAgU2V2ZXJpdHk6ICBubyB0cmlhZ2Ugc2Vs ZWN0ZWQgeWV0DQogIFJlc29sdXRpb246ICAgICAgICAgICAgICAgICAgIHwgICAgS2V5d29yZHM6 ICBqb2luIHNlbGVjdCBvcm0gICAgICAgDQpTdGF0dXNfZmllbGQ6ICBhd2FpdGluZyB0cmlhZ2Ug IHwgIA0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0rLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQ0KQ29tbWVudCAoYnkgenp6ZWVrKToNCg0KIHNlZ3Jl dGF0ZV90YWJsZXMgaXMgbm90IHNvIGJhZCBidXQgbXkgY29uY2VybiB0aGVyZSBpcyB0aGF0IGl0 IG1vZGlmaWVzDQogdGhlIHNlbWFudGljcyBvZiBSb3dQcm94eS4gIHRoZSBjdXJyZW50IFJlc3Vs dC9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