[mono/mono] [2 commits] a02d0c2e: [Bug 16186] SqlCommand.BeginExecuteInternal fix
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <000001425bd8b42f-6c512f57-1fa5-4cf8-afa7-0994e8e9c995-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/mono
Compare: https://github.com/mono/mono/compare/689adf38b593...891d594b3f7a
Commit: a02d0c2e9adb71961d8b74e70758c43195dcd651
Author: Maxime Brugidou <[email protected]> (brugidou)
Date: 2013-11-15 12:14:08 GMT
URL: https://github.com/mono/mono/commit/a02d0c2e9adb71961d8b74e70758c43195dcd651
[Bug 16186] SqlCommand.BeginExecuteInternal fix
If you use a stored procedure or a prepared statement, with
CommantType.StoredProcedure the ar variable is not set as the result of
onnection.Tds.BeginExecuteProcedure().
Changed paths:
M mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs
Modified: mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs
===================================================================
@@ -846,7 +846,7 @@ protected override DbDataReader ExecuteDbDataReader (CommandBehavior behavior)
if (keyInfo || schemaOnly)
epilog = sql2.ToString ();
try {
- Connection.Tds.BeginExecuteProcedure (prolog,
+ ar = Connection.Tds.BeginExecuteProcedure (prolog,
epilog,
CommandText,
!wantResults,
Commit: 891d594b3f7aa112fb2d0696bf0ca15315a74911
Author: Marek Safar <[email protected]> (marek-safar)
Date: 2013-11-15 12:57:53 GMT
URL: https://github.com/mono/mono/commit/891d594b3f7aa112fb2d0696bf0ca15315a74911
Merge pull request #809 from criteo/16186-SqlCommand
[Bug 16186] SqlCommand.BeginExecuteInternal fix
Changed paths:
M mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs
Modified: mcs/class/System.Data/System.Data..SqlClient/SqlCommand.cs
===================================================================
@@ -846,7 +846,7 @@ protected override DbDataReader ExecuteDbDataReader (CommandBehavior behavior)
if (keyInfo || schemaOnly)
epilog = sql2.ToString ();
try {
- Connection.Tds.BeginExecuteProcedure (prolog,
+ ar = Connection.Tds.BeginExecuteProcedure (prolog,
epilog,
CommandText,
!wantResults,
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches