Author: anagappan
Date: 2007-07-22 02:43:35 -0400 (Sun, 22 Jul 2007)
New Revision: 82423
Modified:
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/ChangeLog
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlTransactionTest.cs
Log:
2007-07-22 Nagappan A <[EMAIL PROTECTED]>
* SqlTransactionTest.cs: Added exception handling.
Modified:
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/ChangeLog
===================================================================
---
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/ChangeLog
2007-07-22 06:42:40 UTC (rev 82422)
+++
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/ChangeLog
2007-07-22 06:43:35 UTC (rev 82423)
@@ -1,3 +1,7 @@
+2007-07-22 Nagappan A <[EMAIL PROTECTED]>
+
+ * SqlTransactionTest.cs: Added exception handling.
+
2007-06-11 Nagappan A <[EMAIL PROTECTED]>
* SqlCommandTest.cs (SqlCommandDisposeTest): Added new test case
Modified:
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlTransactionTest.cs
===================================================================
---
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlTransactionTest.cs
2007-07-22 06:42:40 UTC (rev 82422)
+++
trunk/mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlTransactionTest.cs
2007-07-22 06:43:35 UTC (rev 82423)
@@ -59,6 +59,10 @@
command.ExecuteNonQuery();
transaction.Commit();
}
+ } catch (SqlException ex) {
+ // SqlException is thrown when running
test-case for 1.0 and 2.0 profile
+ // Violation of PRIMARY KEY constraint
'PK__employee__5DF5D7ED'.
+ // Cannot insert duplicate key in object
'dbo.employee'.
} finally {
DBHelper.ExecuteSimpleSP (conn,
"sp_clean_person_table");
if (conn != null && conn.State !=
ConnectionState.Closed)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches