Hi All,

So, if I have a MySQL function, I can call it as follows:

result = session.execute(func.myfunc()).scalar()

However, if that is instead a procedure, I get:

OperationalError: (OperationalError) (1305, 'FUNCTION myfunc does not exist') 'SELECT myfunc() AS myfunc_1')

I *do* get the correct result with:

session.execute('call myfunc()').scalar()

...but is there a way I can generate that?

cheers,

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
           - http://www.simplistix.co.uk

--
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