update MySQLImpl to support character_set_results (#77)

* update MySQLImpl to support character_set_results

* remove WFComplexClientTask::is_user_request().

Co-authored-by: XieHan <XieHan@sogou-inc.com>
This commit is contained in:
xiehan
2020-09-30 16:18:03 +08:00
committed by GitHub
parent 8cd8960452
commit a98337c2d1
4 changed files with 57 additions and 40 deletions

View File

@@ -24,7 +24,7 @@
namespace protocol
{
using MySQLHandshakeRequest = MySQLMessage;
using MySQLHandshakeRequest = MySQLRequest;
class MySQLHandshakeResponse : public MySQLResponse
{
@@ -51,7 +51,7 @@ public:
memcpy(auth_plugin_data_part_2_, auth2, 12);
}
bool host_disallowed() { return this->disallowed_; }
bool host_disallowed() const { return this->disallowed_; }
private:
virtual int decode_packet(const char *buf, size_t buflen);
@@ -73,7 +73,7 @@ public:
MySQLHandshakeResponse& operator= (MySQLHandshakeResponse&& move) = default;
};
class MySQLAuthRequest : public MySQLMessage
class MySQLAuthRequest : public MySQLRequest
{
public:
void set_auth(const std::string& username,