On Fri, Jun 03, 2011 at 06:57:10PM -0300, John Robson wrote:
> 
> ptr<User> user = session_.find<User>().where("id =
> ?").bind(app_->userID); tt.commit(); // OK
> collection< ptr<Project> > collect = user->projects;  // Segmentation fault

I think you need to move the commit down, all queries need to run
inside the transaction.


Kurt


------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to