Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Collection
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29592/NHibernate/Collection
Modified Files:
CollectionPersister.cs
Log Message:
Fixed bug with sending a one-to-many collection to be updated that involves
inserting a new row.
Index: CollectionPersister.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Collection/CollectionPersister.cs,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** CollectionPersister.cs 25 Jun 2004 20:37:26 -0000 1.23
--- CollectionPersister.cs 9 Aug 2004 18:43:01 -0000 1.24
***************
*** 871,875 ****
//TODO: this is hackish for expected row count
int expectedRowCount = 1;
! int rowCount = rmvst.ExecuteNonQuery();
//negative expected row count means we don't know how many rows to expect
--- 871,875 ----
//TODO: this is hackish for expected row count
int expectedRowCount = 1;
! int rowCount = insst.ExecuteNonQuery();
//negative expected row count means we don't know how many rows to expect
|