Bug 40252 - In SqlCommand class StatementCompleted never fired.
Summary: In SqlCommand class StatementCompleted never fired.
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Data (show other bugs)
Version: 4.2.0 (C6)
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-04-09 07:33 UTC by CMaker
Modified: 2016-04-09 07:34 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description CMaker 2016-04-09 07:33:10 UTC
The same code (see below) execution on the .NET platform and Mono the different.
(On mono the event StatementCompleted don't raised)  

 using (SqlConnection conn = new SqlConnection(connString))
            {
                var cmdText = @"
                            SET NOCOUNT OFF;
                            SELECT * FROM INFORMATION_SCHEMA.COLUMNS;
                            ";
                using (SqlCommand cmd = new SqlCommand(cmdText, conn))
                {
                    cmd.StatementCompleted += (s, e) => { Console.WriteLine("Statement completed"); };
                    conn.Open();
                    cmd.ExecuteNonQuery();
                }
            }
            Console.ReadKey();

Note You need to log in before you can comment on or make changes to this bug.