* SqlCommand.cs: Fixed param name in ArgumentException for negative
authorGert Driesen <drieseng@users.sourceforge.net>
Mon, 28 Jul 2008 18:15:17 +0000 (18:15 -0000)
committerGert Driesen <drieseng@users.sourceforge.net>
Mon, 28 Jul 2008 18:15:17 +0000 (18:15 -0000)
commitf5f8d8daba66c0ef7b196863b6160203fa630f5c
tree85178213e4eddc1ca32e294eee9ae8f7903c51af
parent7889d76d13e66896f7dc30c244844797fb0d8c62
* SqlCommand.cs: Fixed param name in ArgumentException for negative
CommandTimeout to match MS. On 2.0 profile, throw NRE in Prepare
when connection is NULL. In Prepare, return immediately after
connection check (2.0 only) for stored procedures, or when no
parameters are added. Added check to see if transaction is
associated with same connection as the command and updated
exception messages.
* SqlCommandTest.cs: Enabled CommandTimeout test. Enabled test for
Prepare with NULL connection. Enabled test for bug #412586.
* SqlCommandTest.cs: Enabled and improved tests for pending transaction
and transaction that is not associated with connection. Added tests for
Prepare.

svn path=/trunk/mcs/; revision=109058
mcs/class/System.Data/System.Data.SqlClient/ChangeLog
mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs
mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/ChangeLog
mcs/class/System.Data/Test/ProviderTests/System.Data.SqlClient/SqlCommandTest.cs
mcs/class/System.Data/Test/System.Data.SqlClient/ChangeLog
mcs/class/System.Data/Test/System.Data.SqlClient/SqlCommandTest.cs