From 0a4258b5ea5f59ff167b7aec044a9ab1364663c4 Mon Sep 17 00:00:00 2001 From: xx Date: Fri, 28 Mar 2025 23:08:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DTINYINT=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=A3=80=E7=B4=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mysql.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mysql.cpp b/src/mysql.cpp index 12a1315..9d3ac66 100644 --- a/src/mysql.cpp +++ b/src/mysql.cpp @@ -627,7 +627,7 @@ sol::object module::mysql_result::get(sol::object obj, sol::this_state s) return sol::make_object(s, m_result->FUNCTION(obj.as())) std::cout << tmp_log <<"=====" << type << std::endl; - if (type == "int" || type == "tinyint unsigned") + if (type == "int" || type == "tinyint") { GET_VALUE(get_int32); } @@ -636,7 +636,7 @@ sol::object module::mysql_result::get(sol::object obj, sol::this_state s) { GET_VALUE(get_string); } - else if (type == "int unsigned") + else if (type == "int unsigned" || type == "tinyint unsigned") { GET_VALUE(get_uint32); }