From: Fabio M. (JIRA) <nh...@gm...> - 2011-04-22 20:29:47
|
[ http://216.121.112.228/browse/NH-2668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20949#action_20949 ] Fabio Maulo commented on NH-2668: --------------------------------- In fact in your test you have: // Unsure if there is a cross-platform way to do this. // (Need to drop the "not null" constraint.) ExecuteSql(session, "alter table Info alter column Version INT"); // ... and need to bypass NHibernate to insert the following rows, in order // to simulate rows in a legacy database that were "already there". ExecuteSql(session, "insert into Info values (1, 'Positive version')"); ExecuteSql(session, "insert into Info values (0, 'Zero version')"); ExecuteSql(session, "insert into Info values (null, 'NULL version')"); ExecuteSql(session, "insert into Info values (-1, 'Negative version')"); > REOPEN: Version properties which are NULL in the database cause exceptions during a delete or update > ---------------------------------------------------------------------------------------------------- > > Key: NH-2668 > URL: http://216.121.112.228/browse/NH-2668 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 2.1.2.GA, 3.0.0.Alpha1, 3.0.0.Alpha2, 3.0.0.Alpha3, 3.0.0.Beta1, 3.0.0.Beta2, 3.0.0.CR1, 3.0.0.GA, 3.1.0, 3.2.0Alpha1, 3.2.0Alpha2 > Reporter: Mike Pontillo > Priority: Major > Attachments: NH2667-fix.patch, NH2667-TestCases.patch > > > Reopening NH-2667 as a new defect since it appears that I cannot reopen it myself. NH-2667 was closed before I could even attach the test case. Please don't close this yet; let the test case speak for itself. > I tried using unsaved-value and it did not work. There are, in fact, bugs here. -- 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 |