MySQL Forums
Forum List  »  Quality Assurance

Only available after end of query execute
Posted by: Wh Ooo
Date: March 28, 2021 05:45PM

mysqlx::Table table{ schema, "accounts" };

auto tableSelect = table.select("Id");
auto rowResult = tableSelect.execute();

try
{
std::cout << rowResult.getAffectedItemsCount() << std::endl;
}
catch (const mysqlx::Error& error)
{
std::cout << error.what() << std::endl;
}


Returns an error:

CDK Error: Only available after end of query execute

Does it have to be like this?

Options: ReplyQuote


Subject
Views
Written By
Posted
Only available after end of query execute
71
March 28, 2021 05:45PM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.