Version properties which are NULL in the database cause exceptions during a delete or update

Description

I have a legacy database application which NHibernate must operate side-by-side with, against the same database.

The legacy application sometimes adds NULL values to version columns. When trying to delete or update such a row, NHibernate throws exceptions. The original issue was documented here:

http://groups.google.com/group/nhusers/browse_thread/thread/637c7e2bf68b7f17/8b9115bd53edfb99?#8b9115bd53edfb99

Patch with test cases to follow shortly.

I also have a patch with a tentative fix, but it may need some additional discussion before it is applied.

Environment

None

Activity

Fabio Maulo 
April 22, 2011 at 12:50 PM

The Version can be null or you have to use the "unsaved-value".
Your legacy DB should have consistent data.

Won't Fix

Details

Assignee

Reporter

Components

Priority

Who's Looking?

Open Who's Looking?
Created April 22, 2011 at 12:43 PM
Updated April 22, 2011 at 12:50 PM
Resolved April 22, 2011 at 12:50 PM
Who's Looking?