mysql_query return 0 when success

This commit is contained in:
Jie 2024-12-26 15:01:51 +08:00
parent 458e55868e
commit ea90ef1398

View File

@ -155,7 +155,7 @@ public:
std::expected<bool, std::string_view> Execute(std::string_view command){
auto res = mysql_query(&mysql_client, command.data());
if(!res)
if(res)
return std::unexpected(get_error_msg());
return res;
}