On Sep 23, 2013, at 10:59 AM, Jonathan Vanasco <jonat...@findmeon.com> wrote:

> 
> 
> On Monday, September 23, 2013 10:31:16 AM UTC-4, Michael Bayer wrote:
> it will definitely show the right thing for echo=True, that's what's being 
> sent to the database.
> 
> yeah, the `echo` in my debug log is what showed me that postgres was getting 
> the right data.
> 
> i was doing this to audit (pseudocode):
> 
>    query = build_query()
>    results = session( query )
>    raise ValueError( str(query) , results )
> 
> I naively thought that sqlalchemy was aware that the intended dialect was 
> postgresql.    that was wrong.

yeah it does that only if the MetaData is associated with the engine, which as 
you know I'm not a fan of doing.   I don't have another nice way to make this 
"automatic"...

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to