增加MYSQL DESC、ASC枚举

This commit is contained in:
xx
2024-05-28 01:30:24 +08:00
parent 6128e2064b
commit b8b2ff12bf

View File

@@ -384,7 +384,8 @@ void module::delete_::regist(sol::state& lua)
void module::mysql_regist(sol::state& lua)
{
lua["DESC"] = ylib::sort::DESC;
lua["ASC"] = ylib::sort::ASC;
lua.new_usertype<ylib::mysql::conn>("mysql_conn",
"clear", &ylib::mysql::conn::clear,
@@ -528,7 +529,7 @@ VarType module::mysql_result::get(sol::object obj, sol::this_state s)
GET_VALUE(get_int32);
}
else if (type == "varchar")
else if (type == "varchar" || type == "char" || type == "text")
{
GET_VALUE(get_string);
}