mysql_query return 0 when success
This commit is contained in:
parent
458e55868e
commit
ea90ef1398
@ -155,7 +155,7 @@ public:
|
|||||||
|
|
||||||
std::expected<bool, std::string_view> Execute(std::string_view command){
|
std::expected<bool, std::string_view> Execute(std::string_view command){
|
||||||
auto res = mysql_query(&mysql_client, command.data());
|
auto res = mysql_query(&mysql_client, command.data());
|
||||||
if(!res)
|
if(res)
|
||||||
return std::unexpected(get_error_msg());
|
return std::unexpected(get_error_msg());
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user