Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26271/NHibernate/Persister
Modified Files:
EntityPersister.cs NormalizedEntityPersister.cs
Log Message:
Fixed bug with dynamic-insert and dynamic-update causing
IndexOutOfRangeExceptions.
Index: NormalizedEntityPersister.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister/NormalizedEntityPersister.cs,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** NormalizedEntityPersister.cs 14 Jul 2004 21:22:17 -0000 1.20
--- NormalizedEntityPersister.cs 28 Jul 2004 03:56:49 -0000 1.21
***************
*** 1049,1053 ****
// write the value of fields onto the prepared statements - we MUST use the state at the time
// the insert was issued (cos of foreign key constraints).
! Dehydrate(id, fields, PropertyInsertability, insertCmds, session);
for (int i = 0; i < tableNames.Length; i++)
--- 1049,1053 ----
// write the value of fields onto the prepared statements - we MUST use the state at the time
// the insert was issued (cos of foreign key constraints).
! Dehydrate(id, fields, notNull, insertCmds, session);
for (int i = 0; i < tableNames.Length; i++)
Index: EntityPersister.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister/EntityPersister.cs,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** EntityPersister.cs 15 Jul 2004 19:05:14 -0000 1.20
--- EntityPersister.cs 28 Jul 2004 03:56:49 -0000 1.21
***************
*** 649,654 ****
/// </summary>
/// <param name="id"></param>
! /// <param name="fields"></param>
! /// <param name="includeProperty"></param>
/// <param name="st"></param>
/// <param name="session"></param>
--- 649,654 ----
/// </summary>
/// <param name="id"></param>
! /// <param name="fields">The fields to write to the command.</param>
! /// <param name="includeProperty">A bool indicating if the Property should be written to the Command</param>
/// <param name="st"></param>
/// <param name="session"></param>
***************
*** 824,827 ****
--- 824,829 ----
/// </summary>
/// <param name="fields"></param>
+ /// <param name="notNull"></param>
+ /// <param name="sql"></param>
/// <param name="obj"></param>
/// <param name="session"></param>
***************
*** 851,855 ****
try
{
! Dehydrate(null, fields, PropertyInsertability, statement, session);
}
catch (Exception e)
--- 853,857 ----
try
{
! Dehydrate(null, fields, notNull, statement, session);
}
catch (Exception e)
|