From: <aye...@us...> - 2009-06-16 05:35:27
|
Revision: 4485 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4485&view=rev Author: ayenderahien Date: 2009-06-16 05:35:24 +0000 (Tue, 16 Jun 2009) Log Message: ----------- Changing location of statement log when using hilo so that the logged statement will contain the parameters Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Id/TableGenerator.cs Modified: trunk/nhibernate/src/NHibernate/Id/TableGenerator.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Id/TableGenerator.cs 2009-06-16 05:19:27 UTC (rev 4484) +++ trunk/nhibernate/src/NHibernate/Id/TableGenerator.cs 2009-06-16 05:35:24 UTC (rev 4485) @@ -251,13 +251,14 @@ session.Factory.ConnectionProvider.Driver.GenerateCommand(CommandType.Text, updateSql, parameterTypes); ups.Connection = conn; ups.Transaction = transaction; - PersistentIdGeneratorParmsNames.SqlStatementLogger.LogCommand("Updating high value:", ups, FormatStyle.Basic); - + try { columnType.Set(ups, result + 1, 0); columnType.Set(ups, result, 1); + PersistentIdGeneratorParmsNames.SqlStatementLogger.LogCommand("Updating high value:", ups, FormatStyle.Basic); + rows = ups.ExecuteNonQuery(); } catch (Exception e) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |