From 4be8caa19f021b4acb8e4c7cd9a4a22457f7bb00 Mon Sep 17 00:00:00 2001 From: xx Date: Sat, 8 Mar 2025 17:45:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E8=A7=84=E6=A0=BC?= 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 c30216b..8425fd9 100644 --- a/src/mysql.cpp +++ b/src/mysql.cpp @@ -602,7 +602,7 @@ sol::object module::mysql_result::get(sol::object obj, sol::this_state s) else if (obj.get_type() == sol::type::number) \ return sol::make_object(s, m_result->FUNCTION(obj.as())) - if (type == "int" || type == "tinyint") + if (type == "int" || type == "tinyint unsigned") { GET_VALUE(get_int32); } @@ -619,7 +619,7 @@ sol::object module::mysql_result::get(sol::object obj, sol::this_state s) { GET_VALUE(get_int64); } - else if (type == "decimal" || type == "float" || type=="double") + else if (type == "decimal unsigned" || type == "float" || type=="double") { GET_VALUE(get_double); }