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
697
March 28, 2021 05:45PM


Sorry, you can't reply to this topic. It has been closed.

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.