From 19d53914469a9bff64d2cf4047c87b049519a9ae Mon Sep 17 00:00:00 2001 From: holmes1412 Date: Thu, 4 Aug 2022 18:31:38 +0800 Subject: [PATCH] MySQL : check NEWDECIMAL as string --- src/protocol/MySQLResult.inl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/protocol/MySQLResult.inl b/src/protocol/MySQLResult.inl index 6c2bc1b2..e7bba63f 100644 --- a/src/protocol/MySQLResult.inl +++ b/src/protocol/MySQLResult.inl @@ -265,6 +265,7 @@ inline std::string MySQLCell::as_datetime() const inline bool MySQLCell::is_string() const { return (this->data_type == MYSQL_TYPE_DECIMAL || + this->data_type == MYSQL_TYPE_NEWDECIMAL || this->data_type == MYSQL_TYPE_STRING || this->data_type == MYSQL_TYPE_VARCHAR || this->data_type == MYSQL_TYPE_VAR_STRING ||