Fix std::expected error

This commit is contained in:
Jie 2024-12-26 14:34:37 +08:00
parent c2d88355d1
commit 458e55868e

View File

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