コード例 #1
0
ファイル: Program.cs プロジェクト: wang1352083/mysql-shell
        private static void PrintBaseResult(BaseResult res)
        {
            Console.Write("Execution Time: {0}\n", res.GetExecutionTime());
            Console.Write("Warning Count: {0}\n", res.GetWarningCount());

            if (Convert.ToUInt64(res.GetWarningCount()) > 0)
            {
                List <Dictionary <String, Object> > warnings = res.GetWarnings();

                foreach (Dictionary <String, Object> warning in warnings)
                {
                    Console.Write("{0} ({1}): (2)\n", warning["Level"], warning["Code"], warning["Message"]);
                }
            }
        }