Skip to content

Commit

Permalink
Removed commented out code.
Browse files Browse the repository at this point in the history
SVN: trunk@968
  • Loading branch information
Mike Doerfler committed Sep 15, 2004
1 parent a9afc90 commit add3bce
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/NHibernate/Persister/EntityPersister.cs
Expand Up @@ -726,19 +726,12 @@ public override void Lock(object id, object version, object obj, LockMode lockMo
VersionType.NullSafeSet(st, version, IdentifierColumnNames.Length, session);
}

// IDataReader rs = st.ExecuteReader();
reader = session.Batcher.ExecuteReader( st );
// try
// {
if ( reader.Read()==false )
{
throw new StaleObjectStateException( MappedClass, id);
}
// }
// finally
// {
// rs.Close();
// }

if ( reader.Read()==false )
{
throw new StaleObjectStateException( MappedClass, id);
}
}
//TODO: add something to catch a sql exception and log it here
finally
Expand Down

0 comments on commit add3bce

Please sign in to comment.