Fix std::expected error
This commit is contained in:
parent
c2d88355d1
commit
458e55868e
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user