修复TINYINT无法检索问题

This commit is contained in:
xx
2025-03-28 23:08:36 +08:00
parent 9c50b4dfec
commit 0a4258b5ea

View File

@@ -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<uint32>()))
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);
}