From b2c8a6ff5fb66c602b94a54555ebcb37d6d32573 Mon Sep 17 00:00:00 2001 From: liyingxin Date: Mon, 2 Nov 2020 22:17:54 +0800 Subject: [PATCH] Update tutorial-12-mysql_cli.md --- docs/tutorial-12-mysql_cli.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/tutorial-12-mysql_cli.md b/docs/tutorial-12-mysql_cli.md index e4a28f24..3198a42c 100644 --- a/docs/tutorial-12-mysql_cli.md +++ b/docs/tutorial-12-mysql_cli.md @@ -143,8 +143,8 @@ void task_callback(WFMySQLTask *task) bool test_rewind_flag = false; begin: - // step-3. 判断结果集状态 - if (cursor.get_cursor_status() == MYSQL_STATUS_GET_RESULT) + // step-3. 判断结果集状态 + if (cursor.get_cursor_status() == MYSQL_STATUS_GET_RESULT) { do { fprintf(stderr, "cursor_status=%d field_count=%u rows_count=%u ", @@ -206,9 +206,9 @@ begin: task->get_resp()->get_affected_rows(), task->get_resp()->get_warnings(), task->get_resp()->get_last_insert_id()); - } - else - fprintf(stderr, "Abnormal packet_type=%d\n", resp->get_packet_type()); + } + else + fprintf(stderr, "Abnormal packet_type=%d\n", resp->get_packet_type()); return; }