|
with firebird engine I have to write: this_sql = myengine.text("select * from my_procedure(:field1, :field2, :field3)", bindparams=[ bindparam('field1', value=100), bindparam('field2', value=200), bindparam('field3', value=300)] ) this don't works: this_sql = select([func.my_procedure(100, 200, 300)], engine = myengine) because the generated query lacks the "*" between "select" and "from" There is a way to fix this in firebird.py ? Thanks Ezio Michael Bayer wrote: the "func" keyword is used for stored procedures. in the latest trunk, you can also create table-like elements out of funcs to support multi-column stored procedures, and you can create the SQL corresponding to the patterns you describe.however, these patterns were worked out for Postgres users...MySQL doesnt really support this (i didnt even know it had custom functions at all?). SA is only issuing SQL to the database and cant do anything that you couldnt do at a MySQL command line, for example. On Oct 17, 2006, at 12:12 PM, George Sakkis wrote: -- Ing. Ezio Vernacotola email: [EMAIL PROTECTED] web: http://www.uptime.it --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
- [sqlalchemy] Re: Stored procedures Ezio Vernacotola
- [sqlalchemy] Re: Stored procedures Michael Bayer
