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); }