add ProtocolMessage attachment

This commit is contained in:
XieHan
2021-01-27 19:54:24 +08:00
parent 2da1aee6cb
commit c344ef41d6
5 changed files with 39 additions and 1 deletions
+6
View File
@@ -46,6 +46,9 @@ MySQLMessage::MySQLMessage(MySQLMessage&& move)
this->size_limit = move.size_limit;
move.size_limit = (size_t)-1;
this->attachment = move.attachment;
move.attachment = NULL;
parser_ = move.parser_;
stream_ = move.stream_;
seqid_ = move.seqid_;
@@ -64,6 +67,9 @@ MySQLMessage& MySQLMessage::operator= (MySQLMessage&& move)
this->size_limit = move.size_limit;
move.size_limit = (size_t)-1;
this->attachment = move.attachment;
move.attachment = NULL;
mysql_parser_deinit(parser_);
mysql_stream_deinit(stream_);
delete parser_;