On 12/09/11 03:09, Michael Bayer wrote:
On Sep 11, 2011, at 3:43 PM, Krishnakant Mane wrote:

On 12/09/11 00:56, Michael Bayer wrote:
You use the "func" construct to invoke a function.  This can be passed to an 
execute() method directly where it should embed itself into a SELECT:

        from sqlalchemy import func

        result = engine.execute(func.name_of_my_pg_function(1, 2, 3))



Can you please give a complete example.
There are two balbonising problems here.
I use an ide called eclipse with pydev.
I don't get any code completion when I write the above code.
Secondly, do I use execute on engine or do i first do engine.connect() and then execute a func.name(param) through the connection?
When I try to use result as result[1] I get column not found.
Happy hacking.
Krishnakant.


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

Reply via email to