On Feb 5, 2014, at 6:32 PM, Matt Phipps <[email protected]> wrote:
> I've been investigating this a little further and think I found some other > issues. Our data team changed the stored procedure to stop aliasing the > column names, so passing the mapped columns right into .columns() is working > (in other words, the rest of this post doesn't reflect my use case anymore > :)). > > However, labels no longer work as arguments to .columns() unless I go back to > 0.9.1 logic by setting ._textual=False and .use_labels = True. Also, passing > keyword arguments to .columns() only works if the names line up with the > result set names, i.e. using the position as a key seems to be disabled for > TextAsFrom objects. > > Here's a gist of the nose test suite that helped me figure out what was > working and what wasn't: https://gist.github.com/garaden/8835587 OK great, added some more rules in 5c188f6c1ce85eaace27f052. As far as “names line up with the result set names”, I’m not sure what you mean there, the .columns() method is always matching up names. With that checkin, all the tests in your sample suite pass, so feel free to give it a check, I’d like to get this totally right for when 0.9.3 comes out.
signature.asc
Description: Message signed with OpenPGP using GPGMail
