|
From: mod s. (JIRA) <nh...@gm...> - 2011-06-10 14:35:21
|
Session.Clear() doesn't work after exception occur.
----------------------------------------------------
Key: NH-2765
URL: http://216.121.112.228/browse/NH-2765
Project: NHibernate
Issue Type: Bug
Components: Core
Affects Versions: 3.2.0Beta1
Reporter: mod sartawi
Hi there,
When I try to add record by call Session.Save(object), if the object's ID already exists in database I catch the exception then remove the object from the session by Session.Evict(object) or Session.Clear() then change the ID for the object then call again Session.Save(object) after this I notice 2 statement sent to database, one with old ID and other with new ID and this make exception again with old ID, and if do same and change ID again then call Save() 3 statement sent to database even after call Session.Clear(). this behavior I notice with version 3.2.0 Beta 1
Thanks in advance.
Regards,
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|