On Sep 8, 2008, at 11:11 AM, John Lavoie wrote:

>
> Hi all,
>
> I'm using SQLAlchemy in Pylons.  I'm also using Elixir, which was set
> up based on Jonathan's post here: http://cleverdevil.org/computing/68/
>
> I need to call a stored procedure.  I don't care about return values
> yet, I just want to run something in the database.
>
> So far I've just been struggling to execute any raw SQL at all, let
> alone my PL/SQL procedure.
>
> model.Session.execute("select * from dual")

the Session must be bound to an engine first, using Session.bind =  
<someengine>, in order for execute() to work with a plain textual  
string.   Otherwise you can execute from the engine directly using  
engine.execute("somestring"), but then you wouldnt be in the  
transactional context of the Session.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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