fix parsing suffix ok packet when multi-resultsets

This commit is contained in:
holmes1412
2021-04-12 19:38:30 +08:00
parent 65a2253215
commit 76a04cdaaa
+1 -1
View File
@@ -216,7 +216,7 @@ static int parse_ok_packet(const void *buf, size_t len, mysql_parser_t *parser)
}
parser->info_offset = p - (const unsigned char *)buf;
parser->offset += parser->info_offset + parser->info_len;
parser->offset = parser->info_offset + parser->info_len;
parser->affected_rows = (affected_rows == (unsigned long long)-1) ?
0 : affected_rows;
parser->insert_id = (insert_id == (unsigned long long)-1) ? 0 : insert_id;