fix parsing Fixed-Length Integer case 255 and parse_ok_packet()

This commit is contained in:
holmes1412
2021-05-19 18:34:05 +08:00
parent 5edd1dd22b
commit 73c8f871cd
4 changed files with 41 additions and 32 deletions

View File

@@ -183,7 +183,7 @@ void mysql_callback(WFMySQLTask *task)
fprintf(stderr, " __________ ROW END __________\n");
}
}
else if (cursor.get_cursor_status() == MYSQL_PACKET_OK)
else if (cursor.get_cursor_status() == MYSQL_STATUS_OK)
{
fprintf(stderr, " OK. %llu ", cursor.get_affected_rows());
if (cursor.get_affected_rows() == 1)