On Feb 13, 2008, at 9:04 AM, maxi wrote:
> > Hi, > I'm reading sqlalchemy 0.4 documentation about how execute a sql text > from session obejct. > In this example, > > Session = sessionmaker(bind=engine, transactional=True) > sess = Session() > result = sess.execute("select * from table where id=:id", {'id':7}) > > It's only present in 0.4.x versions ? > > How can do it in 0.3.x versions? > > the feature is present in 0.3 as well but you have to say sess.execute(mapper, "select * from table...", {"id":7}), where "mapper" is optional (can be None). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---