From: Michael D. <mik...@us...> - 2004-06-24 15:24:01
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Driver In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5178/NHibernate/Driver Modified Files: NDataReader.cs Log Message: Fixed problem where a read-only property and a read-write property that referred to the same column causes the sql select to have the same column in there twice. NDataReader was throwing up on that because it used Add and the column already existed in the dictionary. Index: NDataReader.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Driver/NDataReader.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** NDataReader.cs 6 May 2004 13:15:13 -0000 1.1 --- NDataReader.cs 24 Jun 2004 15:23:52 -0000 1.2 *************** *** 357,361 **** { string fieldName = reader.GetName(i); ! fieldNameToIndex.Add( fieldName, i); fieldIndexToName.Add(fieldName); fieldTypes.Add( reader.GetFieldType(i) ); --- 357,361 ---- { string fieldName = reader.GetName(i); ! fieldNameToIndex[fieldName] = i; fieldIndexToName.Add(fieldName); fieldTypes.Add( reader.GetFieldType(i) ); |