From: Justin B. <jgb...@gm...> - 2009-11-14 18:52:14
|
If you look at your specific database and see how to get the primary key back out, maybe you can run those statements within a transaction and get the result back (HaskellDB.Database.transaction). You may have more luck looking at the underlying driver (e.g., HDBC). 2009/11/14 R. Emre Başar <re...@cs...>: > Hi all, > > I'm developing a HaskellDB application using a console interface (with > HCL library). At some points, I have menus represented to the user. User > either selects an item from the menu (then I return the value for that > item) or add a new item using the "Add" option. When user adds the new > item, I need to be able to get a referece back to the newly inserted > item to use the unique id of that item throughout other parts of my > program. > > Is there a way to get back the value of the latest insertion? > > -- > R. Emre Başar > İstanbul Bilgi University > Department of Computer Science > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.9 (GNU/Linux) > > iD8DBQFK/uIl86wLPNcWbrwRAlTyAJsECVEteNeXeO/8oJyqTc0ZLUzHkACfVMY5 > ceHUhuU8h9/ULo5L4ZXM0DA= > =KVdS > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > Haskelldb-users mailing list > Has...@li... > https://lists.sourceforge.net/lists/listinfo/haskelldb-users > > |